[libvirt] [PATCH 0/2] Adjust order of calls during qemuDomainRemoveHostDevice

John Ferlan jferlan at redhat.com
Mon Mar 28 11:52:20 UTC 2016


While reviewing patch:

http://www.redhat.com/archives/libvir-list/2016-March/msg00194.html

I noted that the order of operations during the code path was slightly
different and could cause issues if the reattachment code was called
first. It would seem that resetting the hostdev label and cgroup prior
to reattaching the device to the host would be a better corollary to
the attachment code path which detaches the devices from the host, then
sets the cgroup, then sets the hostdev label.

John Ferlan (2):
  qemu: Restore label before reattach device to host
  qemu: Tear down the cgroup before reattach device to host

 src/qemu/qemu_hotplug.c | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

-- 
2.5.5




More information about the libvir-list mailing list