[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch V3 16/22] genirq/msi: Provide new domain id based interfaces for freeing interrupts
- To: Thomas Gleixner <tglx@xxxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxx>
- From: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
- Date: Mon, 16 Jan 2023 10:10:39 +0000
- Cc: x86@xxxxxxxxxx, Joerg Roedel <joro@xxxxxxxxxx>, Will Deacon <will@xxxxxxxxxx>, linux-pci@xxxxxxxxxxxxxxx, Bjorn Helgaas <bhelgaas@xxxxxxxxxx>, Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>, Marc Zyngier <maz@xxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Jason Gunthorpe <jgg@xxxxxxxxxxxx>, Dave Jiang <dave.jiang@xxxxxxxxx>, Alex Williamson <alex.williamson@xxxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>, Dan Williams <dan.j.williams@xxxxxxxxx>, Logan Gunthorpe <logang@xxxxxxxxxxxx>, Ashok Raj <ashok.raj@xxxxxxxxx>, Jon Mason <jdmason@xxxxxxxx>, Allen Hubbe <allenbh@xxxxxxxxx>
- Delivery-date: Mon, 16 Jan 2023 10:10:54 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Mon, 2023-01-16 at 09:56 +0000, David Woodhouse wrote:
>
> msi_for_each_desc(msidesc, &dev->dev, MSI_DESC_ASSOCIATED) {
> - for (i = 0; i < msidesc->nvec_used; i++)
> + for (i = 0; i < msidesc->nvec_used; i++) {
> xen_destroy_irq(msidesc->irq + i);
> + msidesc->irq = 0;
> + }
> }
> }
>
Der, setting it to zero wants to be in the msi_for_each_desc() loop and
*not* in the 'for i' loop of course.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
|