Skip to content

Commit d84f1cf

Browse files
dasch-1bonzini
authored andcommitted
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>
1 parent ba8e23d commit d84f1cf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kvm/x86.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2537,7 +2537,6 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
25372537
break;
25382538
case MSR_PLATFORM_INFO:
25392539
if (!msr_info->host_initiated ||
2540-
data & ~MSR_PLATFORM_INFO_CPUID_FAULT ||
25412540
(!(data & MSR_PLATFORM_INFO_CPUID_FAULT) &&
25422541
cpuid_fault_enabled(vcpu)))
25432542
return 1;

0 commit comments

Comments
 (0)