KVM: x86: extend "struct x86_emulate_ops" with "get_cpuid"
authorStephan Bärwolf <stephan.baerwolf@tu-ilmenau.de>
Thu, 12 Jan 2012 15:43:03 +0000 (16:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:27:13 +0000 (09:27 -0700)
commit0f06e7442a9d2035742189d05c3cdfd2b9dc47fd
treedd33cfd92067f76ecc81832e70758b81e5f607ed
parent07ef0938d89b3c5af9d3ff23e482b26202bd012c
KVM: x86: extend "struct x86_emulate_ops" with "get_cpuid"

commit bdb42f5afebe208eae90406959383856ae2caf2b upstream.

In order to be able to proceed checks on CPU-specific properties
within the emulator, function "get_cpuid" is introduced.
With "get_cpuid" it is possible to virtually call the guests
"cpuid"-opcode without changing the VM's context.

[mtosatti: cleanup/beautify code]

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/x86.c