Skip to content

KVM: arm64: PMU fixes for 6.13

Oliver Upton kvmarm 1 version Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: arm64: Add unified helper for reprogramming counters by maskarch/arm64/kvm/pmu-emul.c arch/arm64/kvm/sys_regs.c include/kvm/arm_pmu.h+29 -530 replies
2/4KVM: arm64: Use KVM_REQ_RELOAD_PMU to handle PMCR_EL0.E changearch/arm64/kvm/pmu-emul.c+6 -110 replies
3/4KVM: arm64: nv: Reload PMU events upon MDCR_EL2.HPME changearch/arm64/kvm/sys_regs.c+21 -10 replies
4/4KVM: arm64: Only apply PMCR_EL0.P to the guest range of countersarch/arm64/kvm/pmu-emul.c+8 -20 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc Zyngier
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] KVM: arm64: PMU fixes for 6.13

Small set of fixes for PMU, mostly focused on plugging gaps in nested support that I'd missed last time around:

- Don't attempt to enable/disable EL2 counters when PMCR_EL0.E is changed. This is already the case since the enable state of a counter is re-evaluated in kvm_pmu_create_perf_event(), though the handling of PMCR_EL0.E would suggest otherwise.

- Enable/disable EL2 counters when MDCR_EL2.HPME is changed.

- Only reset 'guest' counters when PMCR_EL0.P is set, excluding EL2 counters from being reset.

Applies to 6.13-rc3, tested on the M2 w/ my PMUv3 patches thrown on top.

Oliver Upton (4):
KVM: arm64: Add unified helper for reprogramming counters by mask
KVM: arm64: Use KVM_REQ_RELOAD_PMU to handle PMCR_EL0.E change
KVM: arm64: nv: Reload PMU events upon MDCR_EL2.HPME change
KVM: arm64: Only apply PMCR_EL0.P to the guest range of counters

 arch/arm64/kvm/pmu-emul.c | 89 +++++++++++++++------------------------
 arch/arm64/kvm/sys_regs.c | 32 +++++++++++---
 include/kvm/arm_pmu.h     |  6 +--
 3 files changed, 62 insertions(+), 65 deletions(-)

base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8

Signature · 1 line
2.39.5