提交 7d47e813 编写于 作者: A Alex Williamson 提交者: Eric Blake

qemu: Release bus address on PCI host device remove

Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
上级 ddfd4dba
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册