Skip to content

Commit dfe6d19

Browse files
author
Marc Zyngier
committed
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: 0d854a6 ("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>
1 parent 947051e commit dfe6d19

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/arm64/kvm/guest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg)
251251
case PSR_AA32_MODE_SVC:
252252
case PSR_AA32_MODE_ABT:
253253
case PSR_AA32_MODE_UND:
254+
case PSR_AA32_MODE_SYS:
254255
if (!vcpu_el1_is_32bit(vcpu))
255256
return -EINVAL;
256257
break;

0 commit comments

Comments
 (0)