These patches are required for running more tests with "make check" on builds that use "--without-default-devices". By marking the default NIC in the generic MachineClass, the main code can decide whether the NIC is available in the binary or not, so the instantiation can be skipped if it has not been compiled in.
See https://lore.kernel.org/qemu-devel/20230512124033.502654-5-th...@redhat.com/ and the other patches in that series for more information. Thomas Huth (5): hw/hppa: Use MachineClass->default_nic in the hppa machine hw/alpha: Use MachineClass->default_nic in the alpha machine hw/arm: Use MachineClass->default_nic in the virt machine hw/loongarch64: Use MachineClass->default_nic in the virt machine hw/xtensa: Use MachineClass->default_nic in the virt machine hw/alpha/dp264.c | 4 +++- hw/arm/virt.c | 4 +++- hw/hppa/machine.c | 4 +++- hw/loongarch/virt.c | 4 +++- hw/xtensa/virt.c | 9 ++++++--- 5 files changed, 18 insertions(+), 7 deletions(-) -- 2.31.1