[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53E9D9DD.3060901@citrix.com>
Date: Tue, 12 Aug 2014 10:09:49 +0100
From: David Vrabel <david.vrabel@...rix.com>
To: Yijing Wang <wangyijing@...wei.com>,
Bjorn Helgaas <bhelgaas@...gle.com>
CC: <linux-mips@...ux-mips.org>, <linux-ia64@...r.kernel.org>,
<linux-pci@...r.kernel.org>, Xinwei Hu <huxinwei@...wei.com>,
"H. Peter Anvin" <hpa@...or.com>, <sparclinux@...r.kernel.org>,
<linux-s390@...r.kernel.org>,
Russell King <linux@....linux.org.uk>,
Joerg Roedel <joro@...tes.org>, <x86@...nel.org>,
Sebastian Ott <sebott@...ux.vnet.ibm.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
<xen-devel@...ts.xenproject.org>, <arnab.basu@...escale.com>,
Arnd Bergmann <arnd@...db.de>,
Marc Zyngier <marc.zyngier@....com>,
Chris Metcalf <cmetcalf@...era.com>,
Thomas Gleixner <tglx@...utronix.de>,
<linux-arm-kernel@...ts.infradead.org>,
Tony Luck <tony.luck@...el.com>,
<linux-kernel@...r.kernel.org>, <iommu@...ts.linux-foundation.org>,
Wuyun <wuyun.wu@...wei.com>, <linuxppc-dev@...ts.ozlabs.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [Xen-devel] [RFC PATCH 01/20] x86/xen/MSI: Eliminate arch_msix_mask_irq()
and arch_msi_mask_irq()
On 12/08/14 08:25, Yijing Wang wrote:
> Commit 0e4ccb150 added two __weak arch functions arch_msix_mask_irq()
> and arch_msi_mask_irq() to fix a bug found when running xen in x86.
> Introduced these two funcntions make MSI code complex. This patch
> reverted commit 0e4ccb150 and add #ifdef for x86 msi_chip to fix this
> bug for simplicity. Also this is preparation for using struct
> msi_chip instead of weak arch MSI functions in all platforms.
[...]
> static struct irq_chip msi_chip = {
> .name = "PCI-MSI",
> +#ifdef CONFIG_XEN
> + .irq_unmask = nop_unmask_msi_irq,
> + .irq_mask = nop_mask_msi_irq,
> +#else
> .irq_unmask = unmask_msi_irq,
> .irq_mask = mask_msi_irq,
> +#endif
No. CONFIG_XEN kernels can run on Xen and bare metal so this must be a
runtime option.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists