diff options
| author | Oliver Upton <oupton@kernel.org> | 2026-10-29 15:37:32 -0700 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-11-03 11:07:16 +0000 |
| commit | 361564a8d4305100ee4140ff7b345d1bf2c1a1b2 (patch) | |
| tree | f3a056193ffd0fe0dfbdf08a4b786a6008d18164 /tools/perf/scripts/python/bin | |
| parent | 388faffbd371fd367d39535ad2aa07fbbd745c08 (diff) | |
KVM: arm64: nv: Correctly compute the effective TCR_EL1 for nVHE TCR_EL2
It would appear that nVHE hypervisor support has a few warts which
shouldn't come as a surprise. Several fields in TCR_EL2 for features
supported in the VM (TCR_EL2.HA for example) are not correctly
propagated to the effective value of TCR_EL1.
Forward fields in bulk from nVHE TCR_EL2 to the effective TCR_EL1,
relying on config-based sanitisation to enforce the RESx behavior of
unsupported features. Deal with the slightly annoying case where the
E2H==0 bitfield names are not annotated by TTBR like they are in E2H==1.
Cc: stable@vger.kernel.org # v6.18+
Fixes: d5bbb76f4474 ("KVM: arm64: nv: Expose hardware access flag management to NV guests")
Fixes: 3606e0b2e462 ("KVM: arm64: nv: Add non-VHE-EL2->EL1 translation helpers")
Signed-off-by: Oliver Upton <oupton@kernel.org>
Reviewed-by: Wei-Lin Chang <weilin.chang@arm.com>
Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev>
Tested-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261029223732.103785-6-oupton@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
