]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix hot unplug of PCI devices with VFIO
authorLudovic Beliveau <ludovic.beliveau@windriver.com>
Fri, 5 Feb 2016 19:07:50 +0000 (14:07 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 16 Feb 2016 12:14:04 +0000 (13:14 +0100)
commit8fbdff163456b6311cd459017b6087ff5081bd56
treedf38c1f876f93ce3833a7f82c2f0a9cbe5416cc1
parentd6165440779f3ffda20bedae387a990077f08dcf
qemu: fix hot unplug of PCI devices with VFIO

Currently, on hot unplug of PCI devices with VFIO driver for QEMU, libvirt is
trying to restore the host devices to it's previous value (basically a chown
on the previous user/group).

However for devices with VFIO driver, when the device is unbinded it is
removed from the /dev/vfio file system causing the restore label to fail.

The fix is to not restore the label for those PCI devices since they are going
to be teared down anyway.

Signed-off-by: Ludovic Beliveau <ludovic.beliveau@windriver.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_hotplug.c