From: Boris Derzhavets Subject: Re: pvops DomU kernels [was Re: "Hotplug Scripts not working ..." error on jaunty] Date: Thu, 22 Oct 2009 00:44:56 -0700 (PDT) Message-ID: <522077.21326.qm@web56102.mail.re3.yahoo.com> References: <940bcfd20910212256w3ba99c50v4fedf4dad034c5c8@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0577180386==" Return-path: In-Reply-To: <940bcfd20910212256w3ba99c50v4fedf4dad034c5c8@mail.gmail.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: Dulloor Cc: Xen-devel , "Marc - A. Dahlhaus" List-Id: xen-devel@lists.xenproject.org --===============0577180386== Content-Type: multipart/alternative; boundary="0-1210981948-1256197496=:21326" --0-1210981948-1256197496=:21326 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > The problem is with the pvops DomU kernel. It works not only for xenified ( Xen Dom0 support forward ported kernels)= =C2=A0 aka Suse=20 2.6.27,2.6.29.4, 2.6.31.4 kernels F11,F10,Ubuntu 8.10,9.04 Servers PV DomUs have been setup with no problems = at the same Dom0. Mentioned=C2=A0 kernels have Xen DomU Support via mainlin= e Linux, but they are not obviously pvops enabled kernels. Boris. --- On Thu, 10/22/09, Dulloor wrote: From: Dulloor Subject: [Xen-devel] pvops DomU kernels [was Re: "Hotplug Scripts not worki= ng ..." error on jaunty] To: "Boris Derzhavets" Cc: "Xen-devel" , "Marc - A. Dahlhaus" Date: Thursday, October 22, 2009, 1:56 AM console/network/everything is fine with the 2.6.18 DomU (on pvops DomU and = on Ubuntu 9.04 server). I assume it would be so with the any other forward = port too (2.6.27, for instance). The problem is with the pvops DomU kernel. =0A=0A1. With Linus' git tree (CONFIG_XEN and other DomU options compiled i= n), the kernel crashes with the following (in xm dmesg) : (XEN) mm.c:840:d33 Error getting mfn 18c3 (pfn 21603) from L1 entry 8000000= 0018c3061 for l1e_owner=3D33, pg_owner=3D33 =0A=0A(XEN) traps.c:465:d33 Unhandled invalid opcode fault/trap [#6] on VCP= U 0 [ec=3D0000] (XEN) domain_crash_sync called from entry.S (XEN) Domain 33 (vcpu#0) crashed on cpu#7: (XEN) ----[ Xen-3.5-unstable=C2=A0 x86_64=C2=A0 debug=3Dy=C2=A0 Not tainted= ]---- =0A=0A(XEN) CPU:=C2=A0=C2=A0=C2=A0 7 2. With Jeremy's git, i.e the same kernel as Dom0 (but with CONFIG_XEN and = other DomU options compiled in), the kernel just freezes in init_intel func= tion (start_kernel->...->identify_boot_cpu->...->c_init). To be more precis= e, in detect_extended_topology function. Also, for the DomU, the init_intel= function in "arch/x86/kernel/cpu/intel.c" gets executed rather than the fu= nction in "setup-xen.c". I am not well-versed the setup code in pvops. Does= that look fine ? =0A =0AI have attached the configs for both 1 and 2. thanks dulloor PS : Also, DomU compilation (with just DomU options compiled in) fails with= the following error, if CONFIG_SMP is not defined - arch/x86/kernel/pvclock.c: In function =E2=80=98pvclock_clocksource_vread= =E2=80=99: =0Aarch/x86/kernel/pvclock.c:172: error: implicit declaration of function = =E2=80=98fix_to_virt=E2=80=99 arch/x86/kernel/pvclock.c:172: error: =E2=80=98FIX_PVCLOCK_TIME_INFO=E2=80= =99 undeclared (first use in this function) arch/x86/kernel/pvclock.c:172: error: (Each undeclared identifier is report= ed only once =0A =0AOn Tue, Oct 20, 2009 at 11:23 AM, Boris Derzhavets wrote: =0A=0A=0A=0A=0A=0AI used to work with NAT for DomUs only on Fedoras 12,11,1= 0,8 (libvirtd & dnmask). Due to absence libvirt ->xen driver on Ubuntu's Servers 9.04,8.10 i always = configured xen bridge via /etc/xen/xend-config.sxp. It works fine. =0A=0A=0A --- On Tue, 10/20/09, Boris Derzhavets wrote: =0A=0A=0A From: Boris Derzhavets Subject: Re: [Xen-devel] Re: "Hotplug Scripts not working ..." error on jau= nty =0ATo: "Dulloor" Cc: "Xen-devel" , "Marc - A. Dahlhaus" =0A=0A=0ADate: Tuesday, October 20, 2009, 10:39 AM =0A=0A=0AYou have to take care of hvc0 like tty1 entry under /etc/event.d o= n: 1. Ubuntu's <=3D 9.04 pv guest # cd /etc/event.d # cp tty1 hvc0 and edit hvc0 file correspondently 2. /etc/inittab on CentOS 5.3 DomU =0A=0A=0Ashould have entry hvc0:23:respawn:...:hvc0 like for tty1,tty2 and etc and so on,=C2=A0 console=3Dhvc0 at /boot/vmlinuz-xen=C2=A0 module's line re= quires activating hvc0 via guest's specific location, view for instance :- =0A=0A=0A http://bderzhavets.wordpress.com/2009/05/21/install-ubuntu-jaunty-pv-hvm-do= mus-at-xen-3-4-dom0-kernel-2-6-30-rc6-tip/ =0A=0A=0A or just tell exactly which one (linux) PV DomU is causing you trouble with = serial console. Boris. P.S. F11, U 9.04 Server , OpenSuse 11.1(2)=C2=A0 PV DomUs may loaded=0A vi= a vfb as well,but U 9.10 Server (beta) requires serial console --- On Tue,=0A 10/20/09, Dulloor wrote: =0A=0A=0AFrom: Dulloor Subject: Re: [Xen-devel] Re: "Hotplug Scripts not working ..." error on jau= nty To: "Boris Derzhavets" =0A=0A=0ACc: "Xen-devel" , "Marc - A. Dahlha= us" =0A=0A=0ADate: Tuesday, October 20, 2009, 6:22 AM Boris,=20 The "hotplug" error is gone with 9.04 server. The VMs boot fine (atleast pe= r logs and xm list). I am not able to access VM via console(hvc0) though. I have tried everythin= g out there in your blogs, but the console just freezes at this same point = : =0A=0A=0A=0A" [=C2=A0=C2=A0=C2=A0 0.010000] Initializing cgroup subsys memory [=C2=A0=C2=A0=C2=A0 0.010000] Initializing cgroup subsys freezer " Any clues on how to go about debugging this ? I use the default network-nat configuration for VMs(with addresses from 10.= 0.0.1/24). That doesn't work either. Is that expected too ?=20 =0A=0A=0A=0AI am sure the bridge configuration should work though (will try= tomorrow). -dulloor On Sun, Oct 18, 2009 at 3:48 AM, Boris Derzhavets w= rote: =0A=0A=0A=0A=0A=0A=0A=0A> I will try 9.04-Server (not sure if it will help = though) 1. I believe it will help. 2. Bruce's=C2=A0 Edge feed would be also very much wanted. Boris. --- On Sun, 10/18/09, Dulloor wrote: =0A=0A=0A=0A From: Dulloor =0ASubject: Re: [Xen-devel] Re: "Hotplug Scripts not working ..." error on = jaunty To: "Boris Derzhavets" Cc: "Marc - A. Dahlhaus" , "Xen-devel" =0A=0A=0A=0ADate: Sunday, October 18, 2009, 3:09 AM I use xen-unstable (at the tip again). I have been following your blog. Thi= nking of it, the only difference is I use 9.04-Desktop-amd64 for my base in= stallation. I=0A will try 9.04-Server (not sure if it will help though). Bt= w, these VM images were working fine with 8.04 installation. =0A -dulloor On Sun, Oct 18, 2009 at 3:00 AM, Boris Derzhavets w= rote: =0A=0A=0A=0A=0A=0A=0A=0A=0A=0APlease, tell how you setup Xen 3.4.1 or Xen= =C2=A0 Unstable on 9.04 server ? Boris. P.S. Working sample:- http://bderzhavets.wordpress.com/2009/06/25/setup-xen-3-4-1-dom0-on-top-of-= ubuntu-9-04-server-via-marc-a-dahlhauss-udev-patch/=0A=0A=0A=0A=0A --- On Sun, 10/18/09, Dulloor wrote: =0A=0A=0A=0A=0A From: Dulloor Subject: Re: [Xen-devel] Re: "Hotplug Scripts not working ..." error on jau= nty=0A=0A=0A=0A=0A To: "Boris Derzhavets" Cc: "Marc - A. Dahlhaus" , "Xen-devel" =0A=0A=0A=0A=0ADate: Sunday, October 18, 2009, 1:37 AM I am at the tip of xen/master branch of Jeremy's tree. commit=0A 2afad356210ac35cbbc81904e0ac8b514b7f6212 Merge: 9fa9003... 907d20f... Author: Jeremy Fitzhardinge =0A=0A=0A=0A=0A=0ADate:=C2=A0=C2=A0 Thu Oct 15 11:34:28 2009 -0700 =C2=A0=C2=A0=C2=A0 Merge branch 'xen/vsyscall' into xen/master =C2=A0=C2=A0=C2=A0 * xen/vsyscall: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 x86/vsyscall: fix 32-bit compile -dulloor On Sun, Oct 18, 2009 at 12:49 AM, Boris Derzhavets = wrote: =0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A> Boris Derzhavets schrieb: >> >> By some reasons i have to run =C2=A0on regular basis run ./xen-hotplug-c= leanup >> on two Xen 3.4.1 on top of Ubuntu 9.04 Servers patched systems to =0A>> re-enable ability start DomUs without hotplug scripts failure. >> >> Boris. It=C2=A0 was written on June 26, 2009 and was connected with some particula= r 9.04 instance. Since then i did several Xen Host installs via official 3.4.1=C2=A0 tarball= and via xen-unstable.hg=C2=A0 but, every time the most recent JF's pvops k= ernel had been built to =0A=0A=0A=0A=0A=0Asupport Dom0. Problem with hot-plug scripts was gone far = away. My question :- What kernel is supporting your Dom0 ? Boris. P.S. Seems to me , that was kernel related problem in June. --- On Sat, 10/17/09, Dulloor =0A wrote: From: Dulloor =0A=0A=0A=0A=0ASubject: [Xen-devel] Re: "Hotplug Scripts not working ..." e= rror on jaunty =0ATo: "Marc - A. Dahlhaus" Cc: "Xen-devel" =0A=0A=0A=0A=0A=0ADate: Saturday, October 17, 2009, 6:08 PM - udev version is 141 (udevadm info -V) - There is only a /etc/udev directory. It had two files : xend.rules and xen-backend.rules. Removing them didn't help. =0A=0A=0A=0A=0A=0A - I use pvops kernel. And, I use - make install-xen and make install-tools PYTHON_PREFIX_ARG=3D"" - Following is the output from "udevadm monitor" : KERNEL[1255816932.742809] add=C2=A0 =C2=A0 =C2=A0 /devices/vbd-22-2049 (xen= -backend) =0A=0A=0A=0A=0A=0AKERNEL[1255816932.768878] add=C2=A0 =C2=A0 =C2=A0 /device= s/vbd-22-2050 (xen-backend) KERNEL[1255816932.786000] add=C2=A0 =C2=A0=0A =C2=A0 /devices/vbd-22-2051 (= xen-backend) KERNEL[1255816932.817227] add=C2=A0 =C2=A0 =C2=A0 /devices/vif-22-0 (xen-ba= ckend) UDEV=C2=A0 [1255816932.818643] add=C2=A0 =C2=A0 =C2=A0 /devices/vif-22-0 (x= en-backend) KERNEL[1255816933.008654] add=C2=A0 =C2=A0 =C2=A0 /devices/console-22-0 (xe= n-backend) =0A=0A=0A=0A=0A=0AUDEV=C2=A0 [1255816933.009916] add=C2=A0 =C2=A0 =C2=A0 /d= evices/console-22-0 (xen-backend) UDEV=C2=A0 [1255816933.657785] add=C2=A0 =C2=A0 =C2=A0 /devices/vbd-22-2049= (xen-backend) UDEV=C2=A0 [1255816934.707977] add=C2=A0 =C2=A0 =C2=A0 /devices/vbd-22-2050= (xen-backend) =0A=0A=0A=0A=0AUDEV=C2=A0 [1255816935.761811] add=C2=A0 =C2=A0 =C2=A0 /devi= ces/vbd-22-2051 (xen-backend) =0AKERNEL[1255817033.248057] remove=C2=A0=C2=A0=C2=A0/devices/console-22-0 = (xen-backend) ------------- ****After the error**** UDEV=C2=A0 [1255817033.334001] remove=C2=A0=C2=A0=C2=A0/devices/console-22-= 0 (xen-backend) -dulloor On Sat, Oct 17, 2009 at 4:04 PM, Marc=0A - A. Dahlhaus wrote: > Hello, > > Dulloor schrieb: >> >> I see that these patches made it to xen-unstable, but I still see the =0A=0A=0A=0A=0A=0A>> "Hotplug Scripts not working ..." error on my jaunty d= om0 machine. > > The patches only fixed the build-time and installation-time detection of > =C2=A0udev to work with version above of 124. =0A=0A=0A=0A=0A=0A> > Have no jaunty based box around here to get some impressions of what goes > wrong in this setup. > > Could you check what udev version it has and if /etc/hotplug and/or > /etc/udev contains xen related stuff? =0A=0A=0A=0A=0A=0A> > As udev is in charge of hotplug events on jaunty a > "udevadm monitor" might get you some further details on what events are > generated. > >> I am trying to run a simple para-VM. xend starts fine (had=0A to build >> tools with PYTHON_PREFIX_ARG set to ""). And, I tried >> xen-hotplug-cleanup too, but still getting the error. >> >> Any ideas ? > > Check what files get installed in /etc/udev and /etc/hotplug during =0A=0A=0A=0A=0A=0A> installation. If you find anything xen related in /etc/= hotplug remove it and > check if that fixes your problem. > > It would be interesting to know how you install xen... > > Marc > =0A=0A=0A=0A=0A=0A>> -dulloor >> >> On Sat, Jun 27, 2009 at 4:02 PM, Marc - A. Dahlhaus wrote: >>> >>> Hello Boris, =0A=0A=0A=0A=0A=0A>>> >>> as the problem you are describing is unrelated to the patch (which >>> changes >>> the detection of udev during buildtime only), >>> can you please change the subject line to=0A something more appropriate= and >>> give some additional details about the problem? >>> >>> >>> Marc >>> >>> Boris Derzhavets schrieb: >>>> =0A=0A=0A=0A=0A=0A>>>> By some reasons i have to run =C2=A0on regular basis= run >>>> ./xen-hotplug-cleanup >>>> on two Xen 3.4.1 on top of Ubuntu 9.04 Servers patched systems to >>>> re-enable ability start DomUs without hotplug scripts failure. =0A=0A=0A=0A=0A=0A>>>> >>>> Boris. >>>> >>>> --- On *Fri, 6/26/09, Marc - A. Dahlhaus [ Administration | Westermann >>>> GmbH ] //* wrote: =0A=0A=0A=0A=0A=0A>>>> >>>> >>>> =C2=A0 From: Marc - A. Dahlhaus [ Administration | Westermann GmbH ] >>>> =C2=A0 =0A=0A=0A=0A=0A=0A>>>> =C2=A0 Subject: Re: [Xen-devel] [PATCH] Fix buildsys= tem to detect udev > >>>> =C2=A0 version 124 >>>> =C2=A0 To: "Boris Derzhavets" =0A=0A=0A=0A=0A=0A>>>> =C2=A0 Cc: "Xen-devel" , "Keir Fraser" >>>> =C2=A0 =0A=0A=0A=0A=0A=0A>>>> =C2=A0 Date: Friday, June 26, 2009, 5:12 AM >>>> >>>> =C2=A0 Could go into 3.4 and unstable IMO. >>>> >>>> =C2=A0 On 3.3 there is no=0A tools/hotplug/Linux/Makefile so it must b= e altered >>>> =C2=A0 there to use tools/examples/Makefile for the first chunk and >>>> =C2=A0 should work >>>> =C2=A0 fine there. >>>> =0A=0A=0A=0A=0A=0A>>>> >>>> =C2=A0 Marc >>>> >>>> =C2=A0 Am Donnerstag, den 25.06.2009, 20:03 -0700 schrieb Boris Derzha= vets: >>>> =C2=A0 > Where this patch is supposed to go either xen-unstable.hg or =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > xen-3.4-testing.hg (both) ? >>>> =C2=A0 > Systems affected Ubuntu 9.04 (now) , F12 (pretty soon). >>>> =C2=A0 > >>>> =C2=A0 > Boris >>>> =C2=A0 > =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > --- On Wed, 6/24/09, Marc - A. Dahlhaus [ A= dministration | >>>> =C2=A0 Westermann >>>> =C2=A0 > GmbH ] > wrote: =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 From: Marc - A. Dahlhaus [ Administration | >>>> Westermann >>>> =C2=A0 GmbH ] >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 > =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Subject: [Xen-d= evel] [PATCH] Fix buildsystem to detect >>>> =C2=A0 udev > >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 version 124 >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 To: "Xen-devel" >>> =C2=A0 > >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Cc: "Daniel Schroeder" >>> =C2=A0 >, "Kei= r Fraser" >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 >>> =C2=A0 > >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Date: Wednesday, June 24, 2009, 1= 2:26 PM =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 udev removed the udevinfo symlink from versions >>>> higher than >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 123 and xens >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 build-system could not detect if = udev is in place and =0A=0A=0A=0A=0A=0A>>>> =C2=A0 has the >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 required >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 version. Attached patch fixes thi= s. >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0> =C2=A0 =C2=A0 =C2=A0 =C2=A0=0A Signed-off-by: Mar= c-A. Dahlhaus >>>> >>> =C2=A0 > =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> >>>> -----Inline Attachment Follows----- >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 _______________________________________________ =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Xen-devel maili= ng list >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Xen-devel@lists.xensource.com >>>> =C2=A0 =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://lists.xe= nsource.com/xen-devel >>>> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0> >>>> =C2=A0 > _______________________________________________ =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > Xen-devel mailing list >>>> =C2=A0 > Xen-devel@lists.xensource.com >>>> =C2=A0 =0A=0A=0A=0A=0A=0A>>>> =C2=A0 > http://lists.xensource.com/xen-devel >>>> >>>> >>>> =C2=A0 _______________________________________________ =0A=0A=0A=0A=0A=0A>>>> =C2=A0 Xen-devel mailing list >>>> =C2=A0 Xen-devel@lists.xensource.com >>>> =C2=A0 =0A=0A=0A=0A=0A=0A>>>> =C2=A0 http://lists.xensource.com/xen-devel >>>> >>>> >>>>=0A -------------------------------------------------------------------= ----- >>>> >>>> _______________________________________________ >>>> Xen-devel mailing list >>>> Xen-devel@lists.xensource.com =0A=0A=0A=0A=0A=0A>>>> http://lists.xensource.com/xen-devel >>>> >>> _______________________________________________ =0A=0A=0A=0A=0A>>> Xen-devel mailing list =0A>>> Xen-devel@lists.xensource.com >>> http://lists.xensource.com/xen-devel =0A=0A=0A=0A=0A=0A>>> > > _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com =0A=0A=0A=0A=0A=0Ahttp://lists.xensource.com/xen-devel =0A=0A=0A=0A =20 =0A =0A=0A=0A=0A =20 =0A =0A=0A=0A=0A =20 =0A -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A =0A=0A=0A=0A =20 -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com =0A=0A=0Ahttp://lists.xensource.com/xen-devel =0A=0A=0A=0A =20 =0A -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1210981948-1256197496=:21326 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
> The problem is with the pvops DomU kerne= l.

