summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-12-13 19:06:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-09 19:14:52 +0300
commitf6be406e60c57692df4d5c6d082de1f08a3dac73 (patch)
treea9b9465729bae1381cf12341073328e055f35d1a /virt
parent8697c15f2d8bad27119e37269bd855e69f149634 (diff)
downloadlinux-f6be406e60c57692df4d5c6d082de1f08a3dac73.tar.xz
arm64: KVM: Avoid setting the upper 32 bits of VTCR_EL2 to 1
commit df655b75c43fba0f2621680ab261083297fd6d16 upstream. 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: <stable@vger.kernel.org> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Christoffer Dall <christoffer.dall@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions