From: Avihai Horon <avih...@nvidia.com>

Add a new IOMMU attribute IOMMU_ATTR_MAX_IOVA which indicates the
maximal IOVA that an IOMMU can use.

This attribute will be used by VFIO device dirty page tracking so it can
track the entire IOVA space when needed (i.e. when vIOMMU is enabled).

Signed-off-by: Avihai Horon <avih...@nvidia.com>
Signed-off-by: Joao Martins <joao.m.mart...@oracle.com>
Acked-by: Peter Xu <pet...@redhat.com>
---
 include/exec/memory.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/exec/memory.h b/include/exec/memory.h
index a02496f34180..b09b1c9846fe 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -318,6 +318,7 @@ typedef struct MemoryRegionClass {
 enum IOMMUMemoryRegionAttr {
     IOMMU_ATTR_SPAPR_TCE_FD,
     IOMMU_ATTR_DMA_TRANSLATION,
+    IOMMU_ATTR_MAX_IOVA,
 };
 
 /*
-- 
2.39.3


Reply via email to