Bug 816308

Summary: kvm: 9480: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x130079
Product: Red Hat Enterprise Linux 6 Reporter: Amador Pahim <asegundo>
Component: kernelAssignee: Karen Noel <knoel>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: acathrow, aron.griffis, bmr, bsarathy, cvantuin, derek, dyasny, emcnabb, eparis, gui1ty, hamiller, james.brown, jpriddy, juzhang, knoel, liko, michen, mkenneth, nenad, ovirt-maint, psztoch, quintela, Rhev-m-bugs, shuang, shu, syeghiay, tao, tburke, virt-maint
Target Milestone: rcKeywords: Reopened
Target Release: 6.4   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-301.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 609032 Environment:
Last Closed: 2013-02-21 06:09:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 507085, 609032    
Bug Blocks: 782183, 810856    

Description Amador Pahim 2012-04-25 18:48:04 UTC
This bug has been copied from  bug #609032.

Solved in upstream and proposed to be backported to 6.4, in order to reduce support load.

Patch successful applied and tested to kernel-2.6.32-220.4.1:


commit c94c3ba901f87115cf574044e7faabfb1d0251fb
Author: Avi Kivity <avi>
Date:   Wed Sep 1 10:23:35 2010 +0300

    KVM: Don't save/restore MSR_IA32_PERF_STATUS

    It is read/only; restoring it only results in annoying messages.

    Signed-off-by: Avi Kivity <avi>

--- a/x86/x86.c	2011-04-07 13:49:17.000000000 +0200
+++ b/x86/x86.c	2011-04-07 13:49:33.000000000 +0200
@@ -715,7 +715,7 @@
 #ifdef CONFIG_X86_64
 	MSR_CSTAR, MSR_KERNEL_GS_BASE, MSR_SYSCALL_MASK, MSR_LSTAR,
 #endif
-	MSR_IA32_TSC, MSR_IA32_PERF_STATUS, MSR_IA32_CR_PAT, MSR_VM_HSAVE_PA
+	MSR_IA32_TSC, MSR_IA32_CR_PAT, MSR_VM_HSAVE_PA
 };
 
 static unsigned num_msrs_to_save;

Comment 1 Przemyslaw Sztoch 2012-06-08 22:19:44 UTC
?!

Comment 2 RHEL Program Management 2012-07-10 07:49:41 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2012-07-11 02:06:35 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 4 Suqin Huang 2012-07-12 09:35:31 UTC
Hi avi,
Can you give some suggestion how to verify this bug.

no stable step to get message: 

"9480: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x130079"

Thanks
Suqin

Comment 5 Avi Kivity 2012-07-12 12:17:05 UTC
Starting a Linux guest should work, perhaps need to 'info registers' to trigger it.

Comment 6 Suqin Huang 2012-07-13 02:21:31 UTC
update the component to kernel according to the patch in comment0

Comment 7 RHEL Program Management 2012-07-13 02:39:57 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 8 Karen Noel 2012-08-01 23:15:55 UTC
Posted patch to RHEL6.4 on 07/31/2012:

[RHEL6.4 PATCH][x86] KVM: Don't save/restore MSR_IA32_PERF_STATUS

Comment 9 Jarod Wilson 2012-08-24 19:26:16 UTC
Patch(es) available on kernel-2.6.32-301.el6

Comment 12 Shaolong Hu 2012-12-14 07:49:00 UTC
Test with qemu-kvm-0.12.1.2-2.340.el6.x86_64:

we won't see following message any more:
"9480: cpu0 unimplemented perfctr wrmsr: 0x186 data 0x130079"

however we still get:
kvm: 6149: cpu0 unhandled wrmsr 0x40000000 data 0
kvm: 6149: cpu0 unhandled rdmsr 0x40000000


Hope this is enough to verify the bug.

Comment 15 errata-xmlrpc 2013-02-21 06:09:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0496.html