On 25/10/2023 15:50, David Woodhouse wrote:
From: David Woodhouse <d...@amazon.co.uk>

Eliminate direct access to nd_table[] and nb_nics by processing the the
ISA NICs first and then calling pci_init_nic_devices() for the test.

It's important to do this *before* the subsequent patch which registers
the Xen PV network devices, because the code being remove here didn't
check whether nd->instantiated was already set before using each entry.

Signed-off-by: David Woodhouse <d...@amazon.co.uk>
---
  hw/i386/pc.c                | 21 +++++++++++----------
  include/hw/net/ne2000-isa.h |  2 --
  2 files changed, 11 insertions(+), 12 deletions(-)


Reviewed-by: Paul Durrant <p...@xen.org>


Reply via email to