KVM: x86: Add callback to let modules decide over some supported cpuid bits
commit22dc1d0096484fba8c383e63064bec6d96dff218
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 22 Apr 2010 10:33:11 +0000 (22 12:33 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:23:00 +0000 (5 11:23 -0700)
tree70735601d610cd04ffbe42d506774481b5337e90
parent12f08e9684c604aa1407a6b62d1c71876db18093
KVM: x86: Add callback to let modules decide over some supported cpuid bits

This patch adds the get_supported_cpuid callback to
kvm_x86_ops. It will be used in do_cpuid_ent to delegate the
decission about some supported cpuid bits to the
architecture modules.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(Cherry-picked from commit d4330ef2fb2236a1e3a176f0f68360f4c0a8661b)
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c