mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Ho <jckmail23@gmail.com>
To: seanjc@google.com, pbonzini@redhat.com, kvm@vger.kernel.org
Cc: tglx@kernel.org, mingo@redhat.com, bp@alien8.de,
	dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com,
	linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
	John Ho <jckmail23@gmail.com>
Subject: [PATCH] KVM: SVM: Replace stale references to svm_ir_list_add in comments
Date: Sun, 29 Nov 2026 05:13:39 +0000	[thread overview]
Message-ID: <20261129051339.93508-1-jckmail23@gmail.com> (raw)

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


                 reply	other threads:[~2026-11-29  5:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261129051339.93508-1-jckmail23@gmail.com \
    --to=jckmail23@gmail.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=seanjc@google.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®