]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:41:37 +0000 (13:41 +0200)
commit5b12ce0b6fd9956c6825f04fb00544ff8d302bd4
tree38ead154c846370c83b0ad26c5ae15738dc1f7b0
parent4f902f03ef57f9a80b157a6a05f6b77211be9a4a
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>
arch/arm64/kvm/guest.c