aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
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/include
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/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index d47d087568fe..357573af974f 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -528,6 +528,8 @@ struct kvm_x86_ops {
528 int (*get_lpage_level)(void); 528 int (*get_lpage_level)(void);
529 bool (*rdtscp_supported)(void); 529 bool (*rdtscp_supported)(void);
530 530
531 void (*set_supported_cpuid)(u32 func, struct kvm_cpuid_entry2 *entry);
532
531 const struct trace_print_flags *exit_reasons_str; 533 const struct trace_print_flags *exit_reasons_str;
532}; 534};
533 535