diff options
| author | David Woodhouse <dwmw@amazon.co.uk> | 2023-10-17 17:53:58 +0100 |
|---|---|---|
| committer | David Woodhouse <dwmw@amazon.co.uk> | 2024-02-02 16:23:47 +0000 |
| commit | 7d6eff13b3e10efbed9b01fa4eb9515acd86dcf7 (patch) | |
| tree | 27c16ccc2c89b458f6e820f447e5a5169febf8ff /include/hw/xen/xen-legacy-backend.h | |
| parent | 8d39f9ba14d64a147324778d3e1013eee4643e06 (diff) | |
| download | focaccia-qemu-7d6eff13b3e10efbed9b01fa4eb9515acd86dcf7.tar.gz focaccia-qemu-7d6eff13b3e10efbed9b01fa4eb9515acd86dcf7.zip | |
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 revert the previous more hackish version which relied on the platform code explicitly registering the NICs on its own XenBus, having returned the BusState* from xen_bus_init() itself. This also 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> Reviewed-by: Paul Durrant <paul@xen.org>
Diffstat (limited to 'include/hw/xen/xen-legacy-backend.h')
| -rw-r--r-- | include/hw/xen/xen-legacy-backend.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/xen/xen-legacy-backend.h b/include/hw/xen/xen-legacy-backend.h index fc42146bc2..2cca174778 100644 --- a/include/hw/xen/xen-legacy-backend.h +++ b/include/hw/xen/xen-legacy-backend.h @@ -81,7 +81,6 @@ extern struct XenDevOps xen_usb_ops; /* xen-usb.c */ /* configuration (aka xenbus setup) */ void xen_config_cleanup(void); -int xen_config_dev_nic(NICInfo *nic); int xen_config_dev_vfb(int vdev, const char *type); int xen_config_dev_vkbd(int vdev); int xen_config_dev_console(int vdev); |