Skip to content

KVM: arm64: Fix for probing default PMU

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 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Iterate arm_pmus list to probe for default PMUarch/arm64/kvm/pmu-emul.c+12 -341 reply
2/2KVM: arm64: Document default vPMU behavior on heterogeneous systemsarch/arm64/kvm/pmu-emul.c+11 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchNathan Chancellor
1/2T-b
2/2

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: Fix for probing default PMU

Follow-up to the discussion in [1].

KVM uses a junk perf event to probe for a default PMU instance to use for the guest, which depends on perf finding the right PMU instance to use for the event. Looks like perf is going to rely strictly on the specified PMU type, breaking the entire scheme.

KVM now maintains a list of valid PMU instances that can be selected by userspace, we can simply walk that to probe for a default PMU.

Applies to 6.4-rc3 and tested on -next.

[1] https://lore.kernel.org/all/[email protected]/

Oliver Upton (2):
KVM: arm64: Iterate arm_pmus list to probe for default PMU
KVM: arm64: Document default vPMU behavior on heterogeneous systems

 arch/arm64/kvm/pmu-emul.c | 58 ++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 35 deletions(-)

base-commit: 44c026a73be8038f03dbdeef028b642880cf1511

Signature · 1 line
2.41.0.rc0.172.g3f132b7071-goog