Skip to contentSkip to conversation

why did qemu add the KVM ?

Qemu-devel yuanzhu86 2 participants 2 messages Sep 10, 2009 – Sep 11, 2009

lore
Share & tools
lore

yuanzhu86

author
#0 lore raw

there is a KVM.c in the target-i386 ,
but why did QEMU have this program?
shall anyone tell me the fuction of KVM.c to the QEMU ? thanks very much

#1 lore raw
Quoted 3 lines · On (Thu) Sep 10 2009 [23:45:41], yuanzhu86 wrote:

there is a KVM.c in the target-i386 ,
but why did QEMU have this program?
shall anyone tell me the fuction of KVM.c to the QEMU ?

When a disk image is given to qemu, qemu converts instructions from the target architecture to the native architecture. This enables it to run, for example, ARM binaries on x86. However, when you want to execute x86 code on x86, the translations are not necessary. KVM is code that short-circuits those translations so that x86 binaries are run directly on the host x86 CPU.

KVM is a kernel module that handles processor-specific state so that guests can run side by side normal processes. KVM.c in QEMU sources interfaces with the KVM kernel modules.

Amit