]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Allow @rendernode for virgl domains
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 9 Feb 2017 16:53:53 +0000 (17:53 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Feb 2017 09:44:22 +0000 (10:44 +0100)
commit5c74cf1f440b19c05dd9dbd2ab22c217db959fcf
tree8e6d379acab834781b735cb8feb5488a807b760a
parentdfa79bd82bab584747006609444ea07cfbcf5e99
qemu: Allow @rendernode for virgl domains

When enabling virgl, qemu opens /dev/dri/render*. So far, we are
not allowing that in devices CGroup nor creating the file in
domain's namespace and thus requiring users to set the paths in
qemu.conf. This, however, is suboptimal as it allows access to
ALL qemu processes even those which don't have virgl configured.
Now that we have a way to specify render node that qemu will use
we can be more cautious and enable just that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_cgroup.c
src/qemu/qemu_domain.c