mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: command: Error on accel2d
qemu doesn't have any accel2d support wired up. Explicitly error if a user tries it out, or typos the accel3d option
This commit is contained in:
parent
9a4703a3f0
commit
7490fdec92
@ -4066,6 +4066,12 @@ qemuBuildDeviceVideoStr(const virDomainDef *def,
|
|||||||
|
|
||||||
virBufferAsprintf(&buf, "%s,id=%s", model, video->info.alias);
|
virBufferAsprintf(&buf, "%s,id=%s", model, video->info.alias);
|
||||||
|
|
||||||
|
if (video->accel && video->accel->accel2d == VIR_TRISTATE_SWITCH_ON) {
|
||||||
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
|
_("qemu does not support the accel2d setting"));
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
if (video->accel && video->accel->accel3d == VIR_TRISTATE_SWITCH_ON) {
|
if (video->accel && video->accel->accel3d == VIR_TRISTATE_SWITCH_ON) {
|
||||||
if (video->type != VIR_DOMAIN_VIDEO_TYPE_VIRTIO ||
|
if (video->type != VIR_DOMAIN_VIDEO_TYPE_VIRTIO ||
|
||||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU_VIRGL)) {
|
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU_VIRGL)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user