]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: KVM: Fix decoding of Rt/Rt2 when trapping AArch32 CP accesses
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 27 Apr 2017 18:06:48 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:30:57 +0000 (14:30 +0200)
commit5c5d86be4f3fdb95cf9356687ca79af6cc325177
treea62aac77dad22f223642ddd32dbbd6901f4f6eb9
parent8348ffba88e50c1ca2f222fced1996d0f026f89e
arm64: KVM: Fix decoding of Rt/Rt2 when trapping AArch32 CP accesses

commit c667186f1c01ca8970c785888868b7ffd74e51ee upstream.

Our 32bit CP14/15 handling inherited some of the ARMv7 code for handling
the trapped system registers, completely missing the fact that the
fields for Rt and Rt2 are now 5 bit wide, and not 4...

Let's fix it, and provide an accessor for the most common Rt case.

Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/kvm/sys_regs.c