[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v2 2/6] memory: Add IOMMU_ATTR_VFIO_NESTED IOMMU memor
From: |
Eric Auger |
Subject: |
[Qemu-arm] [PATCH v2 2/6] memory: Add IOMMU_ATTR_VFIO_NESTED IOMMU memory region attribute |
Date: |
Mon, 1 Jul 2019 11:30:30 +0200 |
We introduce a new IOMMU Memory Region attribute,
IOMMU_ATTR_VFIO_NESTED that tells whether the virtual IOMMU
requires physical nested stages for VFIO integration.
Current Intel virtual IOMMU device supports "Caching
Mode" and does not require 2 stages at physical level to be
integrated with VFIO. However SMMUv3 does not implement such
"caching mode" and requires to use physical stage 1 for VFIO
integration.
Signed-off-by: Eric Auger <address@hidden>
---
include/exec/memory.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/exec/memory.h b/include/exec/memory.h
index bdd76653a8..dd7ef23f96 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -204,7 +204,8 @@ struct MemoryRegionOps {
};
enum IOMMUMemoryRegionAttr {
- IOMMU_ATTR_SPAPR_TCE_FD
+ IOMMU_ATTR_SPAPR_TCE_FD,
+ IOMMU_ATTR_VFIO_NESTED,
};
/**
--
2.20.1
[Qemu-arm] [PATCH v2 5/6] hw/arm/smmuv3: Log a guest error when decoding an invalid STE, Eric Auger, 2019/07/01
[Qemu-arm] [PATCH v2 2/6] memory: Add IOMMU_ATTR_VFIO_NESTED IOMMU memory region attribute,
Eric Auger <=
[Qemu-arm] [PATCH v2 1/6] memory: Remove unused memory_region_iommu_replay_all(), Eric Auger, 2019/07/01
[Qemu-arm] [PATCH v2 4/6] hw/arm/smmuv3: Advertise VFIO_NESTED, Eric Auger, 2019/07/01
[Qemu-arm] [PATCH v2 6/6] hw/arm/smmuv3: Remove spurious error messages on IOVA invalidations, Eric Auger, 2019/07/01