]> xenbits.xensource.com Git - xen.git/commit
x86/emul: Hold x86_emulate() to strict X86EMUL_EXCEPTION requirements
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Mar 2017 11:41:17 +0000 (11:41 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 3 Mar 2017 11:46:37 +0000 (11:46 +0000)
commit92cf67888aeb8a7dd8c1d2e8e835b8b271c13ce1
tree48a4b419287b12573edb48a13893e01aaee6004a
parent9c5a84fff576ad2e38d34d2b5d1a465e3129f298
x86/emul: Hold x86_emulate() to strict X86EMUL_EXCEPTION requirements

All known paths raising faults behind the back of the emulator have been
fixed.  Reinstate the original intended assertion concerning the behaviour of
X86EMUL_EXCEPTION and ctxt->event_pending.

As x86_emulate_wrapper() now covers both PV and HVM guests properly, there is
no need for the PV assertions following calls to x86_emulate().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c
xen/arch/x86/traps.c
xen/arch/x86/x86_emulate/x86_emulate.c