[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] qemu: pci_scan everytime we register a device
Hi all, when using stubdoms the pci devices visible when issuing a pci_scan change dynamically with the devices that are actually assigned to the stubdom. For this reason every time we want to assign a new device to the guest we need to rescan the pci bus. Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> --- diff --git a/hw/pass-through.c b/hw/pass-through.c index cdf0f31..946f460 100644 --- a/hw/pass-through.c +++ b/hw/pass-through.c @@ -4431,9 +4431,9 @@ int power_on_php_devfn(int devfn) return -1; } pci_init(pci_access); - pci_scan_bus(pci_access); dpci_infos.pci_access = pci_access; } + pci_scan_bus(dpci_infos.pci_access); pt_dev = register_real_device(dpci_infos.e_bus, _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |