direct-io.hg

changeset 9460:e84b1185013f

Initialise p2m entries to INVALID_MFN and disable debug printk in pfn to mfn lookup.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Mar 29 10:46:36 2006 +0100 (2006-03-29)
parents db8266c27c4f
children ae6af19f47d3
files xen/arch/x86/shadow32.c
line diff
     1.1 --- a/xen/arch/x86/shadow32.c	Tue Mar 28 21:21:26 2006 +0100
     1.2 +++ b/xen/arch/x86/shadow32.c	Wed Mar 29 10:46:36 2006 +0100
     1.3 @@ -924,7 +924,8 @@ set_p2m_entry(struct domain *d, unsigned
     1.4          }
     1.5  
     1.6          l1 = map_domain_page_with_cache(page_to_mfn(l1page), l1cache);
     1.7 -        memset(l1, 0, PAGE_SIZE);
     1.8 +        /* Initialise entries to INVALID_MFN = ~0 */
     1.9 +        memset(l1, -1, PAGE_SIZE);
    1.10          unmap_domain_page_with_cache(l1, l1cache);
    1.11  
    1.12          l2e = l2e_from_page(l1page, __PAGE_HYPERVISOR);
    1.13 @@ -1686,8 +1687,10 @@ get_mfn_from_gpfn_foreign(struct domain 
    1.14          unmap_domain_page(l2);
    1.15          if ( !(l2e_get_flags(l2e) & _PAGE_PRESENT) )
    1.16          {
    1.17 +#if 0
    1.18              printk("%s(d->id=%d, gpfn=%lx) => 0 l2e=%" PRIpte "\n",
    1.19                     __func__, d->domain_id, gpfn, l2e_get_intpte(l2e));
    1.20 +#endif
    1.21              return INVALID_MFN;
    1.22          }
    1.23          l1 = map_domain_page(l2e_get_pfn(l2e));