diff options
author | Marc Zyngier <[email protected]> | 2023-02-09 17:58:17 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-02-11 10:13:29 +0000 |
commit | e6b367db0f9192692a3f3057878f1259fe966d33 (patch) | |
tree | 243a7c2e9d72fca95eea58571cb9b25fd062c4c3 /tools/perf/scripts/python/stackcollapse.py | |
parent | d9552fe133f9f7c357460b041e2d3b20310adf8d (diff) |
KVM: arm64: nv: Allow a sysreg to be hidden from userspace only
So far, we never needed to distinguish between registers hidden
from userspace and being hidden from a guest (they are always
either visible to both, or hidden from both).
With NV, we have the ugly case of the EL02 and EL12 registers,
which are only a view on the EL0 and EL1 registers. It makes
absolutely no sense to expose them to userspace, since it
already has the canonical view.
Add a new visibility flag (REG_HIDDEN_USER) and a new helper that
checks for it and REG_HIDDEN when checking whether to expose
a sysreg to userspace. Subsequent patches will make use of it.
Reviewed-by: Alexandru Elisei <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions