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

[Xen-changelog] Initialise p2m entries to INVALID_MFN and disable debug printk in pfn to mfn lookup.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID e84b1185013ff6784ce94c557ce710d78c828de0
# Parent  db8266c27c4fed4e1ef37ac7c5548a175238f71d
Initialise p2m entries to INVALID_MFN and disable debug printk in pfn to mfn 
lookup.

Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r db8266c27c4f -r e84b1185013f xen/arch/x86/shadow32.c
--- a/xen/arch/x86/shadow32.c   Tue Mar 28 20:21:26 2006
+++ b/xen/arch/x86/shadow32.c   Wed Mar 29 09:46:36 2006
@@ -924,7 +924,8 @@
         }
 
         l1 = map_domain_page_with_cache(page_to_mfn(l1page), l1cache);
-        memset(l1, 0, PAGE_SIZE);
+        /* Initialise entries to INVALID_MFN = ~0 */
+        memset(l1, -1, PAGE_SIZE);
         unmap_domain_page_with_cache(l1, l1cache);
 
         l2e = l2e_from_page(l1page, __PAGE_HYPERVISOR);
@@ -1686,8 +1687,10 @@
         unmap_domain_page(l2);
         if ( !(l2e_get_flags(l2e) & _PAGE_PRESENT) )
         {
+#if 0
             printk("%s(d->id=%d, gpfn=%lx) => 0 l2e=%" PRIpte "\n",
                    __func__, d->domain_id, gpfn, l2e_get_intpte(l2e));
+#endif
             return INVALID_MFN;
         }
         l1 = map_domain_page(l2e_get_pfn(l2e));

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