Skip to content

Commit 7db7e58

Browse files
committed
KVM: arm64: vgic-its: Test for valid IRQ in MOVALL handler
jira LE-1907 Rebuild_History Non-Buildable kernel-5.14.0-427.28.1.el9_4 commit-author Oliver Upton <oliver.upton@linux.dev> commit 85a71ee 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> (cherry picked from commit 85a71ee) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 492f7c6 commit 7db7e58

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)