x86/iommu: add comment regarding setting of need_sync
PATCH 1/1 x86/iommu: add comment regarding setting of need_sync
Clarify why relaxed hardware domains don't need iommu page-table syncing.
Signed-off-by Roger Pau Monné <[email protected]>
---
Cc: Jan Beulich <[email protected]>
--- xen/drivers/passthrough/iommu.c | 4 ++++ 1 file changed, 4 insertions(+)
xen/drivers/passthrough/iommu.c +4 -0
@@ -185,6 +185,10 @@ void __hwdom_init iommu_hwdom_init(struct domain *d)register_keyhandler ('o' , &iommu_dump_p2m_table,"dump iommu p2m table" ,0 ); hd->status = IOMMU_STATUS_initializing; +/* +* NB: relaxed hw domains don't need sync because all ram is already +* mapped in the iommu page tables. +*/ hd->need_sync = iommu_hwdom_strict && !iommu_use_hap_pt (d);if (need_iommu_pt_sync (d) ) {
Signature · 7 lines
2.20.1 (Apple Git-117) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Roger Pau Monne
Clarify why relaxed hardware domains don't need iommu page-table syncing.
Signed-off-by Roger Pau Monné <[email protected]>
Acked-by Jan Beulich <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel