diff options
author | Oliver Upton <oliver.upton@linux.dev> | 2025-09-17 14:20:36 -0700 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2025-09-24 19:23:32 +0100 |
commit | 1c9604ba234711ca759f1147f2fbc7a94a5a486d (patch) | |
tree | 2c7056a8dfa55e46e4a5520c9a6939e867d6ff11 /tools/docs/lib/parse_data_structs.py | |
parent | 8911c7dbc607212bf3dfc963004b062588c0ab38 (diff) |
KVM: arm64: selftests: Alias EL1 registers to EL2 counterparts
FEAT_VHE has the somewhat nice property of implicitly redirecting EL1
register aliases to their corresponding EL2 representations when E2H=1.
Unfortunately, there's no such abstraction for userspace and EL2
registers are always accessed by their canonical encoding.
Introduce a helper that applies EL2 redirections to sysregs and use
aggressive inlining to catch misuse at compile time. Go a little past
the architectural definition for ease of use for test authors (e.g. the
stack pointer).
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/docs/lib/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions