From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: domU guest for xcp 0.1.1 Date: Mon, 15 Mar 2010 08:44:48 +0000 Message-ID: <1268642688.8652.2792.camel@localhost.localdomain> References: <29b32d341003120910l5340bc01tcada3ca2adbaf763@mail.gmail.com> <29b32d341003121751s517ea28qbdb78e8cc69243ac@mail.gmail.com> <20100313111857.GS1878@reaktio.net> <29b32d341003130809u49d1edcas234fdca4c3d70ed@mail.gmail.com> <20100313164102.GZ1878@reaktio.net> <29b32d341003131743j6ae271d6of486a3c1a4858513@mail.gmail.com> <112460240.20100314121540@eikelenboom.it> <29b32d341003141329v3c6a73c0y8030cf3c6736634c@mail.gmail.com> <1056770753.20100314215224@eikelenboom.it> <29b32d341003141840x5a55e74sfb2eda56005e4f84@mail.gmail.com> <29b32d341003142030p1fe511d2ke30b8483ff8cc368@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <29b32d341003142030p1fe511d2ke30b8483ff8cc368@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ritu kaur Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2010-03-15 at 03:30 +0000, Ritu kaur wrote: > Just to add, this driver compiles fine in other linux flavors(Debian > Lenny 5.0, Citrix Xenserver...) so it has to do with Xen/stable. > Didn't see anything related to this in xen-devel, inputs appreciated. This is because the pvops kernel is based on a much newer upstream kernel (2.6.31 or 32) than that found in Lenny (2.6.26) or Citrix XenServer (2.6.18/27) and some of the kernel's internal interfaces must have changed. This has nothing to do with Xen per-se but rather compatibility with different Linux kernels. Ian. >=20 > Thanks >=20 > On Sun, Mar 14, 2010 at 6:40 PM, Ritu kaur > wrote: > Hi Pasi, > =20 > I am able to use xen/stable kernel in domU(debian lenny) and > lspci lists the device(i am testing pci passthrough). however, > when I compile my driver in domU I get=20 > =20 > struct net_device has no member named open > struct net_device has no member named stop > struct net_device has no member named hard_start_xmit > ... > =20 > I need to compile my driver in domU and load it in order to > use the nic from domU. Inputs appreciated. > =20 > Thanks=20 > =20 > =20 > =20 > On Sun, Mar 14, 2010 at 1:52 PM, Sander Eikelenboom > wrote: > Hello Ritu, > =20 > I don't have experience with XCP specifically, but > normal compiled pvops-kernels work fine for me with > Debian lenny domU's. > =20 > -- > Sander=20 > =20 > =20 > Sunday, March 14, 2010, 9:29:29 PM, you wrote: > =20 > > Hi Sander, > =20 > > Thanks, I enabled DOM0 and other backend drivers > along with pci frontend in > > .config file. I am able to get it build. However, I > having additional > > questions, inputs appreciated. > =20 > > 1. can this kernel be used in any linux > distribution? I have Debian Lenny as > > DomU? > =20 > > 2. In Debian Lenny /boot/grub/menu.lst, I have > > title Debian GNU/Linux, kernel > 2.6.26-2-686-bigmem > > root (hd0,0) > > kernel /boot/vmlinuz-2.6.26-2-686-bigmem > root=3D/dev/xvda1 ro > > console=3Dhvc0 quiet > > initrd /boot/initrd.img-2.6.26-2-686-bigmem > =20 > > but the kernel image built in arch/i386/boot is > bzImage. Does "make > > modules_install" and "make install" take care of it, > since I am not sure I > > haven't tried it. > =20 > > Basically, my question boils down to > =20 > > 1. Can I use bzImage in debian lenny, > > 2. does make install take care of configuring it > =20 > =20 > > Thanks > =20 > > On Sun, Mar 14, 2010 at 4:15 AM, Sander Eikelenboom > wrote: > =20 > >> Hello Ritu, > >> > >> There are some problems with pci.h, i have also > reported this to Konrad. > >> As a workaround you can enable dom0 support in > these kernels, then they > >> compile fine in my case. > >> > >> -- > >> > >> Sander > >> > >> > >> Sunday, March 14, 2010, 2:43:23 AM, you wrote: > >> > >> > I followed the steps mentioned in wiki to pull > xen code to compile domU > >> > kernel from > >> > >> > 1. xen/master, I get following compilation > errors. I do see in xen-devel > >> > forum someone else has reported similar issue but > no solution yet(patch > >> > provided by Konrad has followup errors) > >> > >> > CC [M] drivers/watchdog/machzwd.o > >> > CC [M] drivers/watchdog/sbc_epx_c3.o > >> > CC [M] drivers/watchdog/softdog.o > >> > CC drivers/xen/grant-table.o > >> > CC drivers/xen/features.o > >> > CC drivers/xen/events.o > >> > drivers/xen/events.c:605: error: redefinition of > =C3=A2=E2=82=AC=CB=9Cxen_destroy_irq=C3=A2=E2=82=AC=E2=84= =A2 > >> > > /root/kernel/linux.2-6.xen/arch/x86/include/asm/xen/p= ci.h:29: error: > >> > previous definition of =C3=A2=E2=82=AC=CB=9Cxen_de= stroy_irq=C3=A2=E2=82=AC=E2=84=A2 was > here > >> > drivers/xen/events.c:637: error: redefinition of > =C3=A2=E2=82=AC=CB=9Cxen_create_msi_irq=C3=A2=E2=82=AC=E2= =84=A2 > >> > > /root/kernel/linux.2-6.xen/arch/x86/include/asm/xen/p= ci.h:25: error: > >> > previous definition of =C3=A2=E2=82=AC=CB=9Cxen_cr= eate_msi_irq=C3=A2=E2=82=AC=E2=84=A2 > was here > >> > make[2]: *** [drivers/xen/events.o] Error 1 > >> > make[1]: *** [drivers/xen] Error 2 > >> > make: *** [drivers] Error 2 > >> > >> > 2. xen/stable, I get following errors > >> > >> > CC drivers/pci/xen-pcifront.o > >> > drivers/pci/xen-pcifront.c:373: error: variable =C3= =A2 > =E2=82=AC=CB=9Cpci_frontend_ops=C3=A2=E2=82=AC=E2=84=A2 > >> has > >> > initializut incomplete type > >> > drivers/pci/xen-pcifront.c:374: error: unknown > field =C3=A2=E2=82=AC=CB=9Cenable_msi=C3=A2=E2=82=AC=E2= =84=A2 > >> > specified in ializer > >> > drivers/pci/xen-pcifront.c:374: warning: excess > elements in struct > >> > initializer > >> > drivers/pci/xen-pcifront.c:374: warning: (near > initialization for > >> > =C3=A2=E2=82=AC=CB=9Cpci_frontend_op)=C3=A2=E2=82=AC= =E2=84=A2 > >> > drivers/pci/xen-pcifront.c:375: error: unknown > field =C3=A2=E2=82=AC=CB=9Cdisable_msi=C3=A2=E2=82=AC=E2= =84=A2 > >> > specified in ializer > >> > drivers/pci/xen-pcifront.c:375: warning: excess > elements in struct > >> > initializer > >> > drivers/pci/xen-pcifront.c:375: warning: (near > initialization for > >> > =C3=A2=E2=82=AC=CB=9Cpci_frontend_op)=C3=A2=E2=82=AC= =E2=84=A2 > >> > drivers/pci/xen-pcifront.c:376: error: unknown > field =C3=A2=E2=82=AC=CB=9Cenable_msix=C3=A2=E2=82=AC=E2= =84=A2 > >> > specified in ializer > >> > drivers/pci/xen-pcifront.c:376: warning: excess > elements in struct > >> > initializer > >> > drivers/pci/xen-pcifront.c:376: warning: (near > initialization for > >> > =C3=A2=E2=82=AC=CB=9Cpci_frontend_op)=C3=A2=E2=82=AC= =E2=84=A2 > >> > drivers/pci/xen-pcifront.c:377: error: unknown > field =C3=A2=E2=82=AC=CB=9Cdisable_msix=C3=A2=E2=82=AC=E2= =84=A2 > >> > specified intializer > >> > drivers/pci/xen-pcifront.c:377: warning: excess > elements in struct > >> > initializer > >> > drivers/pci/xen-pcifront.c:377: warning: (near > initialization for > >> > =C3=A2=E2=82=AC=CB=9Cpci_frontend_op)=C3=A2=E2=82=AC= =E2=84=A2 > >> > drivers/pci/xen-pcifront.c: In function =C3=A2 > =E2=82=AC=CB=9Cpci_frontend_registrar=C3=A2=E2=82=AC=E2= =84=A2: > >> > drivers/pci/xen-pcifront.c:383: error: =C3=A2 > =E2=82=AC=CB=9Cxen_pci_frontend=C3=A2=E2=82=AC=E2=84=A2= undeclared > >> > (first use his function) > >> > drivers/pci/xen-pcifront.c:383: error: (Each > undeclared identifier is > >> > reported only once > >> > drivers/pci/xen-pcifront.c:383: error: for each > function it appears in.) > >> > make[2]: *** [drivers/pci/xen-pcifront.o] Error 1 > >> > make[1]: *** [drivers/pci] Error 2 > >> > make: *** [drivers] Error 2 > >> > >> > Kindly let me know how to proceed on this. > >> > >> > Thanks > >> > >> > >> > >> -- > >> Best regards, > >> Sander > mailto:linux@eikelenboom.it > >> > >> > =20 > =20 > =20 > =20 > --=20 > =20 > Best regards, > Sander > mailto:linux@eikelenboom.it > =20 > =20 > =20 > =20 >=20