[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 3/9] vfio: set iommu page size as per host supported page size
From: |
Bharat Bhushan |
Subject: |
[PATCH v9 3/9] vfio: set iommu page size as per host supported page size |
Date: |
Mon, 23 Mar 2020 14:16:11 +0530 |
Set iommu supported page size mask same as host Linux
supported page size mask.
Signed-off-by: Bharat Bhushan <address@hidden>
---
hw/vfio/common.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index c586edf47a..6ea50d696f 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -635,6 +635,9 @@ static void vfio_listener_region_add(MemoryListener
*listener,
int128_get64(llend),
iommu_idx);
+ memory_region_iommu_set_page_size_mask(giommu->iommu,
+ container->pgsizes);
+
ret = memory_region_register_iommu_notifier(section->mr, &giommu->n,
&err);
if (ret) {
--
2.17.1
[PATCH v9 2/9] memory: Add interface to set iommu page size mask, Bharat Bhushan, 2020/03/23
[PATCH v9 3/9] vfio: set iommu page size as per host supported page size,
Bharat Bhushan <=
[PATCH v9 4/9] virtio-iommu: set supported page size mask, Bharat Bhushan, 2020/03/23
[PATCH v9 5/9] virtio-iommu: Add iommu notifier for map/unmap, Bharat Bhushan, 2020/03/23
[PATCH v9 6/9] virtio-iommu: Call iommu notifier for attach/detach, Bharat Bhushan, 2020/03/23
[PATCH v9 7/9] virtio-iommu: add iommu replay, Bharat Bhushan, 2020/03/23
[PATCH v9 8/9] virtio-iommu: Implement probe request, Bharat Bhushan, 2020/03/23