mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/VPMU: clear the overflow status of which counter happened to overflow
Just set the corresponding bits of counters which happened to overflow,
rather than setting all the available bits of IA32_PERF_GLOBAL_OVF_CTRL
when pmu interrupt happened.
Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 7a0c704825
master date: 2016-12-13 14:21:26 +0100
This commit is contained in:
1 parent
ff555d59e8
commit
f4dc0d25c4
1 file changed
+1
-1
@@ -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
|
||||
|
||||