It works not only for xenified ( Xen Dom0 support forward ported = kernels)  aka Suse
2.6.27,2.6.29.4, 2.6.31.4 kernels

F11,F1= 0,Ubuntu 8.10,9.04 Servers PV DomUs have been setup with no problems at the= same Dom0. Mentioned  kernels have Xen DomU Support via mainline Linu= x,
but they are not obviously pvops enabled kernels.


Boris.
--- On Thu, 10/22/09, Dulloor <dulloor@gmail.com>= wrote:

From: Dulloor <dulloor@gmail.com= >
Subject: [Xen-devel] pvops DomU kernels [was Re: "Hotplug Scripts n= ot working ..." error on jaunty]
To: "Boris Derzhavets" <bderzhavets= @yahoo.com>
Cc: "Xen-devel" <xen-devel@lists.xensource.com>, "M= arc - A. Dahlhaus" <mad@wol.de>
Date: Thursday, October 22, 2009, 1:56 = AM

console/network/everything is fine with = the 2.6.18 DomU (on pvops DomU and on Ubuntu 9.04 server). I assume it woul= d be so with the any other forward port too (2.6.27, for instance).

= The problem is with the pvops DomU kernel.
=0A=0A1. With Linus' git tree= (CONFIG_XEN and other DomU options compiled in), the kernel crashes with t= he following (in xm dmesg) :
(XEN) mm.c:840:d33 Error getting mfn 18c3 (= pfn 21603) from L1 entry 80000000018c3061 for l1e_owner=3D33, pg_owner=3D33=
=0A=0A(XEN) traps.c:465:d33 Unhandled invalid opcode fault/trap [#6] on= VCPU 0 [ec=3D0000]
(XEN) domain_crash_sync called from entry.S
(XEN)= Domain 33 (vcpu#0) crashed on cpu#7:
(XEN) ----[ Xen-3.5-unstable = x86_64  debug=3Dy  Not tainted ]----
=0A=0A(XEN) CPU: &n= bsp;  7

2. With Jeremy's git, i.e the same kernel as Dom0 (but = with CONFIG_XEN and other DomU options compiled in), the kernel just freeze= s in init_intel function (start_kernel->...->identify_boot_cpu->..= .->c_init). To be more precise, in detect_extended_topology function. Al= so, for the DomU, the init_intel function in "arch/x86/kernel/cpu/intel.c" = gets executed rather than the function in "setup-xen.c". I am not well-vers= ed the setup code in pvops. Does that look fine ?
=0A
=0AI have attac= hed the configs for both 1 and 2.

thanks
dulloor

PS : Also= , DomU compilation (with just DomU options compiled in) fails with the foll= owing error, if CONFIG_SMP is not defined -
arch/x86/kernel/pvclock.c: I= n function =E2=80=98pvclock_clocksource_vread=E2=80=99:
=0Aarch/x86/kern= el/pvclock.c:172: error: implicit declaration of function =E2=80=98fix_to_v= irt=E2=80=99
arch/x86/kernel/pvclock.c:172: error: =E2=80=98FIX_PVCLOCK_= TIME_INFO=E2=80=99 undeclared (first use in this function)
arch/x86/kern= el/pvclock.c:172: error: (Each undeclared identifier is reported only once<= br>=0A

=0A
On Tue, Oct 20, 2009 at 11:23 A= M, Boris Derzhavets <bderzhavets@yahoo.com> wrote:
=0A=0A=0A
=0A=0A=0AI used to work with NAT for DomU= s only on Fedoras 12,11,10,8 (libvirtd & dnmask).
Due to absence lib= virt ->xen driver on Ubuntu's Servers 9.04,8.10 i always configured
x= en bridge via /etc/xen/xend-config.sxp. It works fine.
=0A=0A=0A
--- = On Tue, 10/20/09, Boris Derzhavets <bderzhavets@yahoo.com> wrote:
=0A=0A=0A
From: Boris Derzhavets <bderzhavets@yahoo.com>

= Subject: Re: [Xen-devel] Re: "Hotplug Scripts not working ..." error on jau= nty
=0A
To: "Dulloor" <dulloor@gmail.com>

Cc: "Xen-devel" <xen-devel@lists.xensour= ce.com>, "Marc - A. Dahlhaus" <mad@= wol.de>
=0A=0A=0A
Date: Tuesday, October 20, 2009, 10:39 AM<= div>


=0A=0A=0AYou have to take care of hvc0 like tty1 entry under /etc/= event.d on:
1. Ubuntu's <=3D 9.04 pv guest
# cd /etc/event.d
# = cp tty1 hvc0
and edit hvc0 file correspondently
2. /etc/inittab on Ce= ntOS 5.3 DomU
=0A=0A=0Ashould have entry
hvc0:23:respawn:...:hvc0
= like for tty1,tty2 and etc

and so on,  console=3Dhvc0 at /boot/= vmlinuz-xen  module's line requires
activating hvc0 via guest's spe= cific location, view for instance :-
=0A=0A=0A
http://= bderzhavets.wordpress.com/2009/05/21/install-ubuntu-jaunty-pv-hvm-domus-at-= xen-3-4-dom0-kernel-2-6-30-rc6-tip/
=0A=0A=0A
or just tell exactl= y which one (linux) PV DomU is causing you trouble with serial console.
=
Boris.
P.S. F11, U 9.04 Server , OpenSuse 11.1(2)  PV DomUs may= loaded=0A via vfb as well,but U 9.10 Server (beta) requires serial consol= e




--- On Tue,=0A 10/20/09, Dulloor <dulloor@gmail.com> wrote:

=0A=0A=0AFrom: Dulloor <dulloor@gmail.com>
Subject: Re: [Xen-d= evel] Re: "Hotplug Scripts not working ..." error on jaunty
To: "Boris D= erzhavets" <bderzhav= ets@yahoo.com>
=0A=0A=0ACc: "Xen-devel" <xen-devel@lists.xensource.co= m>, "Marc - A. Dahlhaus" <mad@wol.d= e>
=0A=0A=0ADate: Tuesday, October 20, 2009, 6:22 AM

= Boris,

The "hotplug" error is gone with 9.04 server. The VMs boot f= ine (atleast per logs and xm list).

I am not able to access VM via c= onsole(hvc0) though. I have tried everything out there in your blogs, but t= he console just freezes at this same point :
=0A=0A=0A=0A"
[ &nb= sp;  0.010000] Initializing cgroup subsys memory
[   = ; 0.010000] Initializing cgroup subsys freezer
"
Any clues on how to = go about debugging this ?

I use the default network-nat configuratio= n for VMs(with addresses from 10.0.0.1/24). That doesn't work either. Is that= expected too ?
=0A=0A=0A=0AI am sure the bridge configuration should w= ork though (will try tomorrow).

-dulloor


On Sun, Oct 18, 2009 at 3:48 AM, Boris Derzhavets <bderzhavets@yahoo.com> wrote:
= =0A=0A=0A=0A
=0A=0A=0A=0A
> I will = try 9.04-Server (not sure if it will help though)
1. I believe it = will help.
2. Bruce's  Edge feed would be also very much wanted.
Boris.


--- On Sun, 10/18/09, Dulloor <dulloor@gmail.com> wrote:
=0A=0A=0A=0A

From: Dulloor <dulloor= @gmail.com>
=0ASubject: Re: [Xen-devel] Re: "Hotplug Scripts not = working ..." error on jaunty
To: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "Marc - A. Dahlhaus" <mad@wol.de>, "Xen-devel" <xen-deve= l@lists.xensource.com>
=0A=0A=0A=0A
Date: Sunday, October 18= , 2009, 3:09 AM


I use xen-unstable (at the= tip again). I have been following your blog. Thinking of it, the only diff= erence is I use 9.04-Desktop-amd64 for my base installation. I=0A will try = 9.04-Server (not sure if it will help though). Btw, these VM images were wo= rking fine with 8.04 installation.
=0A
-dulloor


On Sun, Oct 18, 2009 at 3:00 AM, Boris Derzhavets <bderzhavets@yahoo.com> wrote:<= br>=0A=0A=0A=0A
= =0A
=0A=0A=0A=0A=0APlease= , tell how you setup Xen 3.4.1 or Xen  Unstable on 9.04 server ?
Boris.

P.S. Working sample:-

http:/= /bderzhavets.wordpress.com/2009/06/25/setup-xen-3-4-1-dom0-on-top-of-ubuntu= -9-04-server-via-marc-a-dahlhauss-udev-patch/
=0A=0A=0A=0A=0A

--- On Sun, 10/18/09, Dulloor <dulloor@gmail.co= m> wrote:
=0A=0A=0A=0A=0A<= div>
From: Dulloor <dulloor@gmail.com>
S= ubject: Re: [Xen-devel] Re: "Hotplug Scripts not working ..." error on jaun= ty
=0A=0A=0A=0A=0A
To: "Boris Derzhavets" <bderz= havets@yahoo.com>
Cc: "Marc - A. Dahlhaus" <mad@wo= l.de>, "Xen-devel" <xen-devel@lists.xens= ource.com>
=0A=0A=0A=0A=0ADate: Sunday, October 18, 2009, 1:37 AM=


I am at the tip of xen/master branch of J= eremy's tree.

commit=0A 2afad356210ac35cbbc81904e0ac8b514b7f6212
= Merge: 9fa9003... 907d20f...
Author: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
=0A=0A=0A=0A=0A=0A= Date:   Thu Oct 15 11:34:28 2009 -0700

    = Merge branch 'xen/vsyscall' into xen/master

    * xen= /vsyscall:
      x86/vsyscall: fix 32-bit compi= le

-dulloor

On Sun, Oct 18, 2009 a= t 12:49 AM, Boris Derzhavets <bderzha= vets@yahoo.com> wrote:
=0A=0A=0A=0A=0A=0A
=0A=0A=0A=0A=0A=0A
> Boris Derzhavets schrieb:
&= gt;>
>> By some reasons i have to run  on regular basis ru= n ./xen-hotplug-cleanup
>> on two Xen 3.4.1 on top of Ubuntu 9.04 = Servers patched systems to
=0A>> re-enable ability start DomUs wit= hout hotplug scripts failure.
>>
>> Boris.

I= t  was written on June 26, 2009 and was connected with some particular= 9.04 instance.
Since then i did several Xen Host installs via official = 3.4.1  tarball and via xen-unstable.hg  but, every time the most = recent JF's pvops kernel had been built to
=0A=0A=0A=0A=0A=0Asupport Dom= 0. Problem with hot-plug scripts was gone far away.
My question :-
Wh= at kernel is supporting your Dom0 ?

Boris.
P.S. Seems to me , tha= t was kernel related problem in June.

--- On Sat, 10/17/09, Dullo= or <dulloor@gmail.com>=0A wrote:

From: Dulloor <dulloor@gmail.com>
=0A=0A=0A=0A=0ASubject: [Xen-devel] Re: "Hotplug Scripts not worki= ng ..." error on jaunty
=0ATo: "Marc - A. Dahlhaus" <
mad@wol.de= >

Cc: "Xen-devel" <xen-devel@lis= ts.xensource.com>
=0A=0A=0A=0A=0A=0A
Date: Saturday, October= 17, 2009, 6:08 PM


- udev version is 141 (= udevadm info -V)

- There is only a /etc/udev directory. It had two f= iles : xend.rules
and xen-backend.rules. Removing them didn't help.
= =0A=0A=0A=0A=0A=0A
- I use pvops kernel. And, I use - make install-xen a= nd make
install-tools PYTHON_PREFIX_ARG=3D""

- Following is the o= utput from "udevadm monitor" :
KERNEL[1255816932.742809] add   = ;   /devices/vbd-22-2049 (xen-backend)
=0A=0A=0A=0A=0A=0AKERNEL[125= 5816932.768878] add      /devices/vbd-22-2050 (xen-backend)<= br>KERNEL[1255816932.786000] add   =0A   /devices/vbd-22-205= 1 (xen-backend)
KERNEL[1255816932.817227] add      /devic= es/vif-22-0 (xen-backend)
UDEV  [1255816932.818643] add   = ;   /devices/vif-22-0 (xen-backend)
KERNEL[1255816933.008654] add&n= bsp;     /devices/console-22-0 (xen-backend)
=0A=0A=0A=0A=0A= =0AUDEV  [1255816933.009916] add      /devices/console-= 22-0 (xen-backend)
UDEV  [1255816933.657785] add     = ; /devices/vbd-22-2049 (xen-backend)
UDEV  [1255816934.707977] add&= nbsp;     /devices/vbd-22-2050 (xen-backend)
=0A=0A=0A=0A=0AUD= EV  [1255816935.761811] add      /devices/vbd-22-2051 (= xen-backend)
=0AKERNEL[1255817033.248057] remove   /devic= es/console-22-0 (xen-backend)
------------- ****After the error****
U= DEV  [1255817033.334001] remove   /devices/console-22-0= (xen-backend)

-dulloor


On Sat, Oct 17, 2009 at 4:04 PM, = Marc=0A - A. Dahlhaus <mad@wol.de> wrote:
> Hello,>
> Dulloor schrieb:
>>
>> I see that these pat= ches made it to xen-unstable, but I still see the
=0A=0A=0A=0A=0A=0A>= > "Hotplug Scripts not working ..." error on my jaunty dom0 machine.
= >
> The patches only fixed the build-time and installation-time de= tection of
>  udev to work with version above of 124.
=0A=0A= =0A=0A=0A=0A>
> Have no jaunty based box around here to get some i= mpressions of what goes
> wrong in this setup.
>
> Could = you check what udev version it has and if /etc/hotplug and/or
> /etc/= udev contains xen related stuff?
=0A=0A=0A=0A=0A=0A>
> As udev = is in charge of hotplug events on jaunty a
> "udevadm monitor" might = get you some further details on what events are
> generated.
><= br>>> I am trying to run a simple para-VM. xend starts fine (had=0A t= o build
>> tools with PYTHON_PREFIX_ARG set to ""). And, I tried>> xen-hotplug-cleanup too, but still getting the error.
>>= ;
>> Any ideas ?
>
> Check what files get installed in= /etc/udev and /etc/hotplug during
=0A=0A=0A=0A=0A=0A> installation. = If you find anything xen related in /etc/hotplug remove it and
> chec= k if that fixes your problem.
>
> It would be interesting to kn= ow how you install xen...
>
> Marc
>
=0A=0A=0A=0A=0A= =0A>> -dulloor
>>
>> On Sat, Jun 27, 2009 at 4:02 P= M, Marc - A. Dahlhaus <mad@wol.de> wrote:
>>>>>> Hello Boris,
=0A=0A=0A=0A=0A=0A>>>
>>&g= t; as the problem you are describing is unrelated to the patch (which
&g= t;>> changes
>>> the detection of udev during buildtime o= nly),
>>> can you please change the subject line to=0A somethin= g more appropriate and
>>> give some additional details about t= he problem?
>>>
>>>
>>> Marc
>>= ;>
>>> Boris Derzhavets schrieb:
>>>>
=0A= =0A=0A=0A=0A=0A>>>> By some reasons i have to run  on regu= lar basis run
>>>> ./xen-hotplug-cleanup
>>>>= on two Xen 3.4.1 on top of Ubuntu 9.04 Servers patched systems to
>&= gt;>> re-enable ability start DomUs without hotplug scripts failure.<= br>=0A=0A=0A=0A=0A=0A>>>>
>>>> Boris.
>>= ;>>
>>>> --- On *Fri, 6/26/09, Marc - A. Dahlhaus [ Ad= ministration | Westermann
>>>> GmbH ] /<mad@wol.de<= /a>>/* wrote:
=0A=0A=0A=0A=0A=0A>>>>
>>>><= br>>>>>   From: Marc - A. Dahlhaus [ Administration | West= ermann GmbH ]
>>>>   <
mad@wol.de>
= =0A=0A=0A=0A=0A=0A>>>>   Subject: Re: [Xen-devel] [PATCH] = Fix buildsystem to detect udev >
>>>>   version 124<= br>>>>>   To: "Boris Derzhavets" <bder= zhavets@yahoo.com>
=0A=0A=0A=0A=0A=0A>>>>   Cc: = "Xen-devel" <xen-devel@lists.xensource.com&= gt;, "Keir Fraser"
>>>>   <keir= .fraser@eu.citrix.com>
=0A=0A=0A=0A=0A=0A>>>>   = Date: Friday, June 26, 2009, 5:12 AM
>>>>
>>>>= ;   Could go into 3.4 and unstable IMO.
>>>>
>>= ;>>   On 3.3 there is no=0A tools/hotplug/Linux/Makefile so it m= ust be altered
>>>>   there to use tools/examples/Makef= ile for the first chunk and
>>>>   should work
>&= gt;>>   fine there.
>>>>
=0A=0A=0A=0A=0A=0A>= ;>>>
>>>>   Marc
>>>>
>&g= t;>>   Am Donnerstag, den 25.06.2009, 20:03 -0700 schrieb Boris = Derzhavets:
>>>>   > Where this patch is supposed to= go either xen-unstable.hg or
=0A=0A=0A=0A=0A=0A>>>>   = > xen-3.4-testing.hg (both) ?
>>>>   > Systems af= fected Ubuntu 9.04 (now) , F12 (pretty soon).
>>>>   &g= t;
>>>>   > Boris
>>>>   >=0A=0A=0A=0A=0A=0A>>>>   > --- On Wed, 6/24/09, Marc -= A. Dahlhaus [ Administration |
>>>>   Westermann
&g= t;>>>   > GmbH ] <mad@wol.de </mc/compose?= to=3Dmad@wol.de>> wrote:
=0A=0A=0A=0A=0A=0A>>>&= gt;   >            >    =     From: Marc - A. Dahlhaus [ Administration |
>>>&= gt; Westermann
>>>>   GmbH ]
>>>>  = >         <mad@wol.de </mc/compose?= to=3Dmad@wol.de>>
=0A=0A=0A=0A=0A=0A>>>> &nb= sp; >         Subject: [Xen-devel] [PATCH] Fix build= system to detect
>>>>   udev >
>>>> &= nbsp; >         version 124
>>>> &nbs= p; >         To: "Xen-devel" <xen-devel@lists.xensource.com
=0A=0A=0A=0A=0A=0A>>>&g= t;   </mc/compose?to=3Dxen-devel@lists.x= ensource.com>>
>>>>   >     &nbs= p;   Cc: "Daniel Schroeder" <sec@dschroeder.info=
=0A=0A=0A=0A=0A=0A>>>>   </mc/compose?to=3Dsec@dschroeder.info>>, "Keir Fraser"
>>>>=   >         <keir.fras= er@eu.citrix.com
=0A=0A=0A=0A=0A=0A>>>>   </mc/c= ompose?to=3Dkeir.fraser@eu.citrix.com>>
&= gt;>>>   >         Date: Wednesday, Ju= ne 24, 2009, 12:26 PM
=0A=0A=0A=0A=0A=0A>>>>   > &nb= sp;          >         udev= removed the udevinfo symlink from versions
>>>> higher than=
>>>>   >         123 and xens>>>>   >         build-system cou= ld not detect if udev is in place and
=0A=0A=0A=0A=0A=0A>>>>=   has the
>>>>   >        = required
>>>>   >         versi= on. Attached patch fixes this.
>>>>   >    = ;        >            = >        =0A Signed-off-by: Marc-A. Dahlhaus
>= >>> <mad@wol.de
>>>>   </mc/co= mpose?to=3Dmad@wol.de>>
=0A=0A=0A=0A=0A=0A>>>&g= t;   >            >     =        >            &g= t;            >
>>>> -----I= nline Attachment Follows-----
>>>>   >    =        >         ______________= _________________________________
=0A=0A=0A=0A=0A=0A>>>> &nb= sp; >         Xen-devel mailing list
>>>= >   >         Xen-d= evel@lists.xensource.com
>>>>   </mc/compose?to= =3DXen-devel@lists.xensource.com>
=0A=0A= =0A=0A=0A=0A>>>>   >         http://lists.xensource.com/xen-devel
>>>>   >=            >
>>>>   &= gt; _______________________________________________
=0A=0A=0A=0A=0A=0A&g= t;>>>   > Xen-devel mailing list
>>>>  = ; > Xen-devel@lists.xensource.com
>= >>>   </mc/compose?to=3DXen-devel= @lists.xensource.com>
=0A=0A=0A=0A=0A=0A>>>>   &= gt; http://lists.xensource.com/xen-devel
>>>>>>>>
>>>>   _____________________________= __________________
=0A=0A=0A=0A=0A=0A>>>>   Xen-devel m= ailing list
>>>>   Xen-devel@l= ists.xensource.com
>>>>   </mc/compose?to=3DXen-devel@lists.xensource.com>
=0A=0A=0A=0A= =0A=0A>>>>   http://lists.xensource.com/xen-devel=
>>>>
>>>>
>>>>=0A -------= -----------------------------------------------------------------
>&g= t;>>
>>>> ____________________________________________= ___
>>>> Xen-devel mailing list
>>>> Xen-devel@lists.xensource.com
=0A=0A=0A=0A=0A=0A&= gt;>>> http://lists.xensource.com/xen-devel
>&g= t;>>
>>> _______________________________________________<= br>=0A=0A=0A=0A=0A>>> Xen-devel mailing list
=0A>>> Xen-devel@lists.xensource.com
>>> http://lists.xensource.com/xen-devel
=0A=0A=0A=0A=0A=0A>&g= t;>
>
>

_____________________________________________= __
Xen-devel mailing list
Xen-devel@lists.x= ensource.com
=0A=0A=0A=0A=0A=0Ahttp://lists.xensource.com/x= en-devel
=0A=0A=0A=0A

=0A

=0A=0A=0A=0A

= =0A

=0A=0A=0A= =0A

=0A

-----Inline Attachment Follows= -----

_______________________________________________
Xen-de= vel mailing list
Xen-devel@lists.xensource.comhttp://lists.xensource.com/xen-devel
=0A=0A=0A

=0A=0A=0A=0A

-----Inli= ne Attachment Follows-----

____________________________________= ___________
Xen-devel mailing list
Xen-devel= @lists.xensource.com
=0A=0A=0Ahttp://lists.xensource.com/xe= n-devel
=0A=0A=0A=0A
=0A
-----Inline Attachme= nt Follows-----

___________________________= ____________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

=0A=0A --0-1210981948-1256197496=:21326-- --===============0577180386== 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 --===============0577180386==--