From: Cole Robinson Date: Fri, 20 May 2016 00:02:08 +0000 (-0400) Subject: qemu: command: Error on accel2d X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7490fdec922aca0f9e333d788a6ae5c9ff16b7e3;p=libvirt.git 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 --- diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index f3c26f9569..4fdb410e76 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4066,6 +4066,12 @@ qemuBuildDeviceVideoStr(const virDomainDef *def, 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->type != VIR_DOMAIN_VIDEO_TYPE_VIRTIO || !virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU_VIRGL)) {