[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [RFC v5 19/22] memory.h: Add set_page_size_mask IOMMUMemoryRe
From: |
Eric Auger |
Subject: |
[Qemu-arm] [RFC v5 19/22] memory.h: Add set_page_size_mask IOMMUMemoryRegion callback |
Date: |
Fri, 19 Jan 2018 14:49:12 +0000 |
This callback allows to inform the IOMMU memory region about
restrictions on the supported page sizes.
Signed-off-by: Eric Auger <address@hidden>
---
include/exec/memory.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/exec/memory.h b/include/exec/memory.h
index a4cabdf..c0916d7 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -204,6 +204,10 @@ typedef struct IOMMUMemoryRegionClass {
IOMMUAccessFlags flag);
/* Returns minimum supported page size */
uint64_t (*get_min_page_size)(IOMMUMemoryRegion *iommu);
+
+ /* Limits the supported page sizes to @pgsizes */
+ void (*set_page_size_mask)(IOMMUMemoryRegion *iommu, uint64_t pgsizes);
+
/* Called when IOMMU Notifier flag changed */
void (*notify_flag_changed)(IOMMUMemoryRegion *iommu,
IOMMUNotifierFlag old_flags,
--
1.9.1
- [Qemu-arm] [RFC v5 09/22] virtio-iommu: Register attached endpoints, (continued)
- [Qemu-arm] [RFC v5 09/22] virtio-iommu: Register attached endpoints, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 10/22] virtio-iommu: Implement attach/detach command, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 11/22] virtio-iommu: Implement map/unmap, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 12/22] virtio-iommu: Implement translate, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 13/22] virtio-iommu: Implement probe request, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 14/22] virtio-iommu: Add an msi_bypass property, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 15/22] virtio-iommu: Implement fault reporting, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 16/22] virtio_iommu: Handle reserved regions in translation process, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 17/22] hw/arm/virt: Add virtio-iommu to the virt board, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 18/22] hw/arm/virt-acpi-build: Add virtio-iommu node in IORT table, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 19/22] memory.h: Add set_page_size_mask IOMMUMemoryRegion callback,
Eric Auger <=
- [Qemu-arm] [RFC v5 20/22] hw/vfio/common: Set the IOMMUMemoryRegion supported page sizes, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 21/22] virtio-iommu: Implement set_page_size_mask, Eric Auger, 2018/01/19
- [Qemu-arm] [RFC v5 22/22] hw/vfio/common: Do not print error when viommu translates into an mmio region, Eric Auger, 2018/01/19