Skip to content

KVM: arm64: nv: Add EL2 PMU event filtering support

Oliver Upton kvmarm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Add helpers to determine if PMC counts at a given ELarch/arm64/kvm/pmu-emul.c+28 -120 replies
2/3KVM: arm64: nv: Honor NSH filter when in hyp contextarch/arm64/kvm/pmu-emul.c+14 -10 replies
3/3KVM: 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+31 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] KVM: arm64: nv: Add EL2 PMU event filtering support

We allow a nested VM to be configured with a vPMU, although it isn't entirely functional. We do not currently respect the EL2 event filter configuration from the guest hypervisor, which really needs to be applied to EL1 when in a hyp context.

Series to do just that. Tested on Neoverse-V2 which fortunately implements PMUv3 and NV, unlike the fruity stuff I'm typically using...

Oliver Upton (3):
KVM: arm64: Add helpers to determine if PMC counts at a given EL
KVM: arm64: nv: Honor NSH filter when in hyp context
KVM: arm64: nv: Reprogram PMU events affected by nested transition

 arch/arm64/kvm/emulate-nested.c |  4 ++
 arch/arm64/kvm/pmu-emul.c       | 77 ++++++++++++++++++++++++++++-----
 include/kvm/arm_pmu.h           |  3 ++
 3 files changed, 72 insertions(+), 12 deletions(-)

base-commit: 7c626ce4bae1ac14f60076d00eafe71af30450ba

Signature · 1 line
2.46.0.295.g3b9ea8a38a-goog