xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] X86/VPMU:clear the overflow status of which counter happened overflow
@ 2016-12-13  2:49 Luwei Kang
  2016-12-13  5:14 ` Tian, Kevin
  0 siblings, 1 reply; 3+ messages in thread
From: Luwei Kang @ 2016-12-13  2:49 UTC (permalink / raw)
  To: xen-devel; +Cc: andrew.cooper3, kevin.tian, Luwei Kang, jun.nakajima, jbeulich

just set the corresponding bits of which counter happened overflow,
rather than set all the available bits of IA32_PERF_GLOBAL_OVF_CTRL
when happened pmu interrupt.

Signed-off-by: Luwei Kang <luwei.kang@intel.com>
---
v2:modify the description of this patch.
---
 xen/arch/x86/cpu/vpmu_intel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/x86/cpu/vpmu_intel.c b/xen/arch/x86/cpu/vpmu_intel.c
index e8049ed..613aafe 100644
--- a/xen/arch/x86/cpu/vpmu_intel.c
+++ b/xen/arch/x86/cpu/vpmu_intel.c
@@ -868,7 +868,7 @@ static int core2_vpmu_do_interrupt(struct cpu_user_regs *regs)
         if ( is_pmc_quirk )
             handle_pmc_quirk(msr_content);
         core2_vpmu_cxt->global_status |= msr_content;
-        msr_content = ~global_ovf_ctrl_mask;
+        msr_content &= ~global_ovf_ctrl_mask;
         wrmsrl(MSR_CORE_PERF_GLOBAL_OVF_CTRL, msr_content);
     }
     else
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-12-13  5:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-13  2:49 [PATCH v2] X86/VPMU:clear the overflow status of which counter happened overflow Luwei Kang
2016-12-13  5:14 ` Tian, Kevin
2016-12-13  5:48   ` Kang, Luwei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).