ia64/xen-unstable

changeset 13866:584ab4fd1ad5

[XEN] Remove bogus assertion in shadow emulation path
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Wed Feb 07 12:58:07 2007 +0000 (2007-02-07)
parents 4d7ee9f4336a
children fbc233a1dc53 6e1b380947ee
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Wed Feb 07 12:41:46 2007 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Wed Feb 07 12:58:07 2007 +0000
     1.3 @@ -3875,11 +3875,9 @@ static inline void * emulate_map_dest(st
     1.4          goto page_fault;
     1.5      }
     1.6  
     1.7 -    /* Attempted a write to a bad gfn? This should never happen:
     1.8 -     * after all, we're here because this write is to a page table. */
     1.9 -    BUG_ON(!mfn_valid(mfn));
    1.10 -
    1.11 -    ASSERT(sh_mfn_is_a_page_table(mfn));
    1.12 +    if ( !mfn_valid(mfn) )
    1.13 +        return NULL;
    1.14 +
    1.15      *mfnp = mfn;
    1.16      return sh_map_domain_page(mfn) + (vaddr & ~PAGE_MASK);
    1.17