]> git.ipfire.org Git - thirdparty/qemu.git/commit
net: Provide MemReentrancyGuard * to qemu_new_nic()
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 1 Jun 2023 03:18:58 +0000 (12:18 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Nov 2023 12:33:42 +0000 (15:33 +0300)
commitcc5124d9797b0801525bc6658af9ed22426d1eff
tree4de50812d3b57b31f1bbde5f45ec1af967670295
parentc6c0a1888fc2339048157391eab2017cadbaf684
net: Provide MemReentrancyGuard * to qemu_new_nic()

Recently MemReentrancyGuard was added to DeviceState to record that the
device is engaging in I/O. The network device backend needs to update it
when delivering a packet to a device.

In preparation for such a change, add MemReentrancyGuard * as a
parameter of qemu_new_nic().

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 7d0fefdf81f5973334c344f6b8e1896c309dff66)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: fixup in hw/net/xen_nic.c due to lack of v8.1.0-2771-g25967ff69f
 "hw/xen: update Xen PV NIC to XenDevice model")
40 files changed:
hw/net/allwinner-sun8i-emac.c
hw/net/allwinner_emac.c
hw/net/cadence_gem.c
hw/net/dp8393x.c
hw/net/e1000.c
hw/net/e1000e.c
hw/net/eepro100.c
hw/net/etraxfs_eth.c
hw/net/fsl_etsec/etsec.c
hw/net/ftgmac100.c
hw/net/i82596.c
hw/net/igb.c
hw/net/imx_fec.c
hw/net/lan9118.c
hw/net/mcf_fec.c
hw/net/mipsnet.c
hw/net/msf2-emac.c
hw/net/mv88w8618_eth.c
hw/net/ne2000-isa.c
hw/net/ne2000-pci.c
hw/net/npcm7xx_emc.c
hw/net/opencores_eth.c
hw/net/pcnet.c
hw/net/rocker/rocker_fp.c
hw/net/rtl8139.c
hw/net/smc91c111.c
hw/net/spapr_llan.c
hw/net/stellaris_enet.c
hw/net/sungem.c
hw/net/sunhme.c
hw/net/tulip.c
hw/net/virtio-net.c
hw/net/vmxnet3.c
hw/net/xen_nic.c
hw/net/xgmac.c
hw/net/xilinx_axienet.c
hw/net/xilinx_ethlite.c
hw/usb/dev-network.c
include/net/net.h
net/net.c