[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [RFC v4 13/16] memory.h: Add set_page_size_mask IOMMUMemoryRe
From: |
Eric Auger |
Subject: |
[Qemu-arm] [RFC v4 13/16] memory.h: Add set_page_size_mask IOMMUMemoryRegion callback |
Date: |
Tue, 19 Sep 2017 09:46:45 +0200 |
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 1dcd312..0c91dca 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,
--
2.5.5
- [Qemu-arm] [RFC v4 08/16] virtio-iommu: Implement map/unmap, (continued)
- [Qemu-arm] [RFC v4 11/16] hw/arm/virt: Add 2.11 machine type, Eric Auger, 2017/09/19
- [Qemu-arm] [RFC v4 12/16] hw/arm/virt: Add virtio-iommu to the virt board, Eric Auger, 2017/09/19
- [Qemu-arm] [RFC v4 13/16] memory.h: Add set_page_size_mask IOMMUMemoryRegion callback,
Eric Auger <=
- [Qemu-arm] [RFC v4 15/16] virtio-iommu: Implement set_page_size_mask, Eric Auger, 2017/09/19
- [Qemu-arm] [RFC v4 14/16] hw/vfio/common: Set the IOMMUMemoryRegion supported page sizes, Eric Auger, 2017/09/19
- [Qemu-arm] [RFC v4 16/16] hw/vfio/common: Do not print error when viommu translates into an mmio region, Eric Auger, 2017/09/19
- Re: [Qemu-arm] [RFC v4 00/16] VIRTIO-IOMMU device, Tomasz Nowicki, 2017/09/27