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] xen: Better handling on not-present PDEs

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xen: Better handling on not-present PDEs in destroy_xen_mappings().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 May 2007 08:21:06 -0700
Delivery-date: Tue, 15 May 2007 08:21:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1178969871 -3600
# Node ID 5f6da38ff8286bd8ce75837d4b3e8e855a53113c
# Parent  03a13457d9938c88a54d5eafaa290ca8a11c53c0
xen: Better handling on not-present PDEs in destroy_xen_mappings().
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/mm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 03a13457d993 -r 5f6da38ff828 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Sat May 12 12:07:01 2007 +0100
+++ b/xen/arch/x86/mm.c Sat May 12 12:37:51 2007 +0100
@@ -3503,7 +3503,8 @@ void destroy_xen_mappings(unsigned long 
 
         if ( !(l2e_get_flags(*pl2e) & _PAGE_PRESENT) )
         {
-            v += PAGE_SIZE;
+            v += 1UL << L2_PAGETABLE_SHIFT;
+            v &= ~((1UL << L2_PAGETABLE_SHIFT) - 1);
             continue;
         }
 

_______________________________________________
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] xen: Better handling on not-present PDEs in destroy_xen_mappings()., Xen patchbot-unstable <=