[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] x86/iommu: add comment regarding setting of need_sync


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Mon, 22 Jul 2019 17:45:52 +0200
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=Pass smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 22 Jul 2019 15:46:03 +0000
  • Ironport-sdr: YS0JACkc1xe+TWd6wLIoWNGm5hlhYOAXRuhRvFH+wBaSRyZE4Y7AGS50PzBxzp/OrRpcLf+Ebv Q8tmpHMksKKX1fS+oPLCaf7J5koNI6ZIP/mRYk/zf3b5RYgxKMxZ8AWyoHD/fevVv6eKNfT3MU cz1BlrD/OLP/DToPqrloln03n80kgIBGZ10tc4Nqjxjc6130/PcIWWwNO/9ZjWVzFzdsd3MxBL KabgdLq5KDcJPtOa9FOR8k8hXebpaKQtaNd2AkS2pCB2eqQwMOOHWeSpALMau6r19W1lmZ50yH DmY=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Clarify why relaxed hardware domains don't need iommu page-table
syncing.

Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
Cc: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/drivers/passthrough/iommu.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c
index 79ec6719f5..f8c3bf53bd 100644
--- a/xen/drivers/passthrough/iommu.c
+++ b/xen/drivers/passthrough/iommu.c
@@ -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) )
     {
-- 
2.20.1 (Apple Git-117)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.