From: Boris Derzhavets Subject: Attempt to load 2.6.29-rc3 with pv_ops suppot for Dom0 under Xen 3.3.1 Hypervisor Date: Mon, 2 Feb 2009 06:04:05 -0800 (PST) Message-ID: <149575.21069.qm@web56103.mail.re3.yahoo.com> References: <990961.31739.qm@web56105.mail.re3.yahoo.com> Reply-To: bderzhavets@yahoo.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0272199936==" Return-path: In-Reply-To: <990961.31739.qm@web56105.mail.re3.yahoo.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: Ian Campbell Cc: Todd Deshane , Jeremy Fitzhardinge , xen-devel@lists.xensource.com, Andrew Lyon List-Id: xen-devel@lists.xenproject.org --===============0272199936== Content-Type: multipart/alternative; boundary="0-769231226-1233583445=:21069" --0-769231226-1233583445=:21069 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Kernel compilation:- cd linux-2.6 hg qpop -a hg -R .hg/patches pull -u hg qpush -a make menuconfig # per Wiki make make modules_install install ls /lib/modules depmod 2.6.29-rc3-tip mkinitramfs -o /boot/initrd-2.6.29-rc3-tip.img 2.6.29-rc3-tip vi /boot/grub/menu.lst title Xen 3.3.1 / Ubuntu 8.10, kernel 2.6.29-tip (added to test) uuid=A0=A0 c841c5e9-8eb2-4e47-b36e-6796e5ce6ce6 kernel /boot/xen-3.3.1.gz module /boot/vmlinuz-2.6.29-rc3-tip root=3D/dev/sdb1 ro console=3Dtty0 module /boot/initrd-2.6.29-rc3-tip.img title Xen 3.3.1 / Ubuntu 8.10, kernel 2.6.27-xen (currently working) uuid=A0=A0 c841c5e9-8eb2-4e47-b36e-6796e5ce6ce6 kernel /boot/xen-3.3.gz module /boot/vmlinuz-2.6.27.5 root=3D/dev/sdb1 ro console=3Dtty0 module /boot/initrd-2.6.27.5.img Loading=A0 with first entry:- Loading Dom0 ************************** elf_init: not an ELF binary Panic on CPU0 Couldn't set up Dom0 guest OS ************************** Reboot in 5 sec. --- On Mon, 2/2/09, Boris Derzhavets wrote: From: Boris Derzhavets Subject: Re: [Xen-devel] Attempt to compile 2.6.29-rc3 with pv_ops suppot f= or Dom0 To: "Ian Campbell" Cc: "Todd Deshane" , "Jeremy Fitzhardinge" , xen-devel@lists.xensource.com, "Andrew Lyon" Date: Monday, February 2, 2009, 8:22 AM Build is currently running. However, modules bellow gets compiled OK :- root@ServerUbuntu:/usr/src/linux-2.6/drivers/xen/netback# ls -l *.o -rw-r--r-- 1 root src 727940 2009-02-02 08:15 built-in.o -rw-r--r-- 1 root src 195560 2009-02-02 08:15 interface.o -rw-r--r-- 1 root src 350464 2009-02-02 08:15 netback.o -rw-r--r-- 1 root src 727940 2009-02-02 08:15 netbk.o -rw-r--r-- 1 root src 188416 2009-02-02 08:15 xenbus.o --- On Mon, 2/2/09, Ian Campbell wrote: From: Ian Campbell Subject: Re: [Xen-devel] Attempt to compile 2.6.29-rc3 with pv_ops suppot f= or Dom0 To: bderzhavets@yahoo.com Cc: "Jeremy Fitzhardinge" , "Todd Deshane" , xen-devel@lists.xensource.com, "Andrew Lyon" Date: Monday, February 2, 2009, 7:42 AM I pushed a fix this morning, could you try it again please ? Ian. On Mon, 2009-02-02 at 04:32 -0800, Boris Derzhavets wrote: > That's right i've tried to compile on 64-bit Ubuntu 8.10 Server. >=20 > root@ServerUbuntu:~# gcc -v > Using built-in specs. > Target: x86_64-linux-gnu > Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu > 4.3.2-1ubuntu11' > --with-bugurl=3Dfile:///usr/share/doc/gcc-4.3/README.Bugs > --enable-languages=3Dc,c++,fortran,objc,obj-c++ --prefix=3D/usr > --enable-shared --with-system-zlib --libexecdir=3D/usr/lib > --without-included-gettext --enable-threads=3Dposix --enable-nls > --with-gxx-include-dir=3D/usr/include/c++/4.3 --program-suffix=3D-4.3 > --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-objc-gc > --enable-mpfr --enable-checking=3Drelease --build=3Dx86_64-linux-gnu > --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu > Thread model: posix > gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)=20 >=20 > Boris > --- On Mon, 2/2/09, Ian Campbell wrote: > From: Ian Campbell > Subject: Re: [Xen-devel] Attempt to compile 2.6.29-rc3 with > pv_ops suppot for Dom0 > To: "Jeremy Fitzhardinge" > Cc: "Todd Deshane" , > bderzhavets@yahoo.com, xen-devel@lists.xensource.com, "Andrew > Lyon" > Date: Monday, February 2, 2009, 4:53 AM > =20 > On Sun, 2009-02-01 at 17:14 -0800, Jeremy Fitzhardinge wrote: > =20 > Boris Derzhavets wrote: > > > > > > Follow http://wiki.xensource.com/xenwiki/XenParavirtOps on Ubuntu > 8.10=20 > > > Server > > > > > > To get a working tree: > > > > > > 1. hg clone http://www.kernel.org/hg/linux-2.6 > > > 2. cd linux-2.6/.hg > > > 3. hg clone > http://xenbits.xensource.com/paravirt_ops/patches.hg=20 > > > patches > > > 4. cd .. > > > 5. ln -s .hg/patches . # for convenience > > > 6. hg update `cat patches/KERNEL_VERSION` > > > 7. hg qpush -a > > > > > > Get the recent patch,in particular :- > > > > > > root@ServerUbuntu:/usr/src/linux-2.6/.hg/patches# ls -l=20 > > > xen-netback-porting.patch > > > -rw-r--r-- 1 root src 28228 2009-01-31 08:18 > xen-netback-porting.patch > > > > >=20 > > Netback support was just added, and it didn't compile for me last time > I=20 > > tried. I think Ian has a fix, but I'm not sure if he's committed > it yet. > =20 > It was compiling and working for me on 32 bit. I hadn't tried 64 bit > (which I guess you both are using). netback.c:207 is "headlen =3D > nskb->end - nskb->data" and the type of ->end is sk_buff_data_t > which > differs with 32 vs 64 > bitness. Will investigate. > =20 > =20 > Ian. > =20 > =20 =20 > =20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-769231226-1233583445=:21069 Content-Type: text/html; charset=us-ascii
Kernel compilation:-

