All of lore.kernel.org
 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

* Re: [PATCH v2] X86/VPMU:clear the overflow status of which counter happened overflow
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Tian, Kevin @ 2016-12-13  5:14 UTC (permalink / raw)
  To: Kang, Luwei, xen-devel; +Cc: andrew.cooper3, Nakajima, Jun, jbeulich

> From: Kang, Luwei
> Sent: Tuesday, December 13, 2016 10:50 AM
> 
> 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.

"when pmu interrupt happens"

> 
> Signed-off-by: Luwei Kang <luwei.kang@intel.com>

Acked-by: Kevin Tian <kevin.tian@intel.com>

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

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

* Re: [PATCH v2] X86/VPMU:clear the overflow status of which counter happened overflow
  2016-12-13  5:14 ` Tian, Kevin
@ 2016-12-13  5:48   ` Kang, Luwei
  0 siblings, 0 replies; 3+ messages in thread
From: Kang, Luwei @ 2016-12-13  5:48 UTC (permalink / raw)
  To: Tian, Kevin, xen-devel; +Cc: andrew.cooper3, Nakajima, Jun, jbeulich

> > From: Kang, Luwei
> > Sent: Tuesday, December 13, 2016 10:50 AM
> >
> > 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.
> 
> "when pmu interrupt happens"
> 
    When a counter happens overflow.
> >
> > Signed-off-by: Luwei Kang <luwei.kang@intel.com>
> 
> Acked-by: Kevin Tian <kevin.tian@intel.com>

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

^ permalink raw reply	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.