x86/shadow: Avoid raising faults behind the emulators back
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 25 Nov 2016 15:20:44 +0000 (15:20 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Dec 2016 17:23:02 +0000 (17:23 +0000)
commit6347fd2ac7ee7205a43ac9acec43987cf68ede09
tree2882c9b49be9dfc2002fc8f3a46c4456fe58ad6b
parenta4fd87200d7ada9f67ce398b3782aef6ba54f67d
x86/shadow: Avoid raising faults behind the emulators back

Use x86_emul_{hw_exception,pagefault}() rather than
{pv,hvm}_inject_page_fault() and hvm_inject_hw_exception() to cause raised
faults to be known to the emulator.  This requires altering the callers of
x86_emulate() to properly re-inject the event.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c