]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: command: Error on accel2d
authorCole Robinson <crobinso@redhat.com>
Fri, 20 May 2016 00:02:08 +0000 (20:02 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 23 Jun 2016 13:29:18 +0000 (09:29 -0400)
qemu doesn't have any accel2d support wired up. Explicitly error
if a user tries it out, or typos the accel3d option

src/qemu/qemu_command.c

index f3c26f95697002b5c11f4f26784ba5f0a575d9b9..4fdb410e7660b7b55d00c5bfc4abb1918f4fcad2 100644 (file)
@@ -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)) {