mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
3bb4f99d8c
commit
474bc9e5bc
1 file changed
+1
-1
@@ -3019,7 +3019,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||