[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V2 10/11] memory: handle alias in memory_region_is_i
From: |
Jason Wang |
Subject: |
[Qemu-devel] [PATCH V2 10/11] memory: handle alias in memory_region_is_iommu() |
Date: |
Thu, 3 Nov 2016 17:27:22 +0800 |
Signed-off-by: Jason Wang <address@hidden>
---
include/exec/memory.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/exec/memory.h b/include/exec/memory.h
index e605de3..ab37499 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -628,6 +628,9 @@ static inline bool memory_region_is_romd(MemoryRegion *mr)
*/
static inline bool memory_region_is_iommu(MemoryRegion *mr)
{
+ if (mr->alias) {
+ return memory_region_is_iommu(mr->alias);
+ }
return mr->iommu_ops;
}
--
2.7.4
- [Qemu-devel] [PATCH V2 07/11] virtio-pci: address space translation service (ATS) support, (continued)
- [Qemu-devel] [PATCH V2 07/11] virtio-pci: address space translation service (ATS) support, Jason Wang, 2016/11/03
- Re: [Qemu-devel] [PATCH V2 07/11] virtio-pci: address space translation service (ATS) support, Michael S. Tsirkin, 2016/11/03
- Re: [Qemu-devel] [PATCH V2 07/11] virtio-pci: address space translation service (ATS) support, Jason Wang, 2016/11/04
- Re: [Qemu-devel] [PATCH V2 07/11] virtio-pci: address space translation service (ATS) support, Michael S. Tsirkin, 2016/11/10
- Re: [Qemu-devel] [PATCH V2 07/11] virtio-pci: address space translation service (ATS) support, Jason Wang, 2016/11/10
- Re: [Qemu-devel] [PATCH V2 07/11] virtio-pci: address space translation service (ATS) support, Michael S. Tsirkin, 2016/11/10
- Re: [Qemu-devel] [PATCH V2 07/11] virtio-pci: address space translation service (ATS) support, Jason Wang, 2016/11/10
[Qemu-devel] [PATCH V2 08/11] acpi: add ATSR for q35, Jason Wang, 2016/11/03
[Qemu-devel] [PATCH V2 09/11] memory: handle alias for iommu notifier, Jason Wang, 2016/11/03
[Qemu-devel] [PATCH V2 10/11] memory: handle alias in memory_region_is_iommu(),
Jason Wang <=
[Qemu-devel] [PATCH V2 11/11] vhost_net: device IOTLB support, Jason Wang, 2016/11/03
Re: [Qemu-devel] [PATCH V2 00/11] vhost device IOTLB support, no-reply, 2016/11/03