mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
qemu: Release bus address on PCI host device remove
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
ddfd4dba95
commit
7d47e813b4
@ -8624,6 +8624,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,
|
||||
|
Loading…
Reference in New Issue
Block a user