[libvirt] PATCH: recent qemu-kvm requires -enable-kvm flag to activate VT optimization

Steve Yarmie steve.yarmie at gmail.com
Mon Nov 16 03:03:51 UTC 2009


Recent qemu releases require command option '-enable-qemu' in order
for the kvm functionality be activated. Libvirt needs to pass this 
flag to qemu when starting a domain. Note that without the option,
even if both the kernel and qemu support KVM, KVM will not be activated
and VMs will be slow as molasses ;)

I added a check in qemu_conf.c to see if `qemu -help` emits the -enable-kvm
flag, and if so, use the flag accordingly.

There exists a check in src/qemu/qemu_conf.c to check for the -no-kvm flag.
This check works the same way. 

Adding the included code will not break systems where qemu does not
have the option.

See 'qemu -help':
-enable-kvm     enable KVM full virtualization support 

included patch against src/qemu/qemu_conf.{c,h}  


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-qemu-enable-kvm.patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20091115/18c1e04a/attachment-0001.ksh>

More information about the libvir-list mailing list