[libvirt] PATCH: recent qemu-kvm requires -enable-kvm flag to activate VT optimization
Steve Yarmie
steve.yarmie at gmail.com
Tue Nov 17 14:02:56 UTC 2009
Thanks for pointing that out. I made the changes you suggested.
An updated patch is attached.
btw - I'm using qemu-kvm-0.11.0, but this patch would be relevant when
running
any version of qemu/qemu-kvm that was released after the upstream merge
of the
kvm userspace..
-Steve
Daniel P. Berrange wrote:
> On Mon, Nov 16, 2009 at 02:15:28AM -0800, Steve Yarmie wrote
>>
>> + /* Should explicitly enable KVM if
>> + * 1. Guest domain is 'qemu'
>> Surely 'kvm' here
>>
>> + * 2. The qemu binary has the -enable-kvm flag
>> + * NOTE: user must be responsible to load the kvm modules
>> + */
>> + if ((qemuCmdFlags & QEMUD_CMD_FLAG_ENABLE_KVM) &&
>> + def->virtType == VIR_DOMAIN_VIRT_QEMU)
>>
>
> Again, this should be VIR_DOMAIN_VIRT_KVM here - 'qemu' is intended
> to be pure emulation only
>
>
> Regards,
> Daniel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20091117/ec0077d1/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libvirt-qemu-flag-enable-kvm.patch
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20091117/ec0077d1/attachment-0001.ksh>
More information about the libvir-list
mailing list