Skip to content

Commit aae35f4

Browse files
committed
KVM: arm64: Treat vCPU with pending SError as runnable
Per R_VRLPB, a pending SError is a WFI wakeup event regardless of PSTATE.A, meaning that the vCPU is runnable. Sample VSE in addition to the other IRQ lines. Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20250708172532.1699409-5-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent 1d6fea7 commit aae35f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/kvm/arm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,8 @@ int kvm_arch_vcpu_ioctl_set_mpstate(struct kvm_vcpu *vcpu,
740740
*/
741741
int kvm_arch_vcpu_runnable(struct kvm_vcpu *v)
742742
{
743-
bool irq_lines = *vcpu_hcr(v) & (HCR_VI | HCR_VF);
743+
bool irq_lines = *vcpu_hcr(v) & (HCR_VI | HCR_VF | HCR_VSE);
744+
744745
return ((irq_lines || kvm_vgic_vcpu_pending_irq(v))
745746
&& !kvm_arm_vcpu_stopped(v) && !v->arch.pause);
746747
}

0 commit comments

Comments
 (0)