]> git.ipfire.org Git - thirdparty/qemu.git/commit
dma: Let dma_memory_map() take MemTxAttrs argument
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 3 Sep 2020 09:00:47 +0000 (11:00 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 30 Dec 2021 16:16:32 +0000 (17:16 +0100)
commita1d4b0a3051b3079c8db607f519bc0fcb30e17ec
tree4e21aaee0b22bc95cc9d749282e664db759cbc13
parentba06fe8add5b788956a7317246c6280dfc157040
dma: Let dma_memory_map() take MemTxAttrs argument

Let devices specify transaction attributes when calling
dma_memory_map().

Patch created mechanically using spatch with this script:

  @@
  expression E1, E2, E3, E4;
  @@
  - dma_memory_map(E1, E2, E3, E4)
  + dma_memory_map(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-7-philmd@redhat.com>
hw/display/virtio-gpu.c
hw/hyperv/vmbus.c
hw/ide/ahci.c
hw/usb/libhw.c
hw/virtio/virtio.c
include/hw/pci/pci.h
include/sysemu/dma.h
softmmu/dma-helpers.c