From: Mike Viau Subject: RE: Re: [Xen-devel] Linux hangs during reboot on Jeremy's git kernel Date: Mon, 8 Feb 2010 13:59:18 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0810330871==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: konrad.wilk@oracle.com Cc: xen-devel@lists.xensource.com, xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0810330871== Content-Type: multipart/alternative; boundary="_b74a8de0-f3f7-40c9-8537-aeedaf6c9dd9_" --_b74a8de0-f3f7-40c9-8537-aeedaf6c9dd9_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Mon=2C 8 Feb 2010 13:02:55 -0500 > From: konrad.wilk@oracle.com > To: mike.viau@sheridanc.on.ca > Subject: Re: [Xen-users] Re: [Xen-devel] Linux hangs during reboot on Jer= emy's git kernel > CC: xen-devel@lists.xensource.com=3B xen-users@lists.xensource.com >=20 > On Mon=2C Feb 08=2C 2010 at 12:27:41PM -0500=2C Mike Viau wrote: > >=20 > > > Date: Mon=2C 8 Feb 2010 10:48:29 -0500 > > > From: konrad.wilk@oracle.com > > > To: mike.viau@sheridanc.on.ca > > > CC: ahmad.hassan@gmail.com=3B xen-devel@lists.xensource.com=3B xen-us= ers@lists.xensource.com > > > Subject: [Xen-users] Re: [Xen-devel] Linux hangs during reboot on Jer= emy's git kernel > > >=20 > > > On Sat=2C Feb 06=2C 2010 at 09:58:13AM -0500=2C Mike Viau wrote: > > > >=20 > > > > Attached is a screen shot of the last messages I recieve during a s= ystem reboot.=20 > > > >=20 > > > > Note: The power is never cycled and Linux apprears to hang. > > > >=20 > > > > Is there something else I can try to resolve this issue? > > >=20 > > > I have the same issue (AMD development hardware) so I believe we have= n't > > > fixed out all the bugs. If you are interested in resolving this I can > > > give you some ideas where to poke in the kernel/hypervisor code. > > >=20 > >=20 > > Absolutely=2C > > what can I do to help! >=20 > Need to narow down under what situations the kernel/hypervisor shuts > properly the machine. >=20 > For that we need to do a couple of variants: >=20 > a). Bare-metal. Boot pv-ops and shutdown. Does it do it? Yes oddly enough=2C shutdown is fine=2C only hangs on reboot. Also I'd like to note I am only using the kernel as a bare-metal kernel=2C= so I have not loaded it as a module in grub with the hypervisor. > b). If it does not=2C try an earlier kernel or a distro supplied one. >=20 > If the a) or b) don't work then you have a very unique motherboard > and we will need to play a bit with 'reboot=3D' command line arguments. > Look in arch/x86/kernel/reboot.c for details. > I have tried using different reboot=3DX kernel command line arguments=2C b= ut none of them have correct the rebooting issue. In fact the system hangs = the same way in all cases. =20 > Lets assume that a) or b) do work. We want to find out what it does > to the machine. You can instrument the code (reboot.c?) and find out > which mechanism it uses. >=20 I know that the system reboot fine with the Debian 2.6.26-2-amd64 kernel. = Please suggest how one might compare these kernels reboot.c. Shall I simply= run the diff utility. I can read C source=2C but to truly understand it I = feel I need to have written the code... With help I believe I can find the = mechanism it uses. > Make sure the Xen hypervisor uses the same mechanism. You can toggle > those flags with the 'reboot=3D' arguments (look in arch/x86/shutdown.c) > After that=2C if you know that the reboot mechanism used by the bare-meta= l > is the same as the one used by the hypervisor=2C then there is something > amiss in the hypervisor that will have to be updated. Same for shutdown.c=2C perhaps you could be more precise on what to look f= or. I could send you the files from my system if you'd like? >=20 > P.S. > What is weird is that your screenshot says "machine reboot" which only > shows up when you are running on bare-metal. Was that screen shot taken > when pv-ops was running under Xen or bare-metal? As mentioned previous=2C I was using bare-metal indeed. Should I expect th= e reboot functionality to work with Jeremy's kernel after using the Xen Hyp= ervisor? >=20 >=20 > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users =20 _________________________________________________________________ --_b74a8de0-f3f7-40c9-8537-aeedaf6c9dd9_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >=3B Date: Mon=2C 8 Feb 2010 13:02:55 -0500
>=3B From: konrad.wilk@o= racle.com
>=3B To: mike.viau@sheridanc.on.ca
>=3B Subject: Re: [X= en-users] Re: [Xen-devel] Linux hangs during reboot on Jeremy's git kernel<= br>>=3B CC: xen-devel@lists.xensource.com=3B xen-users@lists.xensource.co= m
>=3B
>=3B On Mon=2C Feb 08=2C 2010 at 12:27:41PM -0500=2C Mike= Viau wrote:
>=3B >=3B
>=3B >=3B >=3B Date: Mon=2C 8 Feb 2= 010 10:48:29 -0500
>=3B >=3B >=3B From: konrad.wilk@oracle.com
= >=3B >=3B >=3B To: mike.viau@sheridanc.on.ca
>=3B >=3B >=3B = CC: ahmad.hassan@gmail.com=3B xen-devel@lists.xensource.com=3B xen-users@li= sts.xensource.com
>=3B >=3B >=3B Subject: [Xen-users] Re: [Xen-dev= el] Linux hangs during reboot on Jeremy's git kernel
>=3B >=3B >= =3B
>=3B >=3B >=3B On Sat=2C Feb 06=2C 2010 at 09:58:13AM -0500= =2C Mike Viau wrote:
>=3B >=3B >=3B >=3B
>=3B >=3B >= =3B >=3B Attached is a screen shot of the last messages I recieve during = a system reboot.
>=3B >=3B >=3B >=3B
>=3B >=3B >=3B &= gt=3B Note: The power is never cycled and Linux apprears to hang.
>=3B= >=3B >=3B >=3B
>=3B >=3B >=3B >=3B Is there something el= se I can try to resolve this issue?
>=3B >=3B >=3B
>=3B >= =3B >=3B I have the same issue (AMD development hardware) so I believe we= haven't
>=3B >=3B >=3B fixed out all the bugs. If you are interes= ted in resolving this I can
>=3B >=3B >=3B give you some ideas whe= re to poke in the kernel/hypervisor code.
>=3B >=3B >=3B
>= =3B >=3B
>=3B >=3B Absolutely=2C
>=3B >=3B what can I do t= o help!
>=3B
>=3B Need to narow down under what situations the k= ernel/hypervisor shuts
>=3B properly the machine.
>=3B
>=3B= For that we need to do a couple of variants:
>=3B
>=3B a). Bare= -metal. Boot pv-ops and shutdown. Does it do it?

 =3BYes oddly e= nough=2C shutdown is fine=2C only hangs on reboot.

 =3BAlso I'd = like to note I am only using the kernel as a bare-metal kernel=2C so I have= not loaded it as a module in grub with the hypervisor.

