Signed-off-by: Alex Williamson <alex.williamson(a)redhat.com>
---
src/qemu/qemu_driver.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 32ce835..afdc718 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -8625,6 +8625,10 @@ static int qemudDomainDetachHostPciDevice(struct qemud_driver
*driver,
pciFreeDevice(pci);
}
+ if (qemuDomainPCIAddressReleaseAddr(priv->pciaddrs, &detach->info) < 0)
{
+ VIR_WARN0("Unable to release PCI address on controller");
+ }
+
if (vm->def->nhostdevs > 1) {
memmove(vm->def->hostdevs + i,
vm->def->hostdevs + i + 1,