mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] KVM: SVM: Replace stale references to svm_ir_list_add in comments
@ 2026-11-29  5:13 John Ho
  0 siblings, 0 replies; only message in thread
From: John Ho @ 2026-11-29  5:13 UTC (permalink / raw)
  To: seanjc, pbonzini, kvm
  Cc: tglx, mingo, bp, dave.hansen, x86, hpa, linux-kernel,
	kernel-janitors, John Ho

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.

Signed-off-by: John Ho <jckmail23@gmail.com>
---
 arch/x86/kvm/svm/avic.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kvm/svm/avic.c b/arch/x86/kvm/svm/avic.c
index 1a184d167fb5..acce9ba11d6e 100644
--- a/arch/x86/kvm/svm/avic.c
+++ b/arch/x86/kvm/svm/avic.c
@@ -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);
-- 
2.56.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-29  5:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29  5:13 [PATCH] KVM: SVM: Replace stale references to svm_ir_list_add in comments John Ho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®