qemu-patch-raspberry4/hw/net
KarimAllah Ahmed c508277335 vmxnet3: Fix reading/writing guest memory specially when behind an IOMMU
When a PCI device lives behind an IOMMU, it should use 'pci_dma_*' family of
functions when any transfer from/to guest memory is required while
'cpu_physical_memory_*' family of functions completely bypass any MMU/IOMMU in
the system.

vmxnet3 in some places was using 'cpu_physical_memory_*' family of functions
which works fine with the default QEMU setup where IOMMU is not enabled but
fails miserably when IOMMU is enabled. This commit converts all such instances
in favor of 'pci_dma_*'

Cc: Dmitry Fleytman <dmitry@daynix.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: qemu-devel@nongnu.org
Cc: Anthony Liguori <aliguori@amazon.com>
Signed-off-by: KarimAllah Ahmed <karahmed@amazon.de>
Acked-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-06-28 10:13:57 +08:00
..
fsl_etsec
rocker hw/net/rocker: Don't use *_to_cpup() 2016-06-27 16:39:56 +01:00
allwinner_emac.c
cadence_gem.c cadence_gem: Set the last bit when wrap is set 2016-06-27 15:37:32 +01:00
dp8393x.c
e1000.c hw/net/e1000: Don't use *_to_cpup() 2016-06-27 16:39:56 +01:00
e1000_regs.h
e1000e.c
e1000e_core.c hw/net/e1000: Don't use *_to_cpup() 2016-06-27 16:39:56 +01:00
e1000e_core.h
e1000x_common.c hw/net/e1000: Don't use *_to_cpup() 2016-06-27 16:39:56 +01:00
e1000x_common.h
eepro100.c hw/net/eepro100.c: Don't use cpu_to_*w() and *_to_cpup() 2016-06-27 16:39:56 +01:00
etraxfs_eth.c
imx_fec.c
lan9118.c
lance.c
Makefile.objs
mcf_fec.c
milkymist-minimac2.c
mipsnet.c net: mipsnet: check transmit buffer size before sending 2016-06-28 10:13:57 +08:00
ne2000-isa.c
ne2000.c
ne2000.h
net_rx_pkt.c
net_rx_pkt.h
net_tx_pkt.c
net_tx_pkt.h
opencores_eth.c
pcnet-pci.c
pcnet.c
pcnet.h
rtl8139.c rtl8139: save/load RxMulOk counter (again) 2016-06-28 10:13:57 +08:00
smc91c111.c
spapr_llan.c
stellaris_enet.c
trace-events
vhost_net.c
virtio-net.c hw/net/virtio-net.c: Don't use *_to_cpup() 2016-06-27 16:39:56 +01:00
vmware_utils.h vmxnet3: Fix reading/writing guest memory specially when behind an IOMMU 2016-06-28 10:13:57 +08:00
vmxnet3.c vmxnet3: Fix reading/writing guest memory specially when behind an IOMMU 2016-06-28 10:13:57 +08:00
vmxnet3.h
vmxnet_debug.h
xen_nic.c
xgmac.c
xilinx_axienet.c
xilinx_ethlite.c