From: Avi Kivity Subject: [PATCH 2/2] KVM: Fix bogus value returned for MSR_IA32_PERF_STATUS Date: Wed, 1 Sep 2010 10:34:57 +0300 Message-ID: <1283326497-20206-3-git-send-email-avi@redhat.com> References: <1283326497-20206-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org, Alexander Graf Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53486 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812Ab0IAHfB (ORCPT ); Wed, 1 Sep 2010 03:35:01 -0400 In-Reply-To: <1283326497-20206-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: The returned value is completely bogus, and sets reserved bits. Return zero instead. Signed-off-by: Avi Kivity --- arch/x86/kvm/x86.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1cbf168..a2c03f1 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -1641,10 +1641,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) data = vcpu->arch.ia32_misc_enable_msr; break; case MSR_IA32_PERF_STATUS: - /* TSC increment by tick */ - data = 1000ULL; - /* CPU multiplier */ - data |= (((uint64_t)4ULL) << 40); + data = 0; break; case MSR_EFER: data = vcpu->arch.efer; -- 1.7.1