aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-05-31 11:32:25 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2013-05-31 11:32:25 -0500
commitcdf79b6454abe13aec89d4be7cf59b3e841a7faf (patch)
treea43c2df70cd98fc4fbeff9553d6fe96f2270017e /include/sysemu
parentfd21faadb12669e24eaf0a277de61c24fcde4cac (diff)
parentfd8aaa767ab5d804c2aa156a616b8ca8837916b0 (diff)
downloadqemu-cdf79b6454abe13aec89d4be7cf59b3e841a7faf.zip
qemu-cdf79b6454abe13aec89d4be7cf59b3e841a7faf.tar.gz
qemu-cdf79b6454abe13aec89d4be7cf59b3e841a7faf.tar.bz2
Merge remote-tracking branch 'bonzini/iommu-for-anthony' into staging
# By Paolo Bonzini # Via Paolo Bonzini * bonzini/iommu-for-anthony: (22 commits) memory: add return value to address_space_rw/read/write memory: propagate errors on I/O dispatch exec: just use io_mem_read/io_mem_write for 8-byte I/O accesses memory: correctly handle endian-swapped 64-bit accesses memory: split accesses even when the old MMIO callbacks are used memory: add big endian support to access_with_adjusted_size memory: accept mismatching sizes in memory_region_access_valid memory: add address_space_access_valid exec: implement .valid.accepts for subpages memory: export memory_region_access_valid to exec.c exec: introduce memory_access_size exec: introduce memory_access_is_direct exec: expect mr->ops to be initialized for ROM memory: assign MemoryRegionOps to all regions memory: move unassigned_mem_ops to memory.c memory: add address_space_translate memory: dispatch unassigned accesses based on .valid.accepts exec: do not use error_mem_read exec: make io_mem_unassigned private cputlb: simplify tlb_set_page ... Message-id: 1369947836-2638-1-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/dma.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sysemu/dma.h b/include/sysemu/dma.h
index a52c93a..02e0dcd 100644
--- a/include/sysemu/dma.h
+++ b/include/sysemu/dma.h
@@ -113,7 +113,8 @@ static inline bool dma_memory_valid(DMAContext *dma,
DMADirection dir)
{
if (!dma_has_iommu(dma)) {
- return true;
+ return address_space_access_valid(dma->as, addr, len,
+ dir == DMA_DIRECTION_FROM_DEVICE);
} else {
return iommu_dma_memory_valid(dma, addr, len, dir);
}