Skip to contentSkip to conversation

X86/VPMU:clear the overflow status of which counter happened overflow

PATCH In review Luwei Kang 2 participants 3 messages Dec 13, 2016

lore
Share & tools
lore

Luwei Kang

author
#0 lore raw

PATCH v2 1/1 X86/VPMU:clear the overflow status of which counter happened overflow

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.

---
v2:modify the description of this patch.

---
 xen/arch/x86/cpu/vpmu_intel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/cpu/vpmu_intel.c +1 -1
index e8049ed..613aafe 100644
@@ -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
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v2 1/1
#1 lore raw
Quoted 6 lines

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"

Quoted 2 lines

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 9 lines
Quoted 6 lines

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.

Quoted 4 lines
Quoted 2 lines

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel