public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Write to read-only msr MSR_IA32_PERF_STATUS is harmless, ignore it!
@ 2010-08-31 12:17 Jes.Sorensen
  2010-08-31 16:28 ` Avi Kivity
  0 siblings, 1 reply; 9+ messages in thread
From: Jes.Sorensen @ 2010-08-31 12:17 UTC (permalink / raw)
  To: kvm; +Cc: avi

From: Jes Sorensen <Jes.Sorensen@redhat.com>

We regularly see bug reports over this one, however it is a write to
a read-only register which some operating systems (including Linux)
tend to write to once in a while.

Ignore the writes since they do no harm.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 arch/x86/kvm/x86.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 4014d6c..2e1ae7f 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -1439,6 +1439,12 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data)
 		pr_unimpl(vcpu, "unimplemented perfctr wrmsr: "
 			"0x%x data 0x%llx\n", msr, data);
 		break;
+	case MSR_IA32_PERF_STATUS:
+		/*
+		 * Write to read-only register, has no effect, so
+		 * lets not bother users with a warning about this.
+		 */
+		break;
 	case HV_X64_MSR_GUEST_OS_ID ... HV_X64_MSR_SINT15:
 		if (kvm_hv_msr_partition_wide(msr)) {
 			int r;
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-09-01  8:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-31 12:17 [PATCH] Write to read-only msr MSR_IA32_PERF_STATUS is harmless, ignore it! Jes.Sorensen
2010-08-31 16:28 ` Avi Kivity
2010-08-31 16:33   ` Jes Sorensen
2010-08-31 16:44     ` Avi Kivity
2010-08-31 17:04       ` Jes Sorensen
2010-08-31 20:00         ` David S. Ahern
2010-08-31 20:02     ` Marcelo Tosatti
2010-09-01  7:37       ` Avi Kivity
2010-09-01  8:42       ` Jes Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox