diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-09-03 11:00:47 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-12-30 17:16:32 +0100 |
commit | a1d4b0a3051b3079c8db607f519bc0fcb30e17ec (patch) | |
tree | 4e21aaee0b22bc95cc9d749282e664db759cbc13 /include/hw | |
parent | ba06fe8add5b788956a7317246c6280dfc157040 (diff) | |
download | qemu-a1d4b0a3051b3079c8db607f519bc0fcb30e17ec.zip qemu-a1d4b0a3051b3079c8db607f519bc0fcb30e17ec.tar.gz qemu-a1d4b0a3051b3079c8db607f519bc0fcb30e17ec.tar.bz2 |
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>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/pci/pci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index 4383f1c..1acefc2 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -875,7 +875,8 @@ static inline void *pci_dma_map(PCIDevice *dev, dma_addr_t addr, { void *buf; - buf = dma_memory_map(pci_get_address_space(dev), addr, plen, dir); + buf = dma_memory_map(pci_get_address_space(dev), addr, plen, dir, + MEMTXATTRS_UNSPECIFIED); return buf; } |