From: sashiko-bot@kernel.org
To: "Marc Zyngier" <maz@kernel.org>,
kvmarm@lists.linux.dev, kvm@vger.kernel.org
Cc: "Oliver Upton" <oupton@kernel.org>
Subject: Re: [PATCH 6.6.y 5/5] KVM: arm64: vgic: Linearise AP list pruning process
Date: Sat, 05 Dec 2026 10:59:08 +0000 [thread overview]
Message-ID: <sashiko-outbox-251436@kernel.org> (raw)
In-Reply-To: <20261205104138.1432063-6-maz@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: arm64: stale comments and dead ERR_PTR checks in
vgic_predict_target()
--
commit 34d7e9e81e799490c8587c29f8e79093813a7602
Author: Marc Zyngier <maz@kernel.org>
KVM: arm64: vgic: Linearise AP list pruning process
This commit backports the linearised AP list pruning algorithm, moving
IRQs that need migration onto a local culling list before re-dispatching
them to their target vCPUs one ap_list_lock at a time.
> diff --git a/arch/arm64/kvm/vgic/vgic.c b/arch/arm64/kvm/vgic/vgic.c
> index 9a6e2eab84278..79348032054f2 100644
> --- a/arch/arm64/kvm/vgic/vgic.c
> +++ b/arch/arm64/kvm/vgic/vgic.c
> @@ -625,6 +625,26 @@ int kvm_vgic_set_owner(struct kvm_vcpu *vcpu, unsigned int intid, void *owner)
> return ret;
> }
>
> +/*
> + * This helper checks the target *and* does the laundry, nuking the irq off
> + * the ap_list when necessary, and doing the refcount drop on LPIs. -ENOENT
> + * is returned when LPI release is warranted.
> + */
> +static struct kvm_vcpu *vgic_predict_target(struct kvm *kvm, struct vgic_irq *irq)
> +{
> + struct kvm_vcpu *target;
> +
> + lockdep_assert_held(&irq->irq_lock);
> +
> + target = vgic_target_oracle(irq);
> + if (!target) {
> + list_del(&irq->ap_list);
> + irq->vcpu = NULL;
> + }
> +
> + return target;
> +}
[Severity: Low]
Should this comment and the kvm parameter be updated for the backport?
Because vgic_put_irq() was moved to the callers in this tree,
vgic_predict_target() no longer drops the LPI refcount, never returns
-ENOENT, and does not use kvm.
For the same reason, vgic_prune_ap_list() still carries a stale comment
about getting an error back when an LPI is deleted, and both call sites
retain dead IS_ERR_OR_NULL(irq_target) checks where !irq_target would
suffice.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205104138.1432063-1-maz@kernel.org?part=5
prev parent reply other threads:[~2026-12-05 10:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 10:41 [PATCH 6.6.y 0/5] KVM/arm64 stable fixes Marc Zyngier
2026-12-05 10:41 ` [PATCH 6.6.y 1/5] KVM: arm64: vgic-its: Stop the VM when handling MOVALL Marc Zyngier
2026-12-05 10:41 ` [PATCH 6.6.y 2/5] KVM: arm64: vgic-its: Bound PINTID during ITE table restore Marc Zyngier
2026-12-05 10:41 ` [PATCH 6.6.y 3/5] irqchip/gic-v4: Contain VMAPTI vINTID to the expected boundaries Marc Zyngier
2026-12-05 10:41 ` [PATCH 6.6.y 4/5] KVM: arm64: vgic-its: Add signal checks in scan_its_table() Marc Zyngier
2026-12-05 10:41 ` [PATCH 6.6.y 5/5] KVM: arm64: vgic: Linearise AP list pruning process Marc Zyngier
2026-12-05 10:59 ` sashiko-bot [this message]
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=sashiko-outbox-251436@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.