diff options
author | Drew Schmitt <dasch@google.com> | 2018-08-20 13:32:14 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-09-19 18:51:46 -0400 |
commit | d84f1cff9028c00ee870f0293b0c7a3866071dfa (patch) | |
tree | 826de97fdedadafccc68102de820da2233801c15 | |
parent | ba8e23db59dc07e5de74fd7bd310e297d3e4ba54 (diff) |
KVM: x86: Turbo bits in MSR_PLATFORM_INFO
Allow userspace to set turbo bits in MSR_PLATFORM_INFO. Previously, only
the CPUID faulting bit was settable. But now any bit in
MSR_PLATFORM_INFO would be settable. This can be used, for example, to
convey frequency information about the platform on which the guest is
running.
Signed-off-by: Drew Schmitt <dasch@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 5fea53cdc583..e127703e277e 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2537,7 +2537,6 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info) | |||
2537 | break; | 2537 | break; |
2538 | case MSR_PLATFORM_INFO: | 2538 | case MSR_PLATFORM_INFO: |
2539 | if (!msr_info->host_initiated || | 2539 | if (!msr_info->host_initiated || |
2540 | data & ~MSR_PLATFORM_INFO_CPUID_FAULT || | ||
2541 | (!(data & MSR_PLATFORM_INFO_CPUID_FAULT) && | 2540 | (!(data & MSR_PLATFORM_INFO_CPUID_FAULT) && |
2542 | cpuid_fault_enabled(vcpu))) | 2541 | cpuid_fault_enabled(vcpu))) |
2543 | return 1; | 2542 | return 1; |