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-ia64-devel

Re: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable

To: Guilherme Chehab <guilherme_chehab@xxxxxxxxx>, Shan Haitao <Haitao.shan@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 3 Jul 2008 11:07:28 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 Jul 2008 19:07:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <846661.7028.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080702030339.GB9677%yamahata@xxxxxxxxxxxxx> <846661.7028.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
added To: Shan Haitao <Haitao.shan@xxxxxxxxx>, Cc: xen-devel
I think this is not ia64 specific, but generic issue.

It looks like msi-x related definitions are missing.
Greping under /usr/include tells me the followings.
The c/s 17605:4afc6023e8ec seems to assume that those definitions
are defined in user header files.
Probably updating those header files might fix your issue.
Or are you using non-Linux OS?

I suppose ioemu shouldn't depend on linux environment as some people
compiles on non-Linux environment.


thanks,

$ grep -r MSIX /usr/include 
/usr/include/linux/pci_regs.h:#define  PCI_CAP_ID_MSIX  0x11    /* MSI-X */
/usr/include/linux/pci_regs.h:/* MSI-X registers (these are at offset 
PCI_MSIX_FLAGS) */
/usr/include/linux/pci_regs.h:#define PCI_MSIX_FLAGS            2
/usr/include/linux/pci_regs.h:#define  PCI_MSIX_FLAGS_QSIZE     0x7FF
/usr/include/linux/pci_regs.h:#define  PCI_MSIX_FLAGS_ENABLE    (1 << 15)
/usr/include/linux/pci_regs.h:#define  PCI_MSIX_FLAGS_MASKALL   (1 << 14)
/usr/include/linux/pci_regs.h:#define PCI_MSIX_FLAGS_BIRMASK    (7 << 0)
/usr/include/linux/pci_regs.h:#define PCI_MSIX_FLAGS_BITMASK    (1 << 0)

$ dpkg -S /usr/include/linux/pci_regs.h
linux-libc-dev: /usr/include/linux/pci_regs.h


On Wed, Jul 02, 2008 at 11:45:05AM -0700, Guilherme Chehab wrote:
> While trying to compile changeset 17892 I got some errors complaining about 
> missing definitions for tool/ioemu.
> 
> Those errors are happening regardless of the PCI_MSI configuration on kernel 
> 
> Any clues ?
> 
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pass-through.c: In 
> function `register_real_device':
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pass-through.c:560:
>  error: `PCI_CAP_ID_MSIX' undeclared (first use in this function)
> 
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c: In 
> function `pt_msix_init':
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:674: 
> error: `PCI_CAP_ID_MSIX' undeclared (first use in this function)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:674: 
> error: (Each undeclared identifier is reported only once
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:674: 
> error: for each function it appears in.)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:702: 
> error: `PCI_MSIX_ENABLE' undeclared (first use in this function)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:707: 
> error: `PCI_MSIX_MASK' undeclared (first use in this function)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:710: 
> error: `PCI_MSIX_TABLE' undeclared (first use in this function)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:711: 
> error: `PCI_MSIX_BIR' undeclared (first use in this function)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c: In 
> function `pt_msix_enable':
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:740: 
> error: `PCI_MSIX_ENABLE' undeclared (first use in this function)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c: In 
> function `pt_msix_func_mask':
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:760: 
> error: `PCI_MSIX_MASK' undeclared (first use in this function)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c: In 
> function `pt_msix_control_update':
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:773: 
> error: `PCI_MSIX_ENABLE' undeclared (first use in this function)
> /usr/local/src/xen-unstable/xen-unstable.hg/tools/ioemu/hw/pt-msi.c:773: 
> error: `PCI_MSIX_MASK' undeclared (first use in this function)
> 
> 
> 
> 
>       
> 
> _______________________________________________
> Xen-ia64-devel mailing list
> Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-ia64-devel
> 

-- 
yamahata

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