aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-04-22 06:33:11 -0400
committerAvi Kivity <avi@redhat.com>2010-05-17 05:19:23 -0400
commitd4330ef2fb2236a1e3a176f0f68360f4c0a8661b (patch)
tree5b5c8776dd370fc2c12a57c5ed4565f59ecb45a6 /arch/x86/kvm/vmx.c
parent228070b1b31abc16c331b57bf965101c6eb1d167 (diff)
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>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 54c0035a63f..9f8532b1fa9 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -4119,6 +4119,10 @@ static void vmx_cpuid_update(struct kvm_vcpu *vcpu)
4119 } 4119 }
4120} 4120}
4121 4121
4122static void vmx_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry)
4123{
4124}
4125
4122static struct kvm_x86_ops vmx_x86_ops = { 4126static struct kvm_x86_ops vmx_x86_ops = {
4123 .cpu_has_kvm_support = cpu_has_kvm_support, 4127 .cpu_has_kvm_support = cpu_has_kvm_support,
4124 .disabled_by_bios = vmx_disabled_by_bios, 4128 .disabled_by_bios = vmx_disabled_by_bios,
@@ -4191,6 +4195,8 @@ static struct kvm_x86_ops vmx_x86_ops = {
4191 .cpuid_update = vmx_cpuid_update, 4195 .cpuid_update = vmx_cpuid_update,
4192 4196
4193 .rdtscp_supported = vmx_rdtscp_supported, 4197 .rdtscp_supported = vmx_rdtscp_supported,
4198
4199 .set_supported_cpuid = vmx_set_supported_cpuid,
4194}; 4200};
4195 4201
4196static int __init vmx_init(void) 4202static int __init vmx_init(void)