Hi Keir, Please pull the ia64 trees: http://xenbits.xensource.com/ext/ia64/xen-unstable.hg http://xenbits.xensource.com/ext/ia64/linux-2.6.18-xen.hg This includes updates of acpi related files, save/restore update for pv_ops and bug fixes from Akio, and mini-os update from Samuel Thibault. Thanks, -- yamahata _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Isaku Yamahata
2008-Jul-03 02:07 UTC
Re: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable
added To: Shan Haitao <Haitao.shan@intel.com>, 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@lists.xensource.com > http://lists.xensource.com/xen-ia64-devel >-- yamahata _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@lists.xensource.com http://lists.xensource.com/xen-ia64-devel
Shan, Haitao
2008-Jul-03 02:52 UTC
[Xen-devel] RE: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable
Hi, Isaku, Can the attached patch solve your header problem? Thanks! Best Regards Shan Haitao -----Original Message----- From: Isaku Yamahata [mailto:yamahata@valinux.co.jp] Sent: 2008年7月3日 10:07 To: Guilherme Chehab; Shan, Haitao Cc: xen-ia64-devel@lists.xensource.com; xen-devel@lists.xensource.com Subject: Re: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable added To: Shan Haitao <Haitao.shan@intel.com>, 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@lists.xensource.com > http://lists.xensource.com/xen-ia64-devel >-- yamahata _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Isaku Yamahata
2008-Jul-03 03:53 UTC
Re: [Xen-devel] RE: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable
Hi Haitao. Thanks for quick reply. Guilherme, could you try the patch? On Thu, Jul 03, 2008 at 10:52:56AM +0800, Shan, Haitao wrote:> Hi, Isaku, > > Can the attached patch solve your header problem? > Thanks! > > Best Regards > Shan Haitao > > -----Original Message----- > From: Isaku Yamahata [mailto:yamahata@valinux.co.jp] > Sent: 2008年7月3日 10:07 > To: Guilherme Chehab; Shan, Haitao > Cc: xen-ia64-devel@lists.xensource.com; xen-devel@lists.xensource.com > Subject: Re: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable > > added To: Shan Haitao <Haitao.shan@intel.com>, 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@lists.xensource.com > > http://lists.xensource.com/xen-ia64-devel > > >> _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel-- yamahata _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Guilherme Chehab
2008-Jul-04 15:00 UTC
RE: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable
Yes, it was not an ia64 problem. Patching up with the MSI defines solved the compilation problem. The includes in /usr/include/linux were from kernel 2.6.5 (version.h) -- default in SLES9 with sp2... Very old stuff indeed. Those defines were not included on 2.6.18-xen either, I checked other machine that has more a recent kernel version (2.6.23) and the defines exists on this version... thx for your support. Guilherme --- On Wed, 7/2/08, Shan, Haitao <haitao.shan@intel.com> wrote:> From: Shan, Haitao <haitao.shan@intel.com> > Subject: RE: [Xen-ia64-devel] MSI-X problems compiling Xen-ia64-unstable > To: "Isaku Yamahata" <yamahata@valinux.co.jp>, "Guilherme Chehab" <guilherme_chehab@yahoo.com> > Cc: xen-ia64-devel@lists.xensource.com, xen-devel@lists.xensource.com > Date: Wednesday, July 2, 2008, 11:52 PM > Hi, Isaku, > > Can the attached patch solve your header problem? > Thanks! > > Best Regards > Shan Haitao > > -----Original Message----- > From: Isaku Yamahata [mailto:yamahata@valinux.co.jp] > Sent: 2008年7月3日 10:07 > To: Guilherme Chehab; Shan, Haitao > Cc: xen-ia64-devel@lists.xensource.com; > xen-devel@lists.xensource.com > Subject: Re: [Xen-ia64-devel] MSI-X problems compiling > Xen-ia64-unstable > > added To: Shan Haitao <Haitao.shan@intel.com>, 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@lists.xensource.com > > http://lists.xensource.com/xen-ia64-devel > > > > -- > yamahata_______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@lists.xensource.com http://lists.xensource.com/xen-ia64-devel
Maybe Matching Threads
- [Patch] Add NMI Injection and Pending Support in VMX
- [PATCH] Dom0-kernel: Fix buggy mask_base in saving/restoring MSI-X table during S3
- [PATCH] Add MSI-X support to HVM domain
- [PATCH 1/4] CPU online/offline support in Xen
- [PATCH] Enable Core 2 Duo Performance Counters in HVM guest