]> Git Repo - linux.git/commit
arm64: KVM: Avoid setting the upper 32 bits of VTCR_EL2 to 1
authorWill Deacon <[email protected]>
Thu, 13 Dec 2018 16:06:14 +0000 (16:06 +0000)
committerMarc Zyngier <[email protected]>
Wed, 19 Dec 2018 17:47:52 +0000 (17:47 +0000)
commitdf655b75c43fba0f2621680ab261083297fd6d16
treececc5ca40b3c50a183ec7994b869d882e99a65ec
parent6794ad5443a2118243e13879f94228524a1a2b92
arm64: KVM: Avoid setting the upper 32 bits of VTCR_EL2 to 1

Although bit 31 of VTCR_EL2 is RES1, we inadvertently end up setting all
of the upper 32 bits to 1 as well because we define VTCR_EL2_RES1 as
signed, which is sign-extended when assigning to kvm->arch.vtcr.

Lucky for us, the architecture currently treats these upper bits as RES0
so, whilst we've been naughty, we haven't set fire to anything yet.

Cc: <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Christoffer Dall <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
arch/arm64/include/asm/kvm_arm.h
This page took 0.046122 seconds and 4 git commands to generate.