From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ritu kaur Subject: Re: domU guest for xcp 0.1.1 Date: Fri, 9 Apr 2010 08:53:21 -0700 Message-ID: References: <20100331063035.GI1878@reaktio.net> <20100331143913.GL1878@reaktio.net> <20100405170013.GA16921@phenom.dumpdata.com> <20100406060337.GQ1878@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1740979927==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1740979927== Content-Type: multipart/alternative; boundary=00032556537270c2b70483cfcbee --00032556537270c2b70483cfcbee Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Our technical guru/consultant suggested to check if backporting fixes(changes for shared interrupts) into 2.6.27 XCP source is feasible? i.= e XCP 2.6.27 source + fix(es) for shared interrupts =3D pci-passthrough work seamlessly If it is possible do let me know and pointer to the changes would be helpfu= l as well. Thanks On Tue, Apr 6, 2010 at 6:31 AM, Ritu kaur wrote: > Thanks Pasi. When will new xcp with 2.6.32 kernel be released? > > Replies inline... > > On Mon, Apr 5, 2010 at 11:03 PM, Pasi K=E4rkk=E4inen wrote= : > >> On Mon, Apr 05, 2010 at 09:00:59PM -0700, Ritu kaur wrote: >> > Thanks Konrad. >> > >> > I downloaded new code and still doesn't work(albeit different >> problem). I >> > will enumerate them below >> > >> > (Please note 1, 2 and 3 are seen with old xen/next as well). What >> seemed >> > simple testing of pci passthrough via config changes doesn't seem t= o >> be >> > the case. >> > >> > 1. mkinitrd doesn't work in xcp ddk. I get below errors >> > >> > mkinitrd -f ./initrd-2.6.32.ing 2.6.32 >> > modinfo: could not find module ide-disk >> > No module ide-disk found for kernel 2.6.32, aborting. >> > >> >> Did you install the modules after you compiled the kernel? >> Did you run "depmod -a " ? >> >> > yes I have done it and still the same problem. > > >> > I copied ide-disk.ko from >> > >> /lib/modules/2.6.27.42-0.1.1.xs0.1.1.737.1065xen/kernel/drivers/ide/ide= -disk.ko(just >> > to check what other errors arise from mkinitrd in xcp ddk), I get >> > >> >> You can't modules from a different kernel version!!! >> >> > I understand that. Just want to check what additional problems arise. > > >> > mkinitrd -f ./initrd-2.6.32.ing 2.6.32 >> > modinfo: could not find module ide-disk >> > modinfo: could not find module dm-mem-cache >> > modinfo: could not find module dm-message >> > modinfo: could not find module dm-raid45 >> > >> >> Looks like you didn't install the modules from the new kernel. >> > > I have installed modules via "make modules_install" and depmod as well. > > >> >> > 2. Looked into .config I have(generated via make menuconfig) and >> there >> > isn't anything on IDEDISK. I cross checked config file that comes >> with xcp >> > source code it has >> > ... >> > CONFIG_BLK_DEV_IDEDISK=3Dm >> > CONFIG_IDEDISK_MULTI_MODE=3Dy >> > ... >> > >> >> XCP default kernel is 2.6.27. You're trying to use 2.6.32. >> There might have been changes between the kernel versions. >> >> > I copied above configs into my .config and when I run make(it asks >> some >> > IDE config related questions ) and these configs are deleted after >> that. I >> > have tried all options "y/n/m" to the questions and same result. >> > >> > 3. I downloaded .config file from >> > [1] >> http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.32.10-pvops-do= m0-xen-stable-x86_32 >> > >> > there isn't IDEDISK config in it either and in addition "make >> tar-pkg" >> > doesn't work with this .config file. I get following errors >> > >> >> If ide-disk module is not used/required anymore in 2.6.32, then you shou= ld >> remove it from /etc/modprobe.conf so that mkinitrd doesn't try to includ= e >> it! >> >> (replace it with the proper new module name). >> >> > DEPMOD 2.6.32 >> > >> > /bin/sh: line 1: 3341 Killed /sbin/depmod -ae -F >> > System.map -b /root/kernel/linux-2.6.32/tar-install 2.6.32 >> > make[3]: *** [_modinst_post] Error 137 >> > make[2]: *** [sub-make] Error 2 >> > make[1]: *** [tar-pkg] Error 2 >> > make: *** [tar-pkg] Error 2 >> > >> > 4. I tried with the vmlinuz and initrd image built from "2" above(I >> know >> > initrd image is not correct, I just wanted to try) and I get >> > >> > [0.000000] ERROR: Unable to locate IOAPIC for GSI 2 >> > [0.000000] ERROR: Unable to locate IOAPIC for GSI 9 >> > [0.000000] ERROR: Unable to locate IOAPIC for GSI 2 >> > [0.000000] ERROR: Unable to locate IOAPIC for GSI 9 >> > [0.493572] registering netback >> > Red Hat nash version 5.1.19.6 starting >> > einsmod: error inserting 'lib/ide-disk.ko': -1 Invalid module forma= t >> > >> >> "Invalid module format" means it's from a different kernel and cannot be >> used with this kernel. >> >> > indmos: error inserting '/lib/dm-region-hash.ko': -1 File Exists >> > mount: could not fine filesystem '/dev/root' >> > setuproot: moving /dev failed: No such file or directory >> > setuproot: error mounting /proc: No such file or directory >> > setuproot: error mounting /sys: No such file or directory >> > switchroot: mount failed: No such file or directory >> > [0.905987] Kernel panic - not syncing: Attempted to kill init! >> > >> > Let me know how to proceed on this. >> > >> >> Install for example Fedora 12, or any other distro that has 2.6.32 kerne= l >> as a default, and check which modules are used for your hardware, >> then replace "ide-disk" in modprobe.conf with the actual module. >> > > Will look into it. > > Thanks > >> >> -- Pasi >> >> >> > Thanks >> > >> > On Mon, Apr 5, 2010 at 10:00 AM, Konrad Rzeszutek Wilk >> > <[2]konrad.wilk@oracle.com> wrote: >> > >> > On Mon, Apr 05, 2010 at 07:10:22AM -0700, Ritu kaur wrote: >> > > Hello, >> > > >> > > Any inputs folks on xen debugs provided? dom0 crashes when >> xen/next >> > kernel >> > >> > What you are hitting should have been fixed a week ago. Are you u= p >> to >> > the latest in xen/next? Did you do 'git pull' ? Do you see this a= s >> the >> > latest when you do 'git log | head': >> > >> > git log | head -5 >> > commit 900f6d725874ca97c21cdc5a2c4e05bd62db4e86 >> > Merge: f2530fa 89689b1 >> > Author: Jeremy Fitzhardinge <[3]jeremy.fitzhardinge@citrix.com> >> > Date: Thu Apr 1 14:24:30 2010 -0700 >> > >> > References >> > >> > Visible links >> > 1. >> http://pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.32.10-pvops-do= m0-xen-stable-x86_32 >> > 2. mailto:konrad.wilk@oracle.com >> > 3. mailto:jeremy.fitzhardinge@citrix.com >> >> > _______________________________________________ >> > Xen-devel mailing list >> > Xen-devel@lists.xensource.com >> > http://lists.xensource.com/xen-devel >> >> > --00032556537270c2b70483cfcbee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Our technical guru/consultant suggested to check if backporting fixes(chang= es for shared interrupts) into 2.6.27 XCP source is feasible? i.e

