]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_capabilities: Add QEMU_CAPS_VIRTIO_GPU_GL_PCI
authorHan Han <hhan@redhat.com>
Wed, 9 Jun 2021 08:32:22 +0000 (16:32 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Jun 2021 11:06:44 +0000 (13:06 +0200)
This flag will be used for the device virtio-gpu-gl-pci which is introduced
since QEMU 6.1.

Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_6.1.0.x86_64.xml

index 75dd01f06eac2f9a9a6e772c75f9ffdc19cd5ddc..6df1b89aa0cf506527578563037688f8675b7fad 100644 (file)
@@ -630,6 +630,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
               "compat-deprecated",
               "acpi-index",
               "input-linux",
+              "virtio-gpu-gl-pci",
     );
 
 
@@ -1349,6 +1350,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
     { "virtio-pmem-pci", QEMU_CAPS_DEVICE_VIRTIO_PMEM_PCI },
     { "vhost-user-blk", QEMU_CAPS_DEVICE_VHOST_USER_BLK },
     { "input-linux", QEMU_CAPS_INPUT_LINUX },
+    { "virtio-gpu-gl-pci", QEMU_CAPS_VIRTIO_GPU_GL_PCI },
 };
 
 
index 94f2fad05a83c7bfdd806350f564e9595459c513..d6430babcec97eef87d59bdbccc269a5188387d8 100644 (file)
@@ -610,6 +610,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_COMPAT_DEPRECATED, /* -compat deprecated-(input|output) is supported */
     QEMU_CAPS_ACPI_INDEX, /* PCI device 'acpi-index' property */
     QEMU_CAPS_INPUT_LINUX, /* -object input-linux */
+    QEMU_CAPS_VIRTIO_GPU_GL_PCI, /* -device virtio-gpu-gl-pci */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;
index 4df320021957f00efe5d38448e85def07b4f3723..56d8534f7fcac43b66e4debb40ca70a10fd7cb6f 100644 (file)
   <flag name='compat-deprecated'/>
   <flag name='acpi-index'/>
   <flag name='input-linux'/>
+  <flag name='virtio-gpu-gl-pci'/>
   <version>6000050</version>
   <kvmVersion>0</kvmVersion>
   <microcodeVersion>43100243</microcodeVersion>