]> xenbits.xensource.com Git - libvirt.git/commit
qemu_cgroup: Kill qemuSetupHostUSBDeviceCgroup
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 9 Feb 2017 09:16:12 +0000 (10:16 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Feb 2017 06:21:58 +0000 (07:21 +0100)
commit4d7d1c4bc342d97bff229cde75d057f9824866ff
treecc1b9012b1e983d4ddbe86217d303937696ef0f7
parent165c76acd0a910bfa4fce7c20c56605e643f3b29
qemu_cgroup: Kill qemuSetupHostUSBDeviceCgroup

There's no need for this function. Currently it is passed as a
callback to virUSBDeviceFileIterate(). However, USB devices have
just one file path. Therefore we can mimic approach used in
qemuDomainGetHostdevPath() to get path and call
virCgroupAllowDevicePath() directly.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
src/qemu/qemu_cgroup.c