mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
qemu: validate bochs-display capability
When the bochs display type was added, the capability was never checked. Add that check in the same place as the other video device capability checks. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
3a15c47253
commit
f2fd684849
@ -5271,7 +5271,9 @@ qemuProcessStartValidateVideo(virDomainObjPtr vm,
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU)) ||
|
||||
(video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO &&
|
||||
video->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU_CCW))) {
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU_CCW)) ||
|
||||
(video->type == VIR_DOMAIN_VIDEO_TYPE_BOCHS &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_BOCHS_DISPLAY))) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("this QEMU does not support '%s' video device"),
|
||||
virDomainVideoTypeToString(video->type));
|
||||
|
Loading…
Reference in New Issue
Block a user