]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/xen: use qemu_create_nic_bus_devices() to instantiate Xen NICs
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 17 Oct 2023 16:53:58 +0000 (17:53 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 25 Oct 2023 13:56:49 +0000 (14:56 +0100)
commita9c853acf2cdf73c351d5cc2c7ef0c5b8f495cdc
tree4dbc22b4d8b852c9c26b835f2e49cd97cc9039f2
parent3db0e149310d256086471131fa3643293318d1c3
hw/xen: use qemu_create_nic_bus_devices() to instantiate Xen NICs

When instantiating XenBus itself, for each NIC which is configured with
either the model unspecified, or set to to "xen" or "xen-net-device",
create a corresponding xen-net-device for it.

Now we can launch emulated Xen guests with '-nic user', and this fixes
the setup for Xen PV guests, which was previously broken in various
ways and never actually managed to peer with the netdev.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
hw/xen/xen-bus.c
hw/xen/xen_devconfig.c
hw/xenpv/xen_machine_pv.c
include/hw/xen/xen-legacy-backend.h