KVM: arm64: Treat PMCR_EL1.LC as RES1 on asymmetric systems
authorOliver Upton <oliver.upton@linux.dev>
Tue, 16 Aug 2022 19:25:53 +0000 (19:25 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 17 Aug 2022 09:29:07 +0000 (10:29 +0100)
commitf3c6efc72f3b20ec23566e768979802f0a398f04
treec4baa4f8e27a21bbd86f4a67fbf4a126885ce6b3
parentae3b1da95413614f96ffa23d200929c6f809c807
KVM: arm64: Treat PMCR_EL1.LC as RES1 on asymmetric systems

KVM does not support AArch32 on asymmetric systems. To that end, enforce
AArch64-only behavior on PMCR_EL1.LC when on an asymmetric system.

Fixes: 2122a833316f ("arm64: Allow mismatched 32-bit EL0 support")
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220816192554.1455559-2-oliver.upton@linux.dev
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/sys_regs.c