]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: arm64: Introduce handling of AArch32 TTBCR2 traps
authorMarc Zyngier <maz@kernel.org>
Tue, 10 Nov 2020 11:10:15 +0000 (11:10 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:47:30 +0000 (16:47 +0100)
commit2a60599b2828e51a3c323b1555c17535f819667f
treeec8d8a0cd5872c9a17d5b97663878c24f45de1df
parentd6a5b7ca572b1edc1d1410e87c6e5449f46ddb54
KVM: arm64: Introduce handling of AArch32 TTBCR2 traps

BugLink: https://bugs.launchpad.net/bugs/1910111
commit ca4e514774930f30b66375a974b5edcbebaf0e7e upstream.

ARMv8.2 introduced TTBCR2, which shares TCR_EL1 with TTBCR.
Gracefully handle traps to this register when HCR_EL2.TVM is set.

Cc: stable@vger.kernel.org
Reported-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c