Skip to contentSkip to conversation

KVM: SVM: Replace stale references to svm_ir_list_add in comments

PATCH New John Ho 1 participant 1 message Nov 29

Subsystems (4)
lore
Share & tools
lore

John Ho

author
#0 lore raw

PATCH 1/1 KVM: SVM: Replace stale references to svm_ir_list_add in comments

Replace stale references to svm_ir_list_add() with avic_pi_update_irte().

Commit c3d591c91f9c99a35f8cf80d28ea689214a1acf3 ("KVM: SVM: Take and hold ir_list_lock across IRTE updates in IOMMU") removed and folded svm_ir_list_add() into avic_pi_update_irte(). As such, svm_ir_list_add(), referenced by the changed comments, no longer exists as a function. Its functionality, including usage of ir_list_lock to ensure up-to-date entry information, is mirrored in avic_pi_update_irte().

Based on kvm-x86/next branch.

---
 arch/x86/kvm/svm/avic.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/x86/kvm/svm/avic.c +4 -4
index 1a184d167fb5..acce9ba11d6e 100644
@@ -1063,9 +1063,9 @@ static void __avic_vcpu_load(struct kvm_vcpu *vcpu, int cpu,
 	/*
 	 * Grab the per-vCPU interrupt remapping lock even if the VM doesn't
 	 * _currently_ have assigned devices, as that can change.  Holding
-	 * ir_list_lock ensures that either svm_ir_list_add() will consume
+	 * ir_list_lock ensures that either avic_pi_update_irte() will consume
 	 * up-to-date entry information, or that this task will wait until
-	 * svm_ir_list_add() completes to set the new target pCPU.
+	 * avic_pi_update_irte() completes to set the new target pCPU.
 	 */
 	raw_spin_lock_irqsave(&svm->ir_list_lock, flags);
 
@@ -1126,8 +1126,8 @@ static void __avic_vcpu_put(struct kvm_vcpu *vcpu, enum avic_vcpu_action action)
 	 * Take and hold the per-vCPU interrupt remapping lock while updating
 	 * the Physical ID entry even though the lock doesn't protect against
 	 * multiple writers (see above).  Holding ir_list_lock ensures that
-	 * either svm_ir_list_add() will consume up-to-date entry information,
-	 * or that this task will wait until svm_ir_list_add() completes to
+	 * either avic_pi_update_irte() will consume up-to-date entry information,
+	 * or that this task will wait until avic_pi_update_irte() completes to
 	 * mark the vCPU as not running.
 	 */
 	raw_spin_lock_irqsave(&svm->ir_list_lock, flags);
Signature · 1 line
2.56.1