]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: nv: Consider the DS bit when translating TCR_EL2
authorWei-Lin Chang <weilin.chang@arm.com>
Tue, 5 May 2026 14:47:35 +0000 (15:47 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 6 May 2026 16:08:39 +0000 (17:08 +0100)
commit8d9b9d985ad3a81c751a6b97edaf1d3c0780af7c
tree98d471fec989179e40f80d8ceab58b336f88d656
parent1f7305d87aa23db2579df222eba504a333c2c978
KVM: arm64: nv: Consider the DS bit when translating TCR_EL2

When running an nVHE L1, TCR_EL2 is mapped to TCR_EL1. Writes to the
register are trapped and written to TCR_EL1 after a translation.
Booting an nVHE L1 with 52-bit VA isn't working because the translation
was ignoring the DS bit set by the guest, hence causing repeating level
0 faults. Add it in the translation function.

Signed-off-by: Wei-Lin Chang <weilin.chang@arm.com>
Link: https://patch.msgid.link/20260505144735.1496530-1-weilin.chang@arm.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_nested.h