x86/emul: dedup hvmemul_cpuid() and pv_emul_cpuid()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Jul 2018 16:40:06 +0000 (16:40 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 17 May 2019 15:37:46 +0000 (16:37 +0100)
commitae0e5f204cb42440e244419e6a92f7fd90eb25bb
tree6407831f91a0373627e47fbbc59d77c3bd285a9b
parent346666c4bdf72ca1d908bbcdb9185981aac7e749
x86/emul: dedup hvmemul_cpuid() and pv_emul_cpuid()

They are identical, so provide a single x86emul_cpuid() instead.

As x86_emulate() now only uses the ->cpuid() hook for real CPUID instructions,
the hook can be omitted from all special-purpose emulation ops.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/emulate.c
xen/arch/x86/mm/shadow/hvm.c
xen/arch/x86/pv/emul-priv-op.c
xen/arch/x86/pv/ro-page-fault.c
xen/arch/x86/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h
xen/include/asm-x86/hvm/emulate.h
xen/include/asm-x86/mm.h