>=3B b). I= f it does not=2C try an earlier kernel or a distro supplied one.
>=3B =
>=3B If the a) or b) don't work then you have a very unique motherboa= rd
>=3B and we will need to play a bit with 'reboot=3D' command line a= rguments.
>=3B Look in arch/x86/kernel/reboot.c for details.
>=3B=

 =3BI have tried using different reboot=3DX kernel command line= arguments=2C but none of them have correct the rebooting issue. In fact th= e system hangs the same way in all cases.
 =3B
>=3B Lets assume= that a) or b) do work. We want to find out what it does
>=3B to the m= achine. You can instrument the code (reboot.c?) and find out
>=3B whic= h mechanism it uses.
>=3B

 =3BI know that the system reboo= t fine with the Debian 2.6.26-2-amd64 kernel. Please suggest how one might = compare these kernels reboot.c. Shall I simply run the diff utility. I can = read C source=2C but to truly understand it I feel I need to have written t= he code... With help I believe I can find the mechanism it uses.

>= =3B Make sure the Xen hypervisor uses the same mechanism. You can toggle>=3B those flags with the 'reboot=3D' arguments (look in arch/x86/shutdo= wn.c)
>=3B After that=2C if you know that the reboot mechanism used by= the bare-metal
>=3B is the same as the one used by the hypervisor=2C = then there is something
>=3B amiss in the hypervisor that will have to= be updated.

 =3BSame for shutdown.c=2C perhaps you could be mor= e precise on what to look for. I could send you the files from my system if= you'd like?


>=3B
>=3B P.S.
>=3B What is weird is t= hat your screenshot says "machine reboot" which only
>=3B shows up whe= n you are running on bare-metal. Was that screen shot taken
>=3B when = pv-ops was running under Xen or bare-metal?

 =3BAs mentioned pre= vious=2C I was using bare-metal indeed. Should I expect the reboot function= ality to work with Jeremy's kernel after using the Xen Hypervisor?

&= gt=3B
>=3B
>=3B _______________________________________________=
>=3B Xen-users mailing list
>=3B Xen-users@lists.xensource.com>=3B http://lists.xensource.com/xen-users


No= t using Hotmail on your phone? Why not? Get it now. = --_b74a8de0-f3f7-40c9-8537-aeedaf6c9dd9_-- --===============0810330871== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users --===============0810330871==--