]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: only request sound cgroup ACL when required
authorEric Blake <eblake@redhat.com>
Fri, 25 Feb 2011 18:55:44 +0000 (11:55 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 28 Feb 2011 16:42:25 +0000 (09:42 -0700)
commit7c6b22c4d5343f8f635aa5c820778b09636f9beb
tree0854fa820e5afa7a69882b2557a456cc1a66403c
parent3c37a171a2dea8048dfee90e1be2875f30f7eb15
qemu: only request sound cgroup ACL when required

When a SPICE or VNC graphics controller is present, and sound is
piggybacked over a channel to the graphics device rather than
directly accessing host hardware, then there is no need to grant
host hardware access to that qemu process.

* src/qemu/qemu_cgroup.c (qemuSetupCgroup): Prevent sound with
spice, and with vnc when vnc_allow_host_audio is 0.
Reported by Daniel Berrange.
src/qemu/qemu_cgroup.c