QEMU: Difference between revisions

Jump to navigation Jump to search
No edit summary
 
===KVM===
QEMU can run operating systems at near native speeds with KVM, the Linux kernel's API for utilizing CPU native virtualization support. With KVM, instead of using the Tiny Code Generator (TCG) to _emulate_ each vCPU present in the configured machine, QEMU will instead request KVM run the vCPU, greatly increasing the performance of the virtualized system. Most of QEMU's hardware emulation still runs regardless of whether or not KVM is enabled, however some performance sensitive chipset emulation functionality is by default moved into KVM, increasing performance further.
QEMU can run operating systems at near native speeds with KVM. QEMU still emulates the hardware, but the execution of the guest is done by KVM as requested by QEMU. You can enable KVM by adding <kbd>-accel kvm</kbd> to the startup arguments.
 
You can enable KVM by adding <kbd>-accel kvm</kbd> to the startup arguments, or by appending <kbd>,accel=kvm</kbd> to your <kbd>-machine</kbd>/<kbd>-M</kbd> option.
 
If installed, you can check if you are ready to enable kvm by checking the command <kbd>kvm-ok</kbd>.

Navigation menu