diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-09-03 09:28:49 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-12-30 17:16:32 +0100 |
commit | 7ccb391ccd594b3f33de8deb293ff8d47bb4e219 (patch) | |
tree | 1d4d82f9dc1ffbd2f61dfbac6fb978892f2694fb /include/hw/ppc/spapr_vio.h | |
parent | 41d5e8da3d5e0a143a9fb397c9f34707ec544997 (diff) | |
download | qemu-7ccb391ccd594b3f33de8deb293ff8d47bb4e219.zip qemu-7ccb391ccd594b3f33de8deb293ff8d47bb4e219.tar.gz qemu-7ccb391ccd594b3f33de8deb293ff8d47bb4e219.tar.bz2 |
dma: Let dma_memory_valid() take MemTxAttrs argument
Let devices specify transaction attributes when calling
dma_memory_valid().
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-2-philmd@redhat.com>
Diffstat (limited to 'include/hw/ppc/spapr_vio.h')
-rw-r--r-- | include/hw/ppc/spapr_vio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr_vio.h b/include/hw/ppc/spapr_vio.h index 4bea87f..4c45f15 100644 --- a/include/hw/ppc/spapr_vio.h +++ b/include/hw/ppc/spapr_vio.h @@ -91,7 +91,7 @@ static inline void spapr_vio_irq_pulse(SpaprVioDevice *dev) static inline bool spapr_vio_dma_valid(SpaprVioDevice *dev, uint64_t taddr, uint32_t size, DMADirection dir) { - return dma_memory_valid(&dev->as, taddr, size, dir); + return dma_memory_valid(&dev->as, taddr, size, dir, MEMTXATTRS_UNSPECIFIED); } static inline int spapr_vio_dma_read(SpaprVioDevice *dev, uint64_t taddr, |