Using the KVM API
Using the KVM API
Posted Sep 29, 2015 21:26 UTC (Tue) by josh (subscriber, #17465)In reply to: Using the KVM API by pbonzini
Parent article: Using the KVM API
> Note that KVM used QEMU to handle the boot phase only in the very beginning; nowadays it uses vm86 mode or an in-kernel interpreter if unrestricted guest mode is unavailable. This avoids duplicating the emulation code between the kernel and userspace.
True. Out of curiosity, does any means exist to turn that *off*? I have some interest in compiling out most or all of the in-kernel instruction emulation, to reduce attack surface area.
> A KVM_EXIT_IO exit is very slow, on the order of a few thousand cycles on the newest processors. By comparison, QEMU can dispatch a single memory-mapped I/O operation in about 100 clock cycles, so 60-150 times faster than KVM.
What about with coalesced or fd-ed I/O?
