]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Reject 32bit user PSTATE on asymmetric systems
authorOliver Upton <oliver.upton@linux.dev>
Tue, 16 Aug 2022 19:25:54 +0000 (19:25 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 17 Aug 2022 09:29:07 +0000 (10:29 +0100)
commite22d80bc82d074e7f98e7f4111c9e0dfab0e9e20
treec09436e916099e931372589f3d755c4839e36df1
parent2f53bfd48b2b8c127cb6c6e9424b7021efc510b4
KVM: arm64: Reject 32bit user PSTATE on asymmetric systems

KVM does not support AArch32 EL0 on asymmetric systems. To that end,
prevent userspace from configuring a vCPU in such a state through
setting PSTATE.

It is already ABI that KVM rejects such a write on a system where
AArch32 EL0 is unsupported. Though the kernel's definition of a 32bit
system changed in commit c3febdd678fb ("arm64: Allow mismatched
32-bit EL0 support"), KVM's did not.

Fixes: c3febdd678fb ("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-3-oliver.upton@linux.dev
arch/arm64/kvm/guest.c