WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] CONFIG_PCI_MSI and drivers/xen/events.c

To: Bartosz Lis <bartoszl@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] CONFIG_PCI_MSI and drivers/xen/events.c
From: Pasi Kärkkäinen <pasik@xxxxxx>
Date: Mon, 9 Nov 2009 21:33:00 +0200
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 09 Nov 2009 11:33:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200911091740.11113.bartoszl@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <200911091740.11113.bartoszl@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
On Mon, Nov 09, 2009 at 05:40:11PM +0100, Bartosz Lis wrote:
> Hello,
> 
> I try to compile pv_ops domU kernel taken from 
> http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=shortlog;h=xen/master
> and I'm getting:
> 
> ---cut here--
>   CC      drivers/xen/grant-table.o
>   CC      drivers/xen/features.o
>   CC      drivers/xen/events.o
> /root/rpm/BUILD/kernel-
> xenUnogrsecurity-2.6.31.5x/linux-2.6.31/drivers/xen/events.c:597: error: 
> redefinition of 'xen_destroy_irq'
> /root/rpm/BUILD/kernel-
> xenUnogrsecurity-2.6.31.5x/linux-2.6.31/arch/x86/include/asm/xen/pci.h:22: 
> note: previous definition of 'xen_destroy_irq' was here
> /root/rpm/BUILD/kernel-
> xenUnogrsecurity-2.6.31.5x/linux-2.6.31/drivers/xen/events.c:666: error: 
> redefinition of 'xen_create_msi_irq'
> /root/rpm/BUILD/kernel-
> xenUnogrsecurity-2.6.31.5x/linux-2.6.31/arch/x86/include/asm/xen/pci.h:16: 
> note: previous definition of 'xen_create_msi_irq' was here
> make[4]: *** [drivers/xen/events.o] Error 1
> make[3]: *** [drivers/xen] Error 2
> make[2]: *** [drivers] Error 2
> make[1]: *** [sub-make] Error 2
> 
> The problem occured during last few days.
> 
> The above error arises when:
> XEN_DOM0_PCI - not set
> PCI_MSI=y
> The last is automticaly selected by AMD_IOMMU.
> 
> The error does not arise when XEN_DOM0_PCI=y, what is usually set when one 
> compiles dom0 kernel. 
> 
> Please tell me, whether it makes sense to leave AMD_IOMMU=y when compiling 
> domU kernel. If not, I'll simply switch that symbol off.
> 
> When XEN_DOM0_PCI is not set arch/x86/include/asm/xen/pci.h defines 
> xen_create_msi_irq and xen_destroy_irq as inlines. Having PCI_MSI or 
> AMD_IOMMU 
> set causes drivers/xen/events.c to define these as functions with nontrivial 
> body confilicting with the inlines. 
> 

There's a patch here:
http://lists.xensource.com/archives/html/xen-devel/2009-11/msg00458.html

-- Pasi


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>