From: "Gianluca Guida" Subject: [PATCH] Minor fix to the fast emulation patch. Date: Tue, 19 Feb 2008 00:27:56 +0000 Message-ID: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: kevin.tian@intel.com, tim.deegan@citrix.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello, 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. Inline patch fixes this. Signed-off-by: Gianluca Guida diff -r 8848d9e07584 xen/arch/x86/mm/shadow/multi.c --- a/xen/arch/x86/mm/shadow/multi.c Mon Feb 18 21:26:57 2008 +0000 +++ b/xen/arch/x86/mm/shadow/multi.c Tue Feb 19 00:20:00 2008 +0000 @@ -3020,7 +3020,7 @@ static int sh_page_fault(struct vcpu *v, "injection: cr2=%#lx, mfn=%#lx\n", va, mfn_x(gmfn)); sh_remove_shadows(v, gmfn, 0 /* thorough */, 1 /* must succeed */); - goto done; + return EXCRET_fault_fixed; } }