[libvirt] [PATCH] qemu: don't require is_kvm for vhost-net support

Eric Blake eblake at redhat.com
Mon May 23 17:48:37 UTC 2011


On 05/23/2011 11:43 AM, Laine Stump wrote:
> This was discussed in:
> 
>   https://www.redhat.com/archives/libvir-list/2011-May/msg01370.html
> 
> The capabilities code only sets the flag to allow use of vhost-net if
> kvm is detected (set if the help string contains "(qemu-kvm-" or
> "(kvm-"), but actually vhost-net is available in some qemu builds that
> don't have kvm in their name, so just checking for ",vhost=" is enough.
> ---
>  src/qemu/qemu_capabilities.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
> index ea55df5..71a54a5 100644
> --- a/src/qemu/qemu_capabilities.c
> +++ b/src/qemu/qemu_capabilities.c
> @@ -982,7 +982,7 @@ qemuCapsComputeCmdFlags(const char *help,
>      if (is_kvm && (version >= 10000 || kvm_version >= 74))
>          qemuCapsSet(flags, QEMU_CAPS_VNET_HDR);
>  
> -    if (is_kvm && strstr(help, ",vhost=")) {
> +    if (strstr(help, ",vhost=")) {

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110523/cc7fe850/attachment-0001.sig>


More information about the libvir-list mailing list