]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Fix AArch32 handling of DBGD{CCINT,SCRext} and DBGVCR
authorMarc Zyngier <maz@kernel.org>
Thu, 29 Oct 2020 17:24:09 +0000 (17:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 29 Oct 2020 19:49:03 +0000 (19:49 +0000)
commitddaf24a8296367b7bca18d84d7b0984f05a16628
tree56dfc90b4aab387dab0fbc77753b6e51e61027de
parente4d18652449a677f77fe56118349022a02f9d7a9
KVM: arm64: Fix AArch32 handling of DBGD{CCINT,SCRext} and DBGVCR

The DBGD{CCINT,SCRext} and DBGVCR register entries in the cp14 array
are missing their target register, resulting in all accesses being
targetted at the guard sysreg (indexed by __INVALID_SYSREG__).

Point the emulation code at the actual register entries.

Fixes: b44b789afbe0 ("arm64: KVM: add trap handlers for AArch32 debug registers")
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201029172409.2768336-1-maz@kernel.org
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c