Skip to content

Commit

Permalink
Merge tag 'kvmarm-fixes-6.7-1' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/kvmarm/kvmarm into kvm-master

KVM/arm64 fixes for 6.7, take #1

 - Avoid mapping vLPIs that have already been mapped
  • Loading branch information
bonzini committed Dec 8, 2023
2 parents 33cc938 + 8e4ece6 commit c8a11a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/kvm/vgic/vgic-v4.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ int kvm_vgic_v4_set_forwarding(struct kvm *kvm, int virq,
if (ret)
goto out;

/* Silently exit if the vLPI is already mapped */
if (irq->hw)
goto out;

/*
* Emit the mapping request. If it fails, the ITS probably
* isn't v4 compatible, so let's silently bail out. Holding
Expand Down

0 comments on commit c8a11a9

Please sign in to comment.