diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-04-22 06:33:11 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:19:23 -0400 |
commit | d4330ef2fb2236a1e3a176f0f68360f4c0a8661b (patch) | |
tree | 5b5c8776dd370fc2c12a57c5ed4565f59ecb45a6 /arch/x86/kvm/x86.c | |
parent | 228070b1b31abc16c331b57bf965101c6eb1d167 (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/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 848c814e8c3c..6e6434332f21 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -1960,6 +1960,9 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, | |||
1960 | entry->ecx &= kvm_supported_word6_x86_features; | 1960 | entry->ecx &= kvm_supported_word6_x86_features; |
1961 | break; | 1961 | break; |
1962 | } | 1962 | } |
1963 | |||
1964 | kvm_x86_ops->set_supported_cpuid(function, entry); | ||
1965 | |||
1963 | put_cpu(); | 1966 | put_cpu(); |
1964 | } | 1967 | } |
1965 | 1968 | ||