Revision c469e1dd hw/pci-hotplug.c
b/hw/pci-hotplug.c | ||
---|---|---|
113 | 113 |
if (pci_read_devaddr(mon, pci_addr, &dom, &pci_bus, &slot)) { |
114 | 114 |
goto err; |
115 | 115 |
} |
116 |
dev = pci_find_device(pci_find_host_bus(0), pci_bus, slot, 0);
|
|
116 |
dev = pci_find_device(pci_find_root_bus(0), pci_bus, slot, 0);
|
|
117 | 117 |
if (!dev) { |
118 | 118 |
monitor_printf(mon, "no pci device with address %s\n", pci_addr); |
119 | 119 |
goto err; |
... | ... | |
257 | 257 |
return; |
258 | 258 |
} |
259 | 259 |
|
260 |
d = pci_find_device(pci_find_host_bus(0), bus, slot, 0);
|
|
260 |
d = pci_find_device(pci_find_root_bus(0), bus, slot, 0);
|
|
261 | 261 |
if (!d) { |
262 | 262 |
monitor_printf(mon, "slot %d empty\n", slot); |
263 | 263 |
return; |
Also available in: Unified diff