WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] AMD IOMMU: remove iommu tlb flush for non

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] AMD IOMMU: remove iommu tlb flush for non-present entries
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Mon, 22 Aug 2011 15:33:08 +0100
Delivery-date: Mon, 22 Aug 2011 07:33:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Wei Wang <wei.wang2@xxxxxxx>
# Date 1314004204 -3600
# Node ID 07f78b5bd03c02e32324eaa00487643d27b7ffa8
# Parent  c56dd5eb0fa2f6623cf198998373bbb24dd6142c
AMD IOMMU: remove iommu tlb flush for non-present entries

Fixes dom0 boot on some systems.

Signed-off-by: Wei Wang <wei.wang2@xxxxxxx>
---


diff -r c56dd5eb0fa2 -r 07f78b5bd03c xen/drivers/passthrough/amd/iommu_map.c
--- a/xen/drivers/passthrough/amd/iommu_map.c   Mon Aug 22 10:05:27 2011 +0100
+++ b/xen/drivers/passthrough/amd/iommu_map.c   Mon Aug 22 10:10:04 2011 +0100
@@ -796,7 +796,10 @@
     if ( !need_flush )
         goto out;
 
-    amd_iommu_flush_pages(d, gfn, 0);
+    /* 4K mapping for PV guests never changes, 
+     * no need to flush if we trust non-present bits */
+    if ( is_hvm_domain(d) )
+        amd_iommu_flush_pages(d, gfn, 0);
 
     for ( merge_level = IOMMU_PAGING_MODE_LEVEL_2;
           merge_level <= hd->paging_mode; merge_level++ )

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] AMD IOMMU: remove iommu tlb flush for non-present entries, Xen patchbot-unstable <=