linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: arm64: Hide absent PMU registers from userspace
@ 2021-01-06 17:22 Marc Zyngier
  2021-01-06 17:22 ` [PATCH 1/2] KVM: arm64: Hide PMU registers from userspace when not available Marc Zyngier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marc Zyngier @ 2021-01-06 17:22 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm
  Cc: Andrew Jones, Suzuki K Poulose, kernel-team, Eric Auger,
	James Morse, Alexandru Elisei, Julien Thierry

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(-)

-- 
2.29.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-15 11:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-06 17:22 [PATCH 0/2] KVM: arm64: Hide absent PMU registers from userspace Marc Zyngier
2021-01-06 17:22 ` [PATCH 1/2] KVM: arm64: Hide PMU registers from userspace when not available Marc Zyngier
2021-01-06 17:22 ` [PATCH 2/2] KVM: arm64: Simplify handling of absent PMU system registers Marc Zyngier
2021-01-15 11:37 ` [PATCH 0/2] KVM: arm64: Hide absent PMU registers from userspace Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).