x86/vpmu: Remove unnecessary call to do_interrupt()
PATCH 1/1 x86/vpmu: Remove unnecessary call to do_interrupt()
This call was left during PVHv1 removal (commit 33e5c32559e1 ("x86:
remove PVHv1 code")):
- if ( is_pvh_vcpu(sampling) &&
- !(vpmu_mode & XENPMU_MODE_ALL) &&
+ if ( !(vpmu_mode & XENPMU_MODE_ALL) &&
!vpmu->arch_vpmu_ops->do_interrupt(regs) )
return;As result of this extra call VPMU no longer works for PV guests on Intel because we effectively lose value of MSR_CORE_PERF_GLOBAL_STATUS.
---
This should also go into 4.9
xen/arch/x86/cpu/vpmu.c | 4 ---- 1 file changed, 4 deletions(-)
xen/arch/x86/cpu/vpmu.c +0 -4
@@ -227,10 +227,6 @@ void vpmu_do_interrupt(struct cpu_user_regs *regs)if ( !vpmu->xenpmu_data )return ; -if ( !(vpmu_mode &XENPMU_MODE_ALL ) && - !vpmu->arch_vpmu_ops->do_interrupt (regs) ) -return ; -if (vpmu_is_set (vpmu,VPMU_CACHED ) )return ;
Signature · 7 lines
1.8.3.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 9 lines · Boris Ostrovsky
This call was left during PVHv1 removal (commit
33e5c32559e1("x86:
remove PVHv1 code")):(quoted diff) +1
-2- if ( is_pvh_vcpu(sampling) && - !(vpmu_mode & XENPMU_MODE_ALL) && + if ( !(vpmu_mode & XENPMU_MODE_ALL) && !vpmu->arch_vpmu_ops->do_interrupt(regs) ) return;
Quoted 4 lines
As result of this extra call VPMU no longer works for PV guests on Intel because we effectively lose value of
MSR_CORE_PERF_GLOBAL_STATUS.Signed-off-by Boris Ostrovsky <[email protected]>
Quoted 2 lines
---
This should also go into 4.9
Agreed, and therefore makes it a 4.10 candidate at this point.
~Andrew
Quoted 9 lines
xen/arch/x86/cpu/vpmu.c | 4 ---- 1 file changed, 4 deletions(-)xen/arch/x86/cpu/vpmu.c +0
-0
xen/arch/x86/cpu/vpmu.c void vpmu_do_interrupt(struct cpu_user_regs *regs) · line 232
Quoted 10 lines
xen/arch/x86/cpu/vpmu.c +0
-4@@ -227,10 +227,6 @@ void vpmu_do_interrupt(struct cpu_user_regs *regs)if ( !vpmu->xenpmu_data )return ; -if ( !(vpmu_mode &XENPMU_MODE_ALL ) && - !vpmu->arch_vpmu_ops->do_interrupt (regs) ) -return ; -if (vpmu_is_set (vpmu,VPMU_CACHED ) )return ;
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 13 lines · Andrew Cooper
Quoted 12 lines · Boris Ostrovsky
This call was left during PVHv1 removal (commit
33e5c32559e1("x86:
remove PVHv1 code")):(quoted diff) +1
-2- if ( is_pvh_vcpu(sampling) && - !(vpmu_mode & XENPMU_MODE_ALL) && + if ( !(vpmu_mode & XENPMU_MODE_ALL) && !vpmu->arch_vpmu_ops->do_interrupt(regs) ) return;As result of this extra call VPMU no longer works for PV guests on Intel because we effectively lose value of
MSR_CORE_PERF_GLOBAL_STATUS.
Quoted 8 lines
Quoted 1 line
Signed-off-by Boris Ostrovsky <[email protected]>Reviewed-by Andrew Cooper <[email protected]>Quoted 2 lines
---
This should also go into 4.9Agreed, and therefore makes it a 4.10 candidate at this point.
Cheers,
Quoted 29 lines
~Andrew
Quoted 9 lines
xen/arch/x86/cpu/vpmu.c | 4 ---- 1 file changed, 4 deletions(-)xen/arch/x86/cpu/vpmu.c +0
-0xen/arch/x86/cpu/vpmu.c void vpmu_do_interrupt(struct cpu_user_regs *regs) · line 232
Quoted 10 lines
xen/arch/x86/cpu/vpmu.c +0
-4@@ -227,10 +227,6 @@ void vpmu_do_interrupt(struct cpu_user_regs *regs)if ( !vpmu->xenpmu_data )return ; -if ( !(vpmu_mode &XENPMU_MODE_ALL ) && - !vpmu->arch_vpmu_ops->do_interrupt (regs) ) -return ; -if (vpmu_is_set (vpmu,VPMU_CACHED ) )return ;_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel