|
|
Subscribe / Log in / New account

Using the KVM API

Using the KVM API

Posted Sep 29, 2015 19:16 UTC (Tue) by Cyberax (✭ supporter ✭, #52523)
Parent article: Using the KVM API

Wow! This API is actually easy and straightforward. Far, far easier than I'd expect from a system emulator.


to post comments

Using the KVM API

Posted Sep 29, 2015 20:17 UTC (Tue) by drag (guest, #31333) [Link]

Well if you look at what KVM does... all it ultimately does is allow you to execute ring0 code in ring2 on a x86 cpu. That way you don't have to modify the OS kernel to be able to execute it as a application. The alternative is to do what Xen did with Linux and patch it so that you can run the Linux kernel more like a regular application.

Previously you had kernel mode and then you had usermode ways to execute code. Now you have a third way, the kvm way. There isn't much to emulate because it's not using emulation at all. It's just executing the code directly on your processor. The only really magic/complicated stuff that happens is to deal with memory addressing for the guest OS.

Qemu does all the heavy lifting as far as 'system emulator' goes.

Using the KVM API

Posted Oct 1, 2015 0:22 UTC (Thu) by rahvin (guest, #16953) [Link]

If you think about it, this is probably the very reason most of the KVM internals were already in the Linux Kernel when Xen and VmWare were arguing over the "standard" for the changes to the Linux Kernel they needed. It pretty obvious that this is the reason why to me. The changes are straightforward and simple.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds