]> www.infradead.org Git - users/hch/misc.git/commit
KVM: arm64: Fix the value of the CPTR_EL2 RES1 bitmask for nVHE
authorFuad Tabba <tabba@google.com>
Mon, 16 Dec 2024 10:50:54 +0000 (10:50 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 13:54:03 +0000 (13:54 +0000)
commit1eccad35c9268f1ad4be3d72d37167a58c0ac2db
tree1b675994e0d03c751af7f663f1b746a14d8094b9
parent8f7df795b2da0564b22a03c4aceec90bfc5e1b1b
KVM: arm64: Fix the value of the CPTR_EL2 RES1 bitmask for nVHE

Since the introduction of SME, bit 12 in CPTR_EL2 (nVHE) is TSM
for trapping SME, instead of RES1, as per ARM ARM DDI 0487K.a,
section D23.2.34.

Fix the value of CPTR_NVHE_EL2_RES1 to reflect that, and adjust
the code that relies on it accordingly.

Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20241216105057.579031-15-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/kvm_emulate.h