Skip to content

KVM: arm64: nv: Support for EL2 PMU controls

Oliver Upton kvmarm linux-arm-kernel lkml llvm oe-kbuild-all 2 versions – Applied

Status from this message: Applied to kvmarm/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest18 patches 6 repliesApplied
  2. v317 patches 6 repliesSuperseded

Changes in v4 from the cover letter

- Align sysreg definitions with DDI0601 2024-09
- Fix 'accessible' counter mask construction
- Fix MDCR_EL2.MTPME RES0 logic

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/18KVM: arm64: Extend masking facility to arbitrary registersarch/arm64/include/asm/kvm_host.h arch/arm64/kvm/nested.c arch/arm64/kvm/sys_regs.c+24 -100 replies
2/18arm64: sysreg: Describe ID_AA64DFR2_EL1 fieldsarch/arm64/tools/sysreg+26 -00 replies
3/18arm64: sysreg: Migrate MDCR_EL2 definition to tablearch/arm64/include/asm/kvm_arm.h arch/arm64/tools/sysreg+35 -290 replies
4/18arm64: sysreg: Add new definitions for ID_AA64DFR0_EL1arch/arm64/tools/sysreg+12 -30 replies
5/18KVM: arm64: Describe RES0/RES1 bits of MDCR_EL2arch/arm64/include/asm/kvm_host.h arch/arm64/kvm/nested.c+38 -10 replies
6/18KVM: arm64: nv: Allow coarse-grained trap combos to use complex trapsarch/arm64/kvm/emulate-nested.c+2 -10 replies
7/18KVM: arm64: nv: Rename BEHAVE_FORWARD_ANYarch/arm64/kvm/emulate-nested.c+47 -460 replies
8/18KVM: arm64: nv: Reinject traps that take effect in Host EL0arch/arm64/include/asm/kvm_emulate.h arch/arm64/kvm/emulate-nested.c+30 -43 replies
9/18KVM: arm64: nv: Honor MDCR_EL2.{TPM, TPMCR} in Host EL0arch/arm64/kvm/emulate-nested.c+4 -20 replies
10/18KVM: arm64: nv: Describe trap behaviour of MDCR_EL2.HPMNarch/arm64/kvm/emulate-nested.c arch/arm64/kvm/pmu-emul.c include/kvm/arm_pmu.h+120 -641 reply
11/18KVM: arm64: nv: Advertise support for FEAT_HPMN0arch/arm64/kvm/nested.c+3 -20 replies
12/18KVM: arm64: Rename kvm_pmu_valid_counter_mask()arch/arm64/kvm/pmu-emul.c arch/arm64/kvm/sys_regs.c include/kvm/arm_pmu.h+12 -120 replies
13/18KVM: arm64: nv: Adjust range of accessible PMCs according to HPMNarch/arm64/kvm/pmu-emul.c arch/arm64/kvm/sys_regs.c include/kvm/arm_pmu.h+24 -70 replies
14/18KVM: arm64: Add helpers to determine if PMC counts at a given ELarch/arm64/kvm/pmu-emul.c+28 -120 replies
15/18KVM: arm64: nv: Honor MDCR_EL2.HPMEarch/arm64/kvm/pmu-emul.c+9 -20 replies
16/18KVM: arm64: nv: Honor MDCR_EL2.HLParch/arm64/kvm/pmu-emul.c+5 -10 replies
17/18KVM: arm64: nv: Apply EL2 event filtering when in hyp contextarch/arm64/kvm/pmu-emul.c+20 -10 replies
18/18KVM: arm64: nv: Reprogram PMU events affected by nested transitionarch/arm64/kvm/emulate-nested.c arch/arm64/kvm/pmu-emul.c include/kvm/arm_pmu.h+36 -00 replies

Reviews trailers per patch

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

PatchJoey GoulyMarc Zyngier
SeriesR-b
1/18R-b
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18
16/18
17/18
18/18

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

Read the v4 thread

Cover letter [PATCH v4 00/18] KVM: arm64: nv: Support for EL2 PMU controls

v3 -> v4:
- Align sysreg definitions with DDI0601 2024-09
- Fix 'accessible' counter mask construction
- Fix MDCR_EL2.MTPME RES0 logic

v3: https://lore.kernel.org/kvmarm/[email protected]/

Marc Zyngier (1):
KVM: arm64: Extend masking facility to arbitrary registers

Oliver Upton (17):
arm64: sysreg: Describe ID_AA64DFR2_EL1 fields
arm64: sysreg: Migrate MDCR_EL2 definition to table
arm64: sysreg: Add new definitions for ID_AA64DFR0_EL1
KVM: arm64: Describe RES0/RES1 bits of MDCR_EL2
KVM: arm64: nv: Allow coarse-grained trap combos to use complex traps
KVM: arm64: nv: Rename BEHAVE_FORWARD_ANY
KVM: arm64: nv: Reinject traps that take effect in Host EL0
KVM: arm64: nv: Honor MDCR_EL2.{TPM, TPMCR} in Host EL0
KVM: arm64: nv: Describe trap behaviour of MDCR_EL2.HPMN
KVM: arm64: nv: Advertise support for FEAT_HPMN0
KVM: arm64: Rename kvm_pmu_valid_counter_mask()
KVM: arm64: nv: Adjust range of accessible PMCs according to HPMN
KVM: arm64: Add helpers to determine if PMC counts at a given EL
KVM: arm64: nv: Honor MDCR_EL2.HPME
KVM: arm64: nv: Honor MDCR_EL2.HLP
KVM: arm64: nv: Apply EL2 event filtering when in hyp context
KVM: arm64: nv: Reprogram PMU events affected by nested transition

 arch/arm64/include/asm/kvm_arm.h     |  29 ---
 arch/arm64/include/asm/kvm_emulate.h |   5 +
 arch/arm64/include/asm/kvm_host.h    |  21 +-
 arch/arm64/kvm/emulate-nested.c      | 291 ++++++++++++++++-----------
 arch/arm64/kvm/nested.c              |  54 ++++-
 arch/arm64/kvm/pmu-emul.c            | 143 +++++++++++--
 arch/arm64/kvm/sys_regs.c            |  15 +-
 arch/arm64/tools/sysreg              |  76 ++++++-
 include/kvm/arm_pmu.h                |  18 +-
 9 files changed, 465 insertions(+), 187 deletions(-)

base-commit: 8e929cb546ee42c9a61d24fae60605e9e3192354

Signature · 1 line
2.47.0.163.g1226f6d8fa-goog