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 --- 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