KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode
authorMarc Zyngier <maz@kernel.org>
Fri, 24 May 2024 14:19:55 +0000 (15:19 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 27 May 2024 16:45:35 +0000 (17:45 +0100)
commitdfe6d190f38fc5df5ff2614b463a5195a399c885
tree6103f4a3c21c381cf579f84f1215a2c0890ad252
parent947051e361d551e0590777080ffc4926190f62f2
KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode

It appears that we don't allow a vcpu to be restored in AArch32
System mode, as we *never* included it in the list of valid modes.

Just add it to the list of allowed modes.

Fixes: 0d854a60b1d7 ("arm64: KVM: enable initialization of a 32bit vcpu")
Cc: stable@vger.kernel.org
Acked-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240524141956.1450304-3-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/guest.c