X= CP 2.6.27 source + fix(es) for shared interrupts =3D pci-passthrough work s= eamlessly

If it is possible do let me know and pointer to the changes would be he= lpful as well.

Thanks

On Tue, Apr = 6, 2010 at 6:31 AM, Ritu kaur <ritu.kaur.us@gmail.com> wrote:
Thanks Pasi. When= will new xcp with 2.6.32 kernel be released?

Replies inline...
<= br>
On Mon, Apr 5, 2010 at 11:03 P= M, Pasi K=E4rkk=E4inen <pasik@iki.fi> wrote:
On Mon, Apr = 05, 2010 at 09:00:59PM -0700, Ritu kaur wrote:
> =A0 =A0Thanks Konrad.
>
> =A0 =A0I downloaded new code and still doesn't work(albeit differe= nt problem). I
> =A0 =A0will enumerate them below
>
> =A0 =A0(Please note 1, 2 and 3 are seen with old xen/next as well). Wh= at seemed
> =A0 =A0simple testing of pci passthrough via config changes doesn'= t seem to be
> =A0 =A0the case.
>
> =A0 =A01. mkinitrd doesn't work in xcp ddk. I get below errors
>
> =A0 =A0mkinitrd -f ./initrd-2.6.32.ing 2.6.32
> =A0 =A0modinfo: could not find module ide-disk
> =A0 =A0No module ide-disk found for kernel 2.6.32, aborting.
>

