Skip to content

KVM: arm64: Hide absent PMU registers from userspace

Marc Zyngier kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Hide PMU registers from userspace when not availablearch/arm64/kvm/sys_regs.c+48 -200 replies
2/2KVM: arm64: Simplify handling of absent PMU system registersarch/arm64/kvm/sys_regs.c+1 -70 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/2] KVM: arm64: Hide absent PMU registers from userspace

We're now able to hide PMU registers from the guest when no PMU is available, but I just realised that we don't do the same thing for userspace, which is pretty annoying (as it ends up with garbage).

The first patch introduces a visibility callback for all PMU regs, which applies to both guest and userspace. That's what I should have done the first place.

The second patch is only a cleanup, now that we are doing the right thing.

This is a potential fix for 5.11, so shout if you spot something!

Thanks,

	M.

Marc Zyngier (2):
KVM: arm64: Hide PMU registers from userspace when not available
KVM: arm64: Simplify handling of absent PMU system registers

 arch/arm64/kvm/sys_regs.c | 76 +++++++++++++++++++++++++--------------
 1 file changed, 49 insertions(+), 27 deletions(-)
Signature · 6 lines
2.29.2

_______________________________________________
kvmarm mailing list
[email protected]
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm