hw/arm/virt: use pci_init_nic_devices()
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
0e45d0eb23
commit
e4264b28f6
@ -1457,9 +1457,7 @@ static void create_pcie(VirtMachineState *vms)
|
||||
pci->bypass_iommu = vms->default_bus_bypass_iommu;
|
||||
vms->bus = pci->bus;
|
||||
if (vms->bus) {
|
||||
for (i = 0; i < nb_nics; i++) {
|
||||
pci_nic_init_nofail(&nd_table[i], pci->bus, mc->default_nic, NULL);
|
||||
}
|
||||
pci_init_nic_devices(pci->bus, mc->default_nic);
|
||||
}
|
||||
|
||||
nodename = vms->pciehb_nodename = g_strdup_printf("/pcie@%" PRIx64, base);
|
||||
|
Loading…
Reference in New Issue
Block a user