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

[Xen-changelog] [xen-unstable] xen: Better handling on not-present PDEs in destroy_xen_mappings().



# 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


 


Rackspace

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