mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemu: Add bochs-display capability
Check whether qemu supports the bochs-display device and set a capability. Update tests. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3efdffc450
commit
086c19d699
@ -533,6 +533,9 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
"x86-max-cpu",
|
||||
"cpu-unavailable-features",
|
||||
"canonical-cpu-features",
|
||||
|
||||
/* 335 */
|
||||
"bochs-display",
|
||||
);
|
||||
|
||||
|
||||
@ -1121,6 +1124,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
|
||||
{ "virtio-serial-pci-transitional", QEMU_CAPS_VIRTIO_PCI_TRANSITIONAL },
|
||||
{ "virtio-serial-pci-non-transitional", QEMU_CAPS_VIRTIO_PCI_TRANSITIONAL },
|
||||
{ "max-x86_64-cpu", QEMU_CAPS_X86_MAX_CPU },
|
||||
{ "bochs-display", QEMU_CAPS_DEVICE_BOCHS_DISPLAY },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioBalloon[] = {
|
||||
|
@ -515,6 +515,9 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
QEMU_CAPS_CPU_UNAVAILABLE_FEATURES, /* "unavailable-features" CPU property */
|
||||
QEMU_CAPS_CANONICAL_CPU_FEATURES, /* avoid CPU feature aliases */
|
||||
|
||||
/* 335 */
|
||||
QEMU_CAPS_DEVICE_BOCHS_DISPLAY, /* -device bochs-display */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
||||
|
@ -151,6 +151,7 @@
|
||||
<flag name='memory-backend-memfd.hugetlb'/>
|
||||
<flag name='iothread.poll-max-ns'/>
|
||||
<flag name='memory-backend-file.align'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>2012050</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>42900757</microcodeVersion>
|
||||
|
@ -198,6 +198,7 @@
|
||||
<flag name='memory-backend-file.align'/>
|
||||
<flag name='nvdimm.unarmed'/>
|
||||
<flag name='x86-max-cpu'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>3000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100757</microcodeVersion>
|
||||
|
@ -156,6 +156,7 @@
|
||||
<flag name='memory-backend-file.align'/>
|
||||
<flag name='memory-backend-file.pmem'/>
|
||||
<flag name='overcommit'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>3000091</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>42900758</microcodeVersion>
|
||||
|
@ -201,6 +201,7 @@
|
||||
<flag name='nvdimm.unarmed'/>
|
||||
<flag name='overcommit'/>
|
||||
<flag name='x86-max-cpu'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>3000092</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100758</microcodeVersion>
|
||||
|
@ -163,6 +163,7 @@
|
||||
<flag name='machine.virt.iommu'/>
|
||||
<flag name='bitmap-merge'/>
|
||||
<flag name='nbd-bitmap'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>4000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>61700758</microcodeVersion>
|
||||
|
@ -168,6 +168,7 @@
|
||||
<flag name='query-current-machine'/>
|
||||
<flag name='bitmap-merge'/>
|
||||
<flag name='nbd-bitmap'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>4000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>42900758</microcodeVersion>
|
||||
|
@ -166,6 +166,7 @@
|
||||
<flag name='query-current-machine'/>
|
||||
<flag name='bitmap-merge'/>
|
||||
<flag name='nbd-bitmap'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>4000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>0</microcodeVersion>
|
||||
|
@ -166,6 +166,7 @@
|
||||
<flag name='query-current-machine'/>
|
||||
<flag name='bitmap-merge'/>
|
||||
<flag name='nbd-bitmap'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>4000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>0</microcodeVersion>
|
||||
|
@ -205,6 +205,7 @@
|
||||
<flag name='bitmap-merge'/>
|
||||
<flag name='nbd-bitmap'/>
|
||||
<flag name='x86-max-cpu'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>4000000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100758</microcodeVersion>
|
||||
|
@ -207,6 +207,7 @@
|
||||
<flag name='x86-max-cpu'/>
|
||||
<flag name='cpu-unavailable-features'/>
|
||||
<flag name='canonical-cpu-features'/>
|
||||
<flag name='bochs-display'/>
|
||||
<version>4000050</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100759</microcodeVersion>
|
||||
|
Loading…
Reference in New Issue
Block a user