From: Sean Christopherson <seanjc@google.com>
To: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>,
kvmarm@lists.linux.dev, Joey Gouly <joey.gouly@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Zenghui Yu <yuzenghui@huawei.com>,
Sweet Tea Dorminy <sweettea@google.com>
Subject: Re: [PATCH 4/5] KVM: arm64: Unmap vLPIs affected by changes to GSI routing information
Date: Fri, 23 May 2025 13:54:01 -0700 [thread overview]
Message-ID: <aDDgaZPV2lid3GeS@google.com> (raw)
In-Reply-To: <87zff3urdi.wl-maz@kernel.org>
On Fri, May 23, 2025, Marc Zyngier wrote:
> On Fri, 23 May 2025 18:48:02 +0100,
> Sean Christopherson <seanjc@google.com> wrote:
> >
> > On Fri, May 23, 2025, Marc Zyngier wrote:
> > > > @@ -2803,6 +2804,28 @@ void kvm_arch_irq_bypass_del_producer(struct irq_bypass_consumer *cons,
> > > > kvm_vgic_v4_unset_forwarding(irqfd->kvm, prod->irq);
> > > > }
> > > >
> > > > +bool kvm_arch_irqfd_route_changed(struct kvm_kernel_irq_routing_entry *old,
> > > > + struct kvm_kernel_irq_routing_entry *new)
> > > > +{
> > > > + if (new->type != KVM_IRQ_ROUTING_MSI)
> > > > + return true;
> > > > +
> > > > + return memcmp(&old->msi, &new->msi, sizeof(new->msi));
> > > > +}
> > > > +
> > > > +int kvm_arch_update_irqfd_routing(struct kvm *kvm, unsigned int host_irq,
> > > > + uint32_t guest_irq, bool set)
> > >
> > > If we're adding this, can we take out the trash and get rid of this
> > > 'set' parameter? Its only purpose is to be set to '1' and fed to the
> > > x86-specific stuff. How about this:
> >
> > Can we hold off on any changes to the common APIs? Unless they're urgent and
> > need to land in 6.16, I've got a massive series that I've been slowing working
> > on for ~7 months that fixes this wart, and several more, e.g. gets rid of
> > kvm_arch_irqfd_route_changed() entirely, and make the above ugliness into:
> >
> > void kvm_arch_update_irqfd_routing(struct kvm_kernel_irqfd *irqfd,
> > struct kvm_kernel_irq_routing_entry *old,
> > struct kvm_kernel_irq_routing_entry *new)
> >
> >
> > I'm ~90% confident it'll land in 6.17:
> > https://lore.kernel.org/all/20250523010004.3240643-1-seanjc@google.com
>
> Sure, if you want to preserve this fossil for another round, I don't
> really care. But if you are planning your grand plan for 6.17, you
> could as well rebase on top of theses patches which are aimed at -rc1
> (yes, they are bug fixes), and it would then be perfectly acceptable
> to have this cleanup early.
I'll be rebasing either way, so I'm not comletely opposed to it, I just don't
see much value in rushing this particular change into 6.16 given that there's a
bigger cleanup looming.
next prev parent reply other threads:[~2025-05-23 20:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 16:08 [PATCH 0/5] KVM: arm64: Some VGIC-related fixes Oliver Upton
2025-05-23 16:08 ` [PATCH 1/5] KVM: arm64: Use lock guard in vgic_v4_set_forwarding() Oliver Upton
2025-05-23 16:08 ` [PATCH 2/5] KVM: arm64: Protect vLPI translation with vgic_irq::irq_lock Oliver Upton
2025-05-23 16:08 ` [PATCH 3/5] KVM: arm64: Resolve vLPI by host IRQ in vgic_v4_unset_forwarding() Oliver Upton
2025-05-23 17:25 ` Marc Zyngier
2025-05-23 18:22 ` Oliver Upton
2025-05-23 16:08 ` [PATCH 4/5] KVM: arm64: Unmap vLPIs affected by changes to GSI routing information Oliver Upton
2025-05-23 17:26 ` Marc Zyngier
2025-05-23 17:48 ` Sean Christopherson
2025-05-23 18:14 ` Marc Zyngier
2025-05-23 20:54 ` Sean Christopherson [this message]
2025-05-23 20:58 ` Oliver Upton
2025-05-23 16:08 ` [PATCH 5/5] KVM: arm64: vgic-init: Plug vCPU vs. VGIC creation race Oliver Upton
2025-05-23 17:35 ` [PATCH 0/5] KVM: arm64: Some VGIC-related fixes Marc Zyngier
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=aDDgaZPV2lid3GeS@google.com \
--to=seanjc@google.com \
--cc=joey.gouly@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=oliver.upton@linux.dev \
--cc=suzuki.poulose@arm.com \
--cc=sweettea@google.com \
--cc=yuzenghui@huawei.com \
/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.