Skip to content

Commit

Permalink
hw/arm/virt: use pci_init_nic_devices()
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
dwmw2 committed Feb 1, 2024
1 parent 6c5c526 commit d8728c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hw/arm/virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d8728c3

Please sign in to comment.