x86/emul: Avoid raising faults behind the emulators back
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Nov 2016 19:50:47 +0000 (19:50 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Dec 2016 17:23:02 +0000 (17:23 +0000)
commit331d781400bee90c62ba2bb1caaed55ccba93aba
tree9ef438fe1c285b26cdf5ada85959993113f86010
parentdd5c85e3127c4f3921affd32e8f6bfe1bd84f8ec
x86/emul: Avoid raising faults behind the emulators back

Introduce a new x86_emul_pagefault() similar to x86_emul_hw_exception(), and
use this instead of hvm_inject_page_fault() from emulation codepaths.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h