x86/hvm: Don't emulate all instructions hitting the #UD intercept
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Dec 2016 12:05:20 +0000 (12:05 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Dec 2016 11:38:41 +0000 (11:38 +0000)
commit8867a48e058ab04bd269cab12ef4de5ee8ad5b7b
treec8952907f45b15ba605fba27f480946602ec8b84
parenteafc8ad471de861132b15e3268f72517c128a298
x86/hvm: Don't emulate all instructions hitting the #UD intercept

Having the instruction emulator fill in all #UDs when using FEP is unhelpful
when trying to test emulation behaviour against hardware.

Restrict emulation from the #UD intercept to the cross-vendor case, and when a
postive Forced Emulation Prefix has been identified.

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