Skip to content

KVM: arm64: vPMU fixes for NV/EL2

Oliver Upton kvm kvmarm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Disallow vPMU for NV guestsarch/arm64/kvm/arm.c+3 -22 replies
2/2KVM: arm64: Treat PMEVTYPER<n>_EL0.NSH as RES0arch/arm64/kvm/pmu-emul.c+1 -25 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSuzuki K Poulose
1/2
2/2R-b

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/2] KVM: arm64: vPMU fixes for NV/EL2

KVM allows userspace to select both the vPMU and NV feature flags, which is an absolute no-go since we do not handle any of the EL2 controls. Furthermore, our sysreg emulation allows the guest to set the NSH bit responsible for counting events at EL2 despite the fact it does absolutely nothing.

Series to address the both of these issues. While neither of them are really a big deal at the moment, the second patch is relevant to James C's PMU event threshold series [*].

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

Oliver Upton (2):
KVM: arm64: Disallow vPMU for NV guests
KVM: arm64: Treat PMEVTYPER<n>_EL0.NSH as RES0

 arch/arm64/kvm/arm.c      | 5 +++--
 arch/arm64/kvm/pmu-emul.c | 3 +--
 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.42.0.609.gbb76f46606-goog