]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/sd/sdhci.c
dma: Let dma_memory_read/write() take MemTxAttrs argument
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 3 Sep 2020 08:08:29 +0000 (10:08 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 30 Dec 2021 16:16:32 +0000 (17:16 +0100)
commitba06fe8add5b788956a7317246c6280dfc157040
treeac45cbe188581ffab75d060e0eec843515f8ec32
parent23faf5694ff8054b847e9733297727be4a641132
dma: Let dma_memory_read/write() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_memory_read() or dma_memory_write().

Patch created mechanically using spatch with this script:

  @@
  expression E1, E2, E3, E4;
  @@
  (
  - dma_memory_read(E1, E2, E3, E4)
  + dma_memory_read(E1, E2, E3, E4, MEMTXATTRS_UNSPECIFIED)
  |
  - dma_memory_write(E1, E2, E3, E4)
  + dma_memory_write(E1, E2, E3, E4, MEMTXATTRS_UNSPECIFIED)
  )

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211223115554.3155328-6-philmd@redhat.com>
30 files changed:
hw/arm/musicpal.c
hw/arm/smmu-common.c
hw/arm/smmuv3.c
hw/core/generic-loader.c
hw/dma/pl330.c
hw/dma/sparc32_dma.c
hw/dma/xlnx-zynq-devcfg.c
hw/dma/xlnx_dpdma.c
hw/i386/amd_iommu.c
hw/i386/intel_iommu.c
hw/ide/macio.c
hw/intc/xive.c
hw/misc/bcm2835_property.c
hw/misc/macio/mac_dbdma.c
hw/net/allwinner-sun8i-emac.c
hw/net/ftgmac100.c
hw/net/imx_fec.c
hw/net/npcm7xx_emc.c
hw/nvram/fw_cfg.c
hw/pci-host/pnv_phb3.c
hw/pci-host/pnv_phb3_msi.c
hw/pci-host/pnv_phb4.c
hw/sd/allwinner-sdhost.c
hw/sd/sdhci.c
hw/usb/hcd-dwc2.c
hw/usb/hcd-ehci.c
hw/usb/hcd-ohci.c
hw/usb/hcd-xhci.c
include/hw/ppc/spapr_vio.h
include/sysemu/dma.h