aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/libhw.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-09-03 11:00:47 +0200
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2021-12-30 17:16:32 +0100
commita1d4b0a3051b3079c8db607f519bc0fcb30e17ec (patch)
tree4e21aaee0b22bc95cc9d749282e664db759cbc13 /hw/usb/libhw.c
parentba06fe8add5b788956a7317246c6280dfc157040 (diff)
downloadqemu-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 'hw/usb/libhw.c')
-rw-r--r--hw/usb/libhw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb/libhw.c b/hw/usb/libhw.c
index 9c33a16..f350eae 100644
--- a/hw/usb/libhw.c
+++ b/hw/usb/libhw.c
@@ -36,7 +36,8 @@ int usb_packet_map(USBPacket *p, QEMUSGList *sgl)
while (len) {
dma_addr_t xlen = len;
- mem = dma_memory_map(sgl->as, base, &xlen, dir);
+ mem = dma_memory_map(sgl->as, base, &xlen, dir,
+ MEMTXATTRS_UNSPECIFIED);
if (!mem) {
goto err;
}