x86/emul: Move CPUID Faulting fault generation into the emulator
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Oct 2016 11:06:44 +0000 (12:06 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Oct 2016 13:41:37 +0000 (14:41 +0100)
commit9f47f3d69f4dcb2b33ccb8fb20057152302ea1ad
treede4449f15084998e7af63b552670f9ca553b7831
parent0888d36bb23f7365ce12b03127fd0fb2661ec90e
x86/emul: Move CPUID Faulting fault generation into the emulator

In hindsight, this is a better position for it, as it avoids opencoding
hvmemul_inject_hw_exception() in hvmemul_cpuid(), and reduces the requirements
on other ops->cpuid() hooks wanting to implement cpuid faulting in the future.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/x86_emulate/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h