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)
committerAvi Kivity <avi@redhat.com>
Wed, 1 Feb 2012 09:43:33 +0000 (11:43 +0200)
commitbdb42f5afebe208eae90406959383856ae2caf2b
treee58d3b8aedf30b9f42689a7d0ee752600be3f938
parent50e92b3c971129c96a5fffb51dd42691e2ee4004
KVM: x86: extend "struct x86_emulate_ops" with "get_cpuid"

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>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/x86.c