]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2
authorDave Martin <Dave.Martin@arm.com>
Thu, 21 Feb 2019 11:42:32 +0000 (11:42 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 22 Feb 2019 09:59:20 +0000 (09:59 +0000)
commit7e75812d39e184d8aca4b1e3a2039b6318825a0d
treeeb4b90f240d0961435e52bd5ea287f2d08f86661
parent3d1e4fa8ae44636358b43b8a35ede522d1892b53
arm64: KVM: Fix architecturally invalid reset value for FPEXC32_EL2

Due to what looks like a typo dating back to the original addition
of FPEXC32_EL2 handling, KVM currently initialises this register to
an architecturally invalid value.

As a result, the VECITR field (RES1) in bits [10:8] is initialised
with 0, and the two reserved (RES0) bits [6:5] are initialised with
1.  (In the Common VFP Subarchitecture as specified by ARMv7-A,
these two bits were IMP DEF.  ARMv8-A removes them.)

This patch changes the reset value from 0x70 to 0x700, which
reflects the architectural constraints and is presumably what was
originally intended.

Cc: <stable@vger.kernel.org> # 4.12.x-
Cc: Christoffer Dall <christoffer.dall@arm.com>
Fixes: 1a6aa3c88fdb ("arm64: KVM: 32bit handling of coprocessor traps")
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/sys_regs.c