|
From: | Durrant, Paul |
Subject: | Re: [PATCH v3 25/28] hw/pci: add pci_init_nic_devices(), pci_init_nic_in_slot() |
Date: | Fri, 27 Oct 2023 10:46:47 +0100 |
User-agent: | Mozilla Thunderbird |
On 25/10/2023 15:50, David Woodhouse wrote:
From: David Woodhouse <dwmw@amazon.co.uk> The loop over nd_table[] to add PCI NICs is repeated in quite a few places. Add a helper function to do it. Some platforms also try to instantiate a specific model in a specific slot, to match the real hardware. Add pci_init_nic_in_slot() for that purpose. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> --- hw/pci/pci.c | 45 ++++++++++++++++++++++++++++++++++++++++++++ include/hw/pci/pci.h | 4 +++- 2 files changed, 48 insertions(+), 1 deletion(-)
Reviewed-by: Paul Durrant <paul@xen.org>
[Prev in Thread] | Current Thread | [Next in Thread] |