cd linux-2.6
hg qpop -a
hg -R .hg/patches pull -u
hg qpush -a
make menuconfig # per Wiki
make
make modules_install install
ls /lib/modules
depmod 2.6.29-rc3-tip
mkinitramfs -o /boot/initrd-2.6.29-rc3-tip.img 2.6.29-rc3-tip


vi /boot/grub/menu.lst

title Xen 3.3.1 / Ubuntu 8.10, kernel 2.6.29-tip (added to test)
uuid   c841c5e9-8eb2-4e47-b36e-6796e5ce6ce6
kernel /boot/xen-3.3.1.gz
module /boot/vmlinuz-2.6.29-rc3-tip root=/dev/sdb1 ro console=tty0
module /boot/initrd-2.6.29-rc3-tip.img

title Xen 3.3.1 / Ubuntu 8.10, kernel 2.6.27-xen (currently working)
uuid   c841c5e9-8eb2-4e47-b36e-679 6e5ce6ce6
kernel /boot/xen-3.3.gz
module /boot/vmlinuz-2.6.27.5 root=/dev/sdb1 ro console=tty0
module /boot/initrd-2.6.27.5.img


Loading  with first entry:-

Loading Dom0
**************************
elf_init: not an ELF binary
Panic on CPU0
Couldn't set up Dom0 guest OS
**************************
Reboot in 5 sec.

--- On Mon, 2/2/09, Boris Derzhavets <bderzhavets@yahoo.com> wrote:
From: Boris Derzhavets <bderzhavets@yahoo.com>
Subject: Re: [Xen-devel] Attempt to compile 2.6.29-rc3 with pv_ops suppot for Dom0
To: "Ian Campbell" <Ian.Campbell@citrix.com>
Cc: "Todd Deshane" <deshantm@gmail.com>, "Jeremy Fitzhardinge" <jeremy@goop.org>, xen-devel@lists.xensource.com, "Andrew Lyon" <andrew.lyon@gmail.com>
Date: Monday, February 2, 2009, 8:22 AM< br>
Build is currently running. However, modules bellow gets compiled OK :-
root@ServerUbuntu:/usr/src/linux-2.6/drivers/xen/netback# ls -l *.o
-rw-r--r-- 1 root src 727940 2009-02-02 08:15 built-in.o
-rw-r--r-- 1 root src 195560 2009-02-02 08:15 interface.o
-rw-r--r-- 1 root src 350464 2009-02-02 08:15 netback.o
-rw-r--r-- 1 root src 727940 2009-02-02 08:15 netbk.o
-rw-r--r-- 1 root src 188416 2009-02-02 08:15 xenbus.o


--- On Mon, 2/2/09, Ian Campbell <Ian.Campbell@citrix.com> wrote:
From: Ian Cam pbell <Ian.Campbell@citrix.com>
Subject: Re: [Xen-devel] Attempt to compile 2.6.29-rc3 with pv_ops suppot for Dom0
To: bderzhavets@yahoo.com
Cc: "Jeremy Fitzhardinge" <jeremy@goop.org>, "Todd Deshane" <deshantm@gmail.com>, xen-devel@lists.xensource.com, "Andrew Lyon" <andrew.lyon@gmail.com>
Date: Monday, February 2, 2009, 7:42 AM

I pushed a fix this morning, could you try it again please ?

Ian.

On Mon, 2009-02-02 at 04:32 -0800, Boris Derzhavets wrote:
> That's right i've tried to compile on 64-bit Ubuntu 8.10 Server.
>
> root@ServerUbuntu:~# gcc -v
> Using built-in specs.
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
> 4.3.2-1ubuntu11'
> --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --enable-shared --with-system-zlib --libexecdir=/usr/lib
> --without-included-g ettext --enable-threads=posix --enable-nls
> --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
> --enable-clocale=gnu
--enable-libstdcxx-debug --enable-objc-gc
> --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu
> --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
>
> Boris
> --- On Mon, 2/2/09, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> From: Ian Campbell <Ian.Campbell@citrix.com>
> Subject: Re: [Xen-devel] Attempt to compile 2.6.29-rc3 with
> pv_ops suppot for Dom0
> To: "Jeremy Fitzhardinge" <jeremy@goop.org>
> Cc: "Todd Deshane" <deshantm@gmail.com>,
> bderzhavets@yahoo.com, xen-devel@lists.xensource.com, "Andrew
> Lyon" <andrew.lyon@gmail.com>
> Date: Monday, February 2, 2009, 4:53 AM
>
> On Sun, 2009-02-01 at 17:14 -0800, Jeremy Fitzhardinge wrote:
>
> Boris Derzhavets wrote:
> > >
> > > Follow http://wiki.xensource.com/xenwiki/XenParavirtOps
on Ubuntu
> 8.10
> > > Server
> > >
> > > To get a working tree:
> > >
> > > 1. hg clone http://www.kernel.org/hg/linux-2.6
> > > 2. cd linux-2.6/.hg
> > > 3. hg clone
> http://xenbits.xensource.com/paravirt_ops/patches.hg
> > > patches
> > > 4. cd ..
> > > 5. ln -s .hg/patches . # for convenience
> > > 6. hg update `cat patches/KERNEL_VERSION`
> > > 7. hg qpush -a
> > >
> > > Get the recent patch,in particular :-
> > >
> > >
root@ServerUbuntu:/usr/src/linux-2.6/.hg/patches# ls -l
> > > xen-netback-porting.patch
> > > -rw-r--r-- 1 root src 28228 2009-01-31 08:18
> xen-netback-porting.patch
> > >
> >
> > Netback support was just added, and it didn't compile for
me last time
> I
> > tried. I think Ian has a fix, but I'm not sure if
he's committed
> it yet.
>
> It was compiling and working for me on 32 bit. I hadn't tried
64 bit
> (which I guess you both are using). netback.c:207 is
"headlen =
> nskb->end - nskb->data" and the type of ->end is
sk_buff_data_t
> whic h
> differs with 32 vs 64
> bitness. Will investigate.
>
>
> Ian.
>
>

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


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

--0-769231226-1233583445=:21069-- --===============0272199936== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0272199936==--