summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorJoerg Roedel2010-04-22 12:33:11 +0200
committerAvi Kivity2010-05-17 11:19:23 +0200
commitd4330ef2fb2236a1e3a176f0f68360f4c0a8661b (patch)
tree5b5c8776dd370fc2c12a57c5ed4565f59ecb45a6 /arch/x86/kvm/svm.c
parentKVM: SVM: Propagate nested entry failure into guest hypervisor (diff)
downloadkernel-qcow2-linux-d4330ef2fb2236a1e3a176f0f68360f4c0a8661b.tar.gz
kernel-qcow2-linux-d4330ef2fb2236a1e3a176f0f68360f4c0a8661b.tar.xz
kernel-qcow2-linux-d4330ef2fb2236a1e3a176f0f68360f4c0a8661b.zip
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/svm.c')
-rw-r--r--arch/x86/kvm/svm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index b10d1630c203..0fa2035bd8e7 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -3152,6 +3152,10 @@ static void svm_cpuid_update(struct kvm_vcpu *vcpu)
{
}
+static void svm_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry)
+{
+}
+
static const struct trace_print_flags svm_exit_reasons_str[] = {
{ SVM_EXIT_READ_CR0, "read_cr0" },
{ SVM_EXIT_READ_CR3, "read_cr3" },
@@ -3297,6 +3301,8 @@ static struct kvm_x86_ops svm_x86_ops = {
.cpuid_update = svm_cpuid_update,
.rdtscp_supported = svm_rdtscp_supported,
+
+ .set_supported_cpuid = svm_set_supported_cpuid,
};
static int __init svm_init(void)