Skip to content

Commit 85a71ee

Browse files
ouptonMarc Zyngier
authored andcommitted
KVM: arm64: vgic-its: Test for valid IRQ in MOVALL handler
It is possible that an LPI mapped in a different ITS gets unmapped while handling the MOVALL command. If that is the case, there is no state that can be migrated to the destination. Silently ignore it and continue migrating other LPIs. Cc: stable@vger.kernel.org Fixes: ff9c114 ("KVM: arm/arm64: GICv4: Handle MOVALL applied to a vPE") Signed-off-by: Oliver Upton <oliver.upton@linux.dev> Link: https://lore.kernel.org/r/20240221092732.4126848-3-oliver.upton@linux.dev Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent 8d3a7df commit 85a71ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm64/kvm/vgic/vgic-its.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,6 +1435,8 @@ static int vgic_its_cmd_handle_movall(struct kvm *kvm, struct vgic_its *its,
14351435

14361436
for (i = 0; i < irq_count; i++) {
14371437
irq = vgic_get_irq(kvm, NULL, intids[i]);
1438+
if (!irq)
1439+
continue;
14381440

14391441
update_affinity(irq, vcpu2);
14401442

0 commit comments

Comments
 (0)