summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2022-02-11 16:56:41 -0600
committerJonathon Jongsma <jjongsma@redhat.com>2023-03-08 13:05:05 -0600
commit052094b5e4d68837b31d4dcd314551abb9f43478 (patch)
tree3705443d2092306377ab990b710214ca289dee10 /src
parent96d43ab285395bc2b93683f1d2083e6205fbf664 (diff)
downloadlibvirt-052094b5e4d68837b31d4dcd314551abb9f43478.tar.gz
qemu: Add capability for virtio-gpu.blob
Capability to determine whether this qemu supports the 'blob' option for virtio-gpu. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/qemu/qemu_capabilities.c2
-rw-r--r--src/qemu/qemu_capabilities.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 18c4c0b1cd..218e6c09a4 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -690,6 +690,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
/* 445 */
"netdev.stream.reconnect", /* QEMU_CAPS_NETDEV_STREAM_RECONNECT */
+ "virtio-gpu.blob", /* QEMU_CAPS_VIRTIO_GPU_BLOB */
);
@@ -1512,6 +1513,7 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsQxl[] = {
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioGpu[] = {
{ "virgl", QEMU_CAPS_VIRTIO_GPU_VIRGL, NULL },
{ "acpi-index", QEMU_CAPS_ACPI_INDEX, NULL },
+ { "blob", QEMU_CAPS_VIRTIO_GPU_BLOB, NULL },
};
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsICH9[] = {
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
index dfa0b806de..21f23cff96 100644
--- a/src/qemu/qemu_capabilities.h
+++ b/src/qemu/qemu_capabilities.h
@@ -669,6 +669,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
/* 445 */
QEMU_CAPS_NETDEV_STREAM_RECONNECT, /* -netdev stream supports reconnect */
+ QEMU_CAPS_VIRTIO_GPU_BLOB, /* -device virtio-gpu-*.blob= */
QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags;