ia64/xen-unstable

changeset 17091:6757307d1adc

x86 shadow: Minor fix to the fast emulation patch.

The fast emulation path patch introduced a bug when we have an event
injection during a write to a pagetable: after removing shadows we
still jump to the done label, releasing the lock even if we aren't
grabbing it.

Signed-off-by: Gianluca Guida <gianluca.guida@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 20 17:38:19 2008 +0000 (2008-02-20)
parents 3f1cf03826fe
children 511ab2b89ced
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Wed Feb 20 14:36:45 2008 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Wed Feb 20 17:38:19 2008 +0000
     1.3 @@ -3019,7 +3019,7 @@ static int sh_page_fault(struct vcpu *v,
     1.4                       "injection: cr2=%#lx, mfn=%#lx\n", 
     1.5                       va, mfn_x(gmfn));
     1.6              sh_remove_shadows(v, gmfn, 0 /* thorough */, 1 /* must succeed */);
     1.7 -            goto done;
     1.8 +            return EXCRET_fault_fixed;
     1.9          }
    1.10      }
    1.11