KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode

commit dfe6d190f38fc5df5ff2614b463a5195a399c885 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 3c9ee8294728633e707c25fe0a321eeac1cc7515)
[Vegard: fix conflicts due to missing commit
 256c0960b7b6453dc90a4e879da52ab76b4037f9 ("kvm/arm: use PSR_AA32
 definitions").]
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
1 file changed