Did you install the modules after you compiled the kernel?
Did you run "depmod -a <kernelversion>" ?


yes I have done it and still the same= problem.
=A0
> =A0 =A0I copied ide-disk.ko from
> =A0 =A0/lib/modules/2.6.27.42-0.1.1.xs0.1.1.737.1065xen/kernel/drivers= /ide/ide-disk.ko(just
> =A0 =A0to check what other errors arise from mkinitrd in xcp ddk), I g= et
>

You can't modules from a different kernel version!!!


I understand that. Just want to check= what additional problems arise.
=A0
> =A0 =A0mkinitrd -f ./initrd-2.6.32.ing 2.6.32
> =A0 =A0modinfo: could not find module ide-disk
> =A0 =A0modinfo: could not find module dm-mem-cache
> =A0 =A0modinfo: could not find module dm-message
> =A0 =A0modinfo: could not find module dm-raid45
>

Looks like you didn't install the modules from the new kerne= l.

I have installed modules via "= make modules_install" and depmod as well.
=A0

> =A0 =A02. Looked into .config I have(generated via make men= uconfig) and there
> =A0 =A0isn't anything on IDEDISK. I cross checked config file that= comes with xcp
> =A0 =A0source code it has
> =A0 =A0...
> =A0 =A0CONFIG_BLK_DEV_IDEDISK=3Dm
> =A0 =A0CONFIG_IDEDISK_MULTI_MODE=3Dy
> =A0 =A0...
>

XCP default kernel is 2.6.27. You're trying to use 2.6.32. There might have been changes between the kernel versions.

> =A0 =A0I copied above configs into my .config and when I ru= n make(it asks some
> =A0 =A0IDE config related questions ) and these configs are deleted af= ter that. I
> =A0 =A0have tried all options "y/n/m" to the questions and s= ame result.
>
> =A0 =A03. I downloaded .config file from
> =A0 =A0[1]http:/= /pasik.reaktio.net/xen/pv_ops-dom0-debug/config-2.6.32.10-pvops-dom0-xen-st= able-x86_32
>
> =A0 =A0there isn't IDEDISK config in it either and in addition &qu= ot;make tar-pkg"
> =A0 =A0doesn't work with this .config file. I get following errors=
>

If ide-disk module is not used/required anymore in 2.6.32, then = you should
remove it from /etc/modprobe.conf so that mkinitrd doesn't try to inclu= de it!

(replace it with the proper new module name).

> =A0 =A0DEPMOD =A02.6.32
>
> =A0 =A0/bin/sh: line 1: =A03341 Killed =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0/sbin/depmod -ae -F
> =A0 =A0System.map -b /root/kernel/linux-2.6.32/tar-install 2.6.32
> =A0 =A0make[3]: *** [_modinst_post] Error 137
> =A0 =A0make[2]: *** [sub-make] Error 2
> =A0 =A0make[1]: *** [tar-pkg] Error 2
> =A0 =A0make: *** [tar-pkg] Error 2
>
> =A0 =A04. I tried with the vmlinuz and initrd image built from "2= " above(I know
> =A0 =A0initrd image is not correct, I just wanted to try) and I get >
> =A0 =A0[0.000000] ERROR: Unable to locate IOAPIC for GSI 2
> =A0 =A0[0.000000] ERROR: Unable to locate IOAPIC for GSI 9
> =A0 =A0[0.000000] ERROR: Unable to locate IOAPIC for GSI 2
> =A0 =A0[0.000000] ERROR: Unable to locate IOAPIC for GSI 9
> =A0 =A0[0.493572] registering netback
> =A0 =A0Red Hat nash version 5.1.19.6 starting
> =A0 =A0einsmod: error inserting 'lib/ide-disk.ko': -1 Invalid = module format
>

"Invalid module format" means it's from a differen= t kernel and cannot be
used with this kernel.

> =A0 =A0indmos: error inserting '/lib/dm-region-hash.ko&= #39;: -1 File Exists
> =A0 =A0mount: could not fine filesystem '/dev/root'
> =A0 =A0setuproot: moving /dev failed: No such file or directory
> =A0 =A0setuproot: error mounting /proc: No such file or directory
> =A0 =A0setuproot: error mounting /sys: No such file or directory
> =A0 =A0switchroot: mount failed: No such file or directory
> =A0 =A0[0.905987] Kernel panic - not syncing: Attempted to kill init!<= br> >
> =A0 =A0Let me know how to proceed on this.
>

Install for example Fedora 12, or any other distro that has 2.6.= 32 kernel
as a default, and check which modules are used for your hardware,
then replace "ide-disk" in modprobe.conf with the actual module.<= br>

Will look into it.

Thanks=

-- Pasi


> =A0 =A0Thanks
>
> =A0 =A0On Mon, Apr 5, 2010 at 10:00 AM, Konrad Rzeszutek Wilk
> =A0 =A0<[2]konrad.wilk@oracle.com> wrote:
>
> =A0 =A0 =A0On Mon, Apr 05, 2010 at 07:10:22AM -0700, Ritu kaur wrote:<= br> > =A0 =A0 =A0> Hello,
> =A0 =A0 =A0>
> =A0 =A0 =A0> Any inputs folks on xen debugs provided? dom0 crashes = when =A0xen/next
> =A0 =A0 =A0kernel
>
> =A0 =A0 =A0What you are hitting should have been fixed a week ago. Are= you up to
> =A0 =A0 =A0the latest in xen/next? Did you do 'git pull' ? Do = you see this as the
> =A0 =A0 =A0latest when you do 'git log | head':
>
> =A0 =A0 =A0 git log | head -5
> =A0 =A0 =A0commit 900f6d725874ca97c21cdc5a2c4e05bd62db4e86
> =A0 =A0 =A0Merge: f2530fa 89689b1
> =A0 =A0 =A0Author: Jeremy Fitzhardinge <[3]jeremy.fitzhardinge@citri= x.com>
> =A0 =A0 =A0Date: =A0 Thu Apr 1 14:24:30 2010 -0700
>
> References
>
> =A0 =A0Visible links
> =A0 =A01. http://pasik= .reaktio.net/xen/pv_ops-dom0-debug/config-2.6.32.10-pvops-dom0-xen-stable-x= 86_32
> =A0 =A02. mailto:konrad.wilk@oracle.com
> =A0 =A03. mailto:jeremy.fitzhardinge@citrix.com

> _______________________________________________
> Xen-devel mailing list


--00032556537270c2b70483cfcbee-- --===============1740979927== 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 --===============1740979927==--