diff options
author | Marc Zyngier <maz@kernel.org> | 2021-01-06 17:22:27 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-01-14 11:02:51 +0000 |
commit | 11663111cd49b4c6dd27479774e420f139e4c447 (patch) | |
tree | fbc93a72c8d17e9b3305a9ce31a11246634b66eb /arch/sh | |
parent | 45ba7b195a369f35cb39094fdb32efe5908b34ad (diff) | |
download | linux-stable-11663111cd49b4c6dd27479774e420f139e4c447.tar.gz linux-stable-11663111cd49b4c6dd27479774e420f139e4c447.tar.bz2 linux-stable-11663111cd49b4c6dd27479774e420f139e4c447.zip |
KVM: arm64: Hide PMU registers from userspace when not available
It appears that while we are now able to properly hide PMU
registers from the guest when a PMU isn't available (either
because none has been configured, the host doesn't have
the PMU support compiled in, or that the HW doesn't have
one at all), we are still exposing more than we should to
userspace.
Introduce a visibility callback gating all the PMU registers,
which covers both usrespace and guest.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions