Re: [PATCH] arm64: KVM: Avoid setting the upper 32 bits of TCR_EL2 and CPTR_EL2 to 1

From
Marc Zyngier <maz@kernel.org>
Date
2021-11-25 15:55:34
Also in
linux-arm-kernel
Reply to
Catalin Marinas, 2021-11-25
On Thu, 25 Nov 2021 15:20:14 +0000, Catalin Marinas wrote:
Having a signed (1 << 31) constant for TCR_EL2_RES1 and CPTR_EL2_TCPAC
causes the upper 32-bit to be set to 1 when assigning them to a 64-bit
variable. Bit 32 in TCR_EL2 is no longer RES0 in ARMv8.7: with FEAT_LPA2
it changes the meaning of bits 49:48 and 9:8 in the stage 1 EL2 page
table entries. As a result of the sign-extension, a non-VHE kernel can
no longer boot on a model with ARMv8.7 enabled.

[...]
Applied to fixes, thanks!

[1/1] arm64: KVM: Avoid setting the upper 32 bits of TCR_EL2 and CPTR_EL2 to 1
      commit: 1f80d15020d7f130194821feb1432b67648c632d

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.

Thread (2 messages) 2 messages, 2 authors, last reply 2021-11-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help