android_kernel_sony_sdm845/arch/arm64/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marc Zyngier 3fce258c11 KVM: arm64: Make vcpu_cp1x() work on Big Endian hosts
commit 3204be4109ad681523e3461ce64454c79278450a upstream.

AArch32 CP1x registers are overlayed on their AArch64 counterparts
in the vcpu struct. This leads to an interesting problem as they
are stored in their CPU-local format, and thus a CP1x register
doesn't "hit" the lower 32bit portion of the AArch64 register on
a BE host.

To workaround this unfortunate situation, introduce a bias trick
in the vcpu_cp1x() accessors which picks the correct half of the
64bit register.

Cc: stable@vger.kernel.org
Reported-by: James Morse <james.morse@arm.com>
Tested-by: James Morse <james.morse@arm.com>
Acked-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-20 10:24:12 +02:00
..
asm KVM: arm64: Make vcpu_cp1x() work on Big Endian hosts 2020-06-20 10:24:12 +02:00
uapi/asm arm/arm64: KVM: Add PSCI version selection API 2018-05-09 09:50:19 +02:00