]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: add vhost-user-gpu capabilities checks
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 23 Sep 2019 10:44:29 +0000 (14:44 +0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 24 Sep 2019 16:29:29 +0000 (12:29 -0400)
Those new devices are available since QEMU 4.1.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml

index 43f01bf2ba5ddce11544e18a5be8b0faebb1454f..72e070e8abb43bf1d3259607e51326a037a5edb2 100644 (file)
@@ -538,6 +538,8 @@ VIR_ENUM_IMPL(virQEMUCaps,
               "bochs-display",
               "migration-file-drop-cache",
               "dbus-vmstate",
+              "vhost-user-gpu",
+              "vhost-user-vga",
     );
 
 
@@ -1129,6 +1131,8 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
     { "max-x86_64-cpu", QEMU_CAPS_X86_MAX_CPU },
     { "bochs-display", QEMU_CAPS_DEVICE_BOCHS_DISPLAY },
     { "dbus-vmstate", QEMU_CAPS_DBUS_VMSTATE },
+    { "vhost-user-gpu", QEMU_CAPS_DEVICE_VHOST_USER_GPU },
+    { "vhost-user-vga", QEMU_CAPS_DEVICE_VHOST_USER_VGA },
 };
 
 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioBalloon[] = {
index fe80fb53919e68434919a0d7b5743a1a9bc58750..137b7161a5f3ba5c7055fbb405dd8df6aceece34 100644 (file)
@@ -519,6 +519,8 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_DEVICE_BOCHS_DISPLAY, /* -device bochs-display */
     QEMU_CAPS_MIGRATION_FILE_DROP_CACHE, /* migration with disk cache on is safe for type='file' disks */
     QEMU_CAPS_DBUS_VMSTATE, /* -object dbus-vmstate */
+    QEMU_CAPS_DEVICE_VHOST_USER_GPU, /* -device vhost-user-gpu */
+    QEMU_CAPS_DEVICE_VHOST_USER_VGA, /* -device vhost-user-vga */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index f4583d7fe7d28387b154788037435dc733112206..5d4540b3f74dcc1bfb803499e78e46d000a1f12c 100644 (file)
   <flag name='canonical-cpu-features'/>
   <flag name='bochs-display'/>
   <flag name='migration-file-drop-cache'/>
+  <flag name='vhost-user-gpu'/>
+  <flag name='vhost-user-vga'/>
   <version>4000050</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>43100759</microcodeVersion>