[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/18] memory/iommu: Add IOMMU_ATTR_MAX_IOVA attribute
From: |
Avihai Horon |
Subject: |
[PATCH 13/18] memory/iommu: Add IOMMU_ATTR_MAX_IOVA attribute |
Date: |
Thu, 26 Jan 2023 20:49:43 +0200 |
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 <avihaih@nvidia.com>
---
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 c37ffdbcd1..910067a3a5 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -290,7 +290,8 @@ typedef struct MemoryRegionClass {
enum IOMMUMemoryRegionAttr {
- IOMMU_ATTR_SPAPR_TCE_FD
+ IOMMU_ATTR_SPAPR_TCE_FD,
+ IOMMU_ATTR_MAX_IOVA,
};
/*
--
2.26.3
- [PATCH 07/18] util: Extend iova_tree_foreach() to take data argument, (continued)
- [PATCH 07/18] util: Extend iova_tree_foreach() to take data argument, Avihai Horon, 2023/01/26
- [PATCH 05/18] vfio/common: Add VFIOBitmap and (de)alloc functions, Avihai Horon, 2023/01/26
- [PATCH 08/18] vfio/common: Record DMA mapped IOVA ranges, Avihai Horon, 2023/01/26
- [PATCH 09/18] vfio/common: Add device dirty page tracking start/stop, Avihai Horon, 2023/01/26
- [PATCH 06/18] util: Add iova_tree_nnodes(), Avihai Horon, 2023/01/26
- [PATCH 17/18] vfio/migration: Query device dirty page tracking support, Avihai Horon, 2023/01/26
- [PATCH 11/18] vfio/common: Add device dirty page bitmap sync, Avihai Horon, 2023/01/26
- [PATCH 13/18] memory/iommu: Add IOMMU_ATTR_MAX_IOVA attribute,
Avihai Horon <=
- [PATCH 16/18] vfio/common: Optimize device dirty page tracking with vIOMMU, Avihai Horon, 2023/01/26
- [PATCH 12/18] vfio/common: Extract vIOMMU code from vfio_sync_dirty_bitmap(), Avihai Horon, 2023/01/26
- [PATCH 14/18] intel-iommu: Implement get_attr() method, Avihai Horon, 2023/01/26
- [PATCH 15/18] vfio/common: Support device dirty page tracking with vIOMMU, Avihai Horon, 2023/01/26
- [PATCH 10/18] vfio/common: Extract code from vfio_get_dirty_bitmap() to new function, Avihai Horon, 2023/01/26
- [PATCH 18/18] docs/devel: Document VFIO device dirty page tracking, Avihai Horon, 2023/01/26