QEMU: Difference between revisions

*The host operating system does not run well with KVM (e.g. [[Windows 98]] does not run with KVM on most systems)
 
===System Emulation With KVM===
With KVM, the Linux kernel's API for utilizing CPU native virtualization support, QEMU can run operating systems at near native speeds.
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.
 
QEMUWhen can run operating systems at near native speeds with KVM, the Linux kernel's API for utilizing CPU native virtualization support. With KVMenabled, 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/system emulation still runs regardlessin ofusermode whether or notwith KVM is enabled, however some performance sensitive chipset emulation functionality is by default moved into KVM, increasinghelping increase performance further.
 
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.