diff options
author | John Ferlan <jferlan@redhat.com> | 2016-03-28 07:40:57 -0400 |
---|---|---|
committer | John Ferlan <jferlan@redhat.com> | 2016-04-06 20:22:29 -0400 |
commit | 2fbf29a5295b1f6d331ba8a421905552662ca348 (patch) | |
tree | 43d97f43326ce3f30073024e4348698b23247f0e /tests | |
parent | 409de00e3d8538dd357d2031cd8848aabe75207d (diff) | |
download | libvirt-2fbf29a5295b1f6d331ba8a421905552662ca348.tar.gz |
qemu: Tear down the cgroup before reattach device to host
When a hostdev is attached to the guest (and removed from the host),
the order of operations is call qemuHostdevPreparePCIDevices to remove
the device from the host, call qemuSetupHostdevCgroup to setup the cgroups,
and virSecurityManagerSetHostdevLabel to set the labels.
When the device is removed from the guest, the code didn't use the
reverse order leading to possible issues (especially if the path to
the device no longer exists). This patch will move the call to
qemuTeardownHostdevCgroup to prior to reattaching the device to
the host.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions