mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
qemu_validate: Validate virtio*gl* devices for 3d accerlation
The devices virtio-gpu-gl-pci and virtio-vga-gl, aimed to replace the virgl property, are valid for 3d accerlation as well. Signed-off-by: Han Han <hhan@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
456d6c142e
commit
38aed410ac
@ -2364,7 +2364,9 @@ qemuValidateDomainDeviceDefVideo(const virDomainVideoDef *video,
|
|||||||
} else if (video->accel) {
|
} else if (video->accel) {
|
||||||
if (video->accel->accel3d == VIR_TRISTATE_SWITCH_ON &&
|
if (video->accel->accel3d == VIR_TRISTATE_SWITCH_ON &&
|
||||||
(video->type != VIR_DOMAIN_VIDEO_TYPE_VIRTIO ||
|
(video->type != VIR_DOMAIN_VIDEO_TYPE_VIRTIO ||
|
||||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_GPU_VIRGL))) {
|
!(virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_GPU_VIRGL) ||
|
||||||
|
virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_GPU_GL_PCI) ||
|
||||||
|
virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_VGA_GL)))) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("%s 3d acceleration is not supported"),
|
_("%s 3d acceleration is not supported"),
|
||||||
virDomainVideoTypeToString(video->type));
|
virDomainVideoTypeToString(video->type));
|
||||||
|
Loading…
Reference in New Issue
Block a user