mirror of https://gitee.com/openkylin/libvirt.git
qemu: capabilities: Fill SDL graphics support only when it's really supported
virQEMUCapsFillDomainDeviceGraphicsCaps fills data needed both for validation of the graphics type and also for correct display in the (dom)capablities XML. Signal the support for SDL only when qemu has the capability. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
0a8d3740d0
commit
599b17d580
src/qemu
|
@ -6075,7 +6075,8 @@ virQEMUCapsFillDomainDeviceGraphicsCaps(virQEMUCaps *qemuCaps,
|
|||
dev->supported = VIR_TRISTATE_BOOL_YES;
|
||||
dev->type.report = true;
|
||||
|
||||
VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_SDL);
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_SDL))
|
||||
VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_SDL);
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_VNC))
|
||||
VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_VNC);
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_SPICE))
|
||||
|
|
Loading…
Reference in New Issue