]> xenbits.xensource.com Git - libvirt.git/commitdiff
Revert "qemu_cgroup: allow access to /dev/dri for virtio-vga"
authorJán Tomko <jtomko@redhat.com>
Thu, 19 May 2016 09:29:54 +0000 (11:29 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 23 May 2016 08:48:27 +0000 (10:48 +0200)
This reverts commit 3943bdd60c7ff1de00e73f66d907664b74a88a3f.

src/qemu/qemu_cgroup.c

index 46634f4c29d9622a7fb995226b68626e8b959e1d..1e04a68e0488e532d6645983f3aa806ccb982a97 100644 (file)
@@ -51,7 +51,6 @@ static const char *const defaultDeviceACL[] = {
 };
 #define DEVICE_PTY_MAJOR 136
 #define DEVICE_SND_MAJOR 116
-#define DEVICE_DRI_MAJOR 226
 
 
 static int
@@ -627,20 +626,6 @@ qemuSetupDevicesCgroup(virQEMUDriverPtr driver,
             goto cleanup;
     }
 
-    if (vm->def->nvideos) {
-        /* currently libvirt only allows the primary video to be virtio */
-        virDomainVideoDefPtr vid = vm->def->videos[0];
-        if (vid->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO &&
-            vid->accel && vid->accel->accel3d == VIR_TRISTATE_BOOL_YES) {
-            rv = virCgroupAllowDevice(priv->cgroup, 'c', DEVICE_DRI_MAJOR, -1,
-                                      VIR_CGROUP_DEVICE_RW);
-            virDomainAuditCgroupMajor(vm, priv->cgroup, "allow", DEVICE_DRI_MAJOR,
-                                      "video", "rw", rv == 0);
-            if (rv < 0)
-                goto cleanup;
-        }
-    }
-
     for (i = 0; deviceACL[i] != NULL; i++) {
         if (!virFileExists(deviceACL[i])) {
             VIR_DEBUG("Ignoring non-existent device %s", deviceACL[i]);