]> xenbits.xensource.com Git - libvirt.git/commit
qemu_cgroup: Kill qemuSetupHostSCSIVHostDeviceCgroup
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 9 Feb 2017 09:30:23 +0000 (10:30 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Feb 2017 06:21:58 +0000 (07:21 +0100)
commit60ddceff8f4ef076d24ddbd0a66f35e1666e9ebe
treeb96df9396885b3f695449fdbbee35c9431e28554
parent7bb01ed3cd41718f652f8dbf07954c3297671bec
qemu_cgroup: Kill qemuSetupHostSCSIVHostDeviceCgroup

There's no need for this function. Currently it is passed as a
callback to virSCSIVHostDeviceFileIterate(). However, SCSI host
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