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

[Xen-changelog] Shadow mode should (for now) *not* set the _PAGE_GLOBAL mode in any of the shadow page tables.



ChangeSet 1.1340.1.2, 2005/04/21 18:30:34+01:00, maf46@xxxxxxxxxxxxxxxxx

        Shadow mode should (for now) *not* set the _PAGE_GLOBAL mode in any of 
the shadow page tables.
        
        Signed-off-by: michael.fetterman@xxxxxxxxxxxx



 shadow.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
--- a/xen/include/asm-x86/shadow.h      2005-04-21 21:05:46 -04:00
+++ b/xen/include/asm-x86/shadow.h      2005-04-21 21:05:46 -04:00
@@ -590,7 +590,7 @@
 
     ASSERT(l1e_get_flags(gpte) & _PAGE_RW);
     l1e_add_flags(&gpte, _PAGE_DIRTY | _PAGE_ACCESSED);
-    spte = l1e_create_pfn(gmfn, l1e_get_flags(gpte));
+    spte = l1e_create_pfn(gmfn, l1e_get_flags(gpte) & ~_PAGE_GLOBAL);
 
     SH_VVLOG("l1pte_write_fault: updating spte=0x%p gpte=0x%p",
              l1e_get_value(spte), l1e_get_value(gpte));
@@ -623,7 +623,7 @@
     }
 
     l1e_add_flags(&gpte, _PAGE_ACCESSED);
-    spte = l1e_create_pfn(mfn, l1e_get_flags(gpte));
+    spte = l1e_create_pfn(mfn, l1e_get_flags(gpte) & ~_PAGE_GLOBAL);
 
     if ( shadow_mode_log_dirty(d) || !(l1e_get_flags(gpte) & _PAGE_DIRTY) ||
          mfn_is_page_table(mfn) )
@@ -651,7 +651,7 @@
           (_PAGE_PRESENT|_PAGE_ACCESSED)) &&
          VALID_MFN(mfn = __gpfn_to_mfn(d, l1e_get_pfn(gpte))) )
     {
-        spte = l1e_create_pfn(mfn, l1e_get_flags(gpte));
+        spte = l1e_create_pfn(mfn, l1e_get_flags(gpte) & ~_PAGE_GLOBAL);
         
         if ( shadow_mode_log_dirty(d) ||
              !(l1e_get_flags(gpte) & _PAGE_DIRTY) ||

_______________________________________________
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®.