[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/2] xen/x86: Patch re-factors MSI/X config code from, drivers/passthrough/pci.c to x86 specific
Hi Manish, On 13/04/15 08:40, Manish Jaggi wrote: > -static int _dump_pci_devices(struct pci_seg *pseg, void *arg) > -{ > - struct pci_dev *pdev; > - struct msi_desc *msi; > - > - printk("==== segment %04x ====\n", pseg->nr); > - > - list_for_each_entry ( pdev, &pseg->alldevs_list, alldevs_list ) > - { > - printk("%04x:%02x:%02x.%u - dom %-3d - node %-3d - MSIs < ", > - pseg->nr, pdev->bus, > - PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), > - pdev->domain ? pdev->domain->domain_id : -1, > - (pdev->node != NUMA_NO_NODE) ? pdev->node : -1); > - list_for_each_entry ( msi, &pdev->msi_list, list ) > - printk("%d ", msi->irq); > - printk(">\n"); > - } > - > - return 0; > -} > - This doesn't sound like x86 specific. > diff --git a/xen/drivers/passthrough/x86/pci.c > b/xen/drivers/passthrough/x86/pci.c > new file mode 100644 > index 0000000..cf37b0a > --- /dev/null > +++ b/xen/drivers/passthrough/x86/pci.c > @@ -0,0 +1,115 @@ > +/* > + * x86 specific code for PCI MSI > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA > 02111-1307, USA. > + * > + * Copyright (C) 2015 Cavium Networks > + * > + * Author: Manish Jaggi <manish.jaggi@xxxxxxxxxx> You are not the author of this code, you just move the code in another place. Please the retain the previous copyright author. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |