ia64/xen-unstable

changeset 17510:bc7ee2f93852

x86: Fix a typo in shadow_get_and_create_l1e().

The typo is benign because sh_page_fault() gates the call to
shadow_get_and_create_l1e() on an equivalent test.

Signed-off-by: Tim Deegan <tim.deegan@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 23 13:32:58 2008 +0100 (2008-04-23)
parents 08321f572e37
children 86b8417db325
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Wed Apr 23 13:30:24 2008 +0100
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Wed Apr 23 13:32:58 2008 +0100
     1.3 @@ -2089,7 +2089,7 @@ static shadow_l1e_t * shadow_get_and_cre
     1.4          else 
     1.5          {
     1.6              /* Shadowing an actual guest l1 table */
     1.7 -            if ( !mfn_valid(gw->l2mfn) ) return NULL; /* No guest page. */
     1.8 +            if ( !mfn_valid(gw->l1mfn) ) return NULL; /* No guest page. */
     1.9              *sl1mfn = get_shadow_status(v, gw->l1mfn, SH_type_l1_shadow);
    1.10              if ( !mfn_valid(*sl1mfn) ) 
    1.11              {