From: Boris Derzhavets Subject: Re: Attempt to compile 2.6.29-rc3 with pv_ops suppot for Dom0 Date: Mon, 2 Feb 2009 04:32:02 -0800 (PST) Message-ID: <719166.3618.qm@web56105.mail.re3.yahoo.com> References: <1233568407.9970.53.camel@zakaz.uk.xensource.com> Reply-To: bderzhavets@yahoo.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0954937441==" Return-path: In-Reply-To: <1233568407.9970.53.camel@zakaz.uk.xensource.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: Jeremy Fitzhardinge , Ian Campbell Cc: Todd Deshane , xen-devel@lists.xensource.com, Andrew Lyon List-Id: xen-devel@lists.xenproject.org --===============0954937441== Content-Type: multipart/alternative; boundary="0-926848363-1233577922=:3618" --0-926848363-1233577922=:3618 Content-Type: text/plain; charset=us-ascii 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-gettext --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 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 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 which differs with 32 vs 64 bitness. Will investigate. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --0-926848363-1233577922=:3618 Content-Type: text/html; charset=us-ascii
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-gettext --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 worki ng 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
which
differs with 32 vs 64 bitness. Will investigate.


Ian.



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

--0-926848363-1233577922=:3618-- --===============0954937441== 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 --===============0954937441==--