]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: add vhost-vdpa capability
authorJonathon Jongsma <jjongsma@redhat.com>
Wed, 14 Oct 2020 17:08:26 +0000 (12:08 -0500)
committerLaine Stump <laine@redhat.com>
Tue, 20 Oct 2020 18:47:20 +0000 (14:47 -0400)
Recent versions of qemu added the -netdev vhost-vdpa device. This
capability allows libvirt to know whether this is supported.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_5.1.0.x86_64.xml
tests/qemucapabilitiesdata/caps_5.2.0.x86_64.xml

index e2957cf0b2a67fb057beaadf37c3b618caff2eb6..5f0138e080c8550dae7259f07b218fb5ccdad40f 100644 (file)
@@ -602,6 +602,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
               "usb-host.hostdevice",
               "virtio-balloon.free-page-reporting",
               "block-export-add",
+              "netdev.vhost-vdpa",
     );
 
 
@@ -1535,6 +1536,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsQMPSchemaQueries[] = {
     { "migrate-set-parameters/arg-type/downtime-limit", QEMU_CAPS_MIGRATION_PARAM_DOWNTIME },
     { "migrate-set-parameters/arg-type/xbzrle-cache-size", QEMU_CAPS_MIGRATION_PARAM_XBZRLE_CACHE_SIZE },
     { "set-numa-node/arg-type/+hmat-lb", QEMU_CAPS_NUMA_HMAT },
+    { "netdev_add/arg-type/+vhost-vdpa", QEMU_CAPS_NETDEV_VHOST_VDPA },
 };
 
 typedef struct _virQEMUCapsObjectTypeProps virQEMUCapsObjectTypeProps;
index b29cf8bf0c6b0e51639424092b01999a85db1d90..047ba8a0ee1788bf448f1fe25431c9f2f07d487a 100644 (file)
@@ -582,6 +582,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_USB_HOST_HOSTDEVICE, /* -device usb-host.hostdevice */
     QEMU_CAPS_VIRTIO_BALLOON_FREE_PAGE_REPORTING, /*virtio balloon free-page-reporting */
     QEMU_CAPS_BLOCK_EXPORT_ADD, /* 'block-export-add' command is supported */
+    QEMU_CAPS_NETDEV_VHOST_VDPA, /* -netdev vhost-vdpa*/
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index 9ebd7ea582b2fdc0c2ac9b12cd333a6169d40147..ac9e258b25d576bba8b02615c8b0c731462afe3d 100644 (file)
   <flag name='blockdev-hostdev-scsi'/>
   <flag name='usb-host.hostdevice'/>
   <flag name='virtio-balloon.free-page-reporting'/>
+  <flag name='netdev.vhost-vdpa'/>
   <version>5001000</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>43100242</microcodeVersion>
index 975f00b5e187092c71392ed14a51d079f257e746..36b44181a9039a61be8e11d4736bb58378803d91 100644 (file)
   <flag name='usb-host.hostdevice'/>
   <flag name='virtio-balloon.free-page-reporting'/>
   <flag name='block-export-add'/>
+  <flag name='netdev.vhost-vdpa'/>
   <version>5001050</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>43100243</microcodeVersion>