]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: command: unconditionally allow accel3d='no'
authorCole Robinson <crobinso@redhat.com>
Sun, 8 May 2016 17:38:56 +0000 (13:38 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 9 May 2016 20:06:32 +0000 (16:06 -0400)
This matches how we handle spice gl='no' even if spice GL isn't
supported. Not too interesting in practice but I figure we should
be consistent

src/qemu/qemu_command.c

index cc06a45ac25df7f881d128b6db75d1e29117afe9..7e39b8ab24b5b4a152469938b0fbea6e9b37aedd 100644 (file)
@@ -4116,7 +4116,7 @@ qemuBuildDeviceVideoStr(const virDomainDef *def,
     virBufferAsprintf(&buf, "%s,id=%s", model, video->info.alias);
 
     if (video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO) {
-        if (video->accel && video->accel->accel3d) {
+        if (video->accel && video->accel->accel3d == VIR_TRISTATE_SWITCH_ON) {
             if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU_VIRGL)) {
                 virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                                "%s", _("virtio-gpu 3d acceleration is not supported"));