RE: [HOWTO] oM kernel port to xen

"Moshe Bar" <moshe-ay74M1d3r6RWk0Htik3J/[email protected]>
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
Fantastic! Many thanks

Moshe 

-----Original Message-----
From: openmosix-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openmosix-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Vincent
Hanquez
Sent: Tuesday, January 24, 2006 6:05 PM
To: openmosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Openmosix-devel] [HOWTO] oM kernel port to xen

Hi,

Here's a quick howto to have a oM domU kernel on latest xen (2.6.15).
it's not totally automatic, but it does 99% of the job.

you need to have the following program: patchtool [1], svn and mercurial.

[1] http://tab.snarc.org/download/patchtool/patchtool-0.7.tar.bz2

===============================

hg clone http://xenbits.xensource.com/linux-2.6-xen.hg
svn co svn://openmosix.snarc.org/om/kernel-2.6/trunk linux-2.6-om wget
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.15.tar.bz2

tar xvjf linux-2.6.15.tar.bz2

cd linux-2.6-om
sh ./scripts/unsparse diff ../linux-2.6.15 ../linux-2.6-xen.hg

cd ../linux-2.6-xen.hg

hg diff > patch-om

for f in `patchtool list patch-om | sed -e 's;^b/;;'` do
        dir=`dirname $f`
        fname=`basename $f`

        xname=`echo $fname | sed -e 's/\.\([a-zA-Z]*\)$/-xen.\1/'`
        file="$dir/$fname"
        xfile="$dir/$xname"

        if [ "$xfile" == "$file" ]; then
                continue
        fi
        if [ -f $xfile ]; then
                echo "patching $xfile .."
                patchtool get patch-om $f > dopatch
                patchtool modify dopatch --move '.S' '-xen.S' --move '.c'
'-xen.c' | patch -p1
                rm dopatch
        fi
done

==================================

now you need to fixup the few files that patch fail to do.
"find -name '*.rej'" will give you the list of files.

Cheers,
--
Vincent Hanquez


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.