]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Fix QMP detection of QXL graphics
authorJiri Denemark <jdenemar@redhat.com>
Tue, 9 Oct 2012 06:25:02 +0000 (08:25 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 9 Oct 2012 09:42:05 +0000 (11:42 +0200)
With the recent introduction of QMP capabilities probing, libvirt failed
to detect support for QXL graphics in QEMU 1.2 and newer. In addition to
fixing that, this patch also causes libvirt to detect QXL support for
qemu-kvm-0.13.0, which doesn't advertise it in -help output but mentions
it in device list. Since qemu-kvm-0.13.0 supported -spice, it looks like
not having qxl in -help was a bug.

src/qemu/qemu_capabilities.c
tests/qemuhelptest.c

index a5eb995a60e3ddf9f777d82df53df2d6e1fa4522..05340ae9b9cc97dea40abd97dd9655af2484211b 100644 (file)
@@ -1271,6 +1271,7 @@ struct qemuCapsStringFlags qemuCapsObjectTypes[] = {
     { "virtio-scsi-pci", QEMU_CAPS_VIRTIO_SCSI_PCI },
     { "spicevmc", QEMU_CAPS_DEVICE_SPICEVMC },
     { "qxl-vga", QEMU_CAPS_DEVICE_QXL_VGA },
+    { "qxl", QEMU_CAPS_VGA_QXL },
     { "sga", QEMU_CAPS_SGA },
     { "scsi-block", QEMU_CAPS_SCSI_BLOCK },
     { "scsi-cd", QEMU_CAPS_SCSI_CD },
index 681f425b04e309556af0d32eabf9705dd6b4d774..df30ac191fcceb312d2ae434b0d72bff4d77704d 100644 (file)
@@ -467,6 +467,7 @@ mymain(void)
             QEMU_CAPS_NESTING,
             QEMU_CAPS_NAME_PROCESS,
             QEMU_CAPS_SMBIOS_TYPE,
+            QEMU_CAPS_VGA_QXL,
             QEMU_CAPS_SPICE,
             QEMU_CAPS_VGA_NONE,
             QEMU_CAPS_MIGRATE_QEMU_FD,