]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65f80eab5d64a403b594f111f60e5f616c13fe40
treec4baa4f8e27a21bbd86f4a67fbf4a126885ce6b3
parent9ffe79d1dc0b8f7dbc636f8d46c86f753220c61b
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: 6a9c7b920970 ("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