x86/emul: Support CPUID faulting via a speculative MSR read
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 2 Nov 2016 15:50:23 +0000 (15:50 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Feb 2017 13:49:31 +0000 (13:49 +0000)
commitb908131167a67a16fbe9c7a7826b67e2d93d9ec5
treeec1bf09f2af97894173403fd62e7add54fe7e102
parent65ddae6e3ce54373860cf53c589e6eafaba5eba5
x86/emul: Support CPUID faulting via a speculative MSR read

This removes the need for every cpuid() emulation hook to individually support
CPUID faulting.

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/traps.c
xen/arch/x86/x86_emulate/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h