Andrew Lyon
2009-Dec-16 17:00 UTC
[Xen-users] rebased openSUSE dom0 xen patches for 2.6.31
Hi, I have uploaded a new set of rebased openSUSE dom0 xen patches and Gentoo ebuild for 2.6.31 to http://code.google.com/p/gentoo-xen-kernel/downloads/list, Jan Beulich recently identified the cause of the null pointer crash and other stability problems that affected previous versions and with the necessary fixes applied the kernel has run for 2+ days with no issues at all, I think you will find this version works a lot better than previous attempts. All 32/64/domU/dom0 flavours have been tested. Please note this is not a pv_ops kernel. Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Dec-17 07:23 UTC
Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31
On Thu, Dec 17, 2009 at 12:00 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> Hi, > > I have uploaded a new set of rebased openSUSE dom0 xen patches and > Gentoo ebuild for 2.6.31 to > http://code.google.com/p/gentoo-xen-kernel/downloads/listAndrew, which kernel do you use as base? I tried appying it to vanilla 2.6.31 and 2.6.31.8, it failed to apply cleanly patching file drivers/net/sfc/sfc_resource/vi_resource_manager.c patching file drivers/net/sfc/Kconfig Hunk #1 FAILED at 12. 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/sfc/Kconfig.rej patching file drivers/net/sfc/Makefile Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/sfc/Makefile.rej can''t find file to patch at input line 19488 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- head-2009-07-28.orig/drivers/net/sfc/driverlink.c 2009-07-28 10:04:25.000000000 +0200 |+++ head-2009-07-28/drivers/net/sfc/driverlink.c 2009-07-28 10:05:40.000000000 +0200 -------------------------- .... and lots more like that. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2009-Dec-17 08:34 UTC
Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31
On Thu, Dec 17, 2009 at 7:23 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Thu, Dec 17, 2009 at 12:00 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote: >> Hi, >> >> I have uploaded a new set of rebased openSUSE dom0 xen patches and >> Gentoo ebuild for 2.6.31 to >> http://code.google.com/p/gentoo-xen-kernel/downloads/list > > Andrew, which kernel do you use as base? I tried appying it to vanilla > 2.6.31 and 2.6.31.8, it failed to apply cleanly >The patches will apply to 2.6.31.7 or 2.6.31.8, you need to apply them with -p1 and In numeric order, I just used a simple loop to test that they apply cleanly: linux-2.6.31 # patch -p1 -s -i /home/andy/patches.kernel.org/patch-2.6.31.7-8 ubermicro linux-2.6.31 # mkdir xenpatch ubermicro linux-2.6.31 # cd xenpatch ubermicro xenpatch # tar jxf /home/distfiles/xen-patches-2.6.31-9.tar.bz2 ubermicro xenpatch # cd .. ubermicro linux-2.6.31 # ls xenpatch/ | sort | while read file ; do patch -p1 -s -i xenpatch/$file ; done No errors, you must be doing something wrong. Andy> patching file drivers/net/sfc/sfc_resource/vi_resource_manager.c > patching file drivers/net/sfc/Kconfig > Hunk #1 FAILED at 12. > 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/sfc/Kconfig.rej > patching file drivers/net/sfc/Makefile > Hunk #1 FAILED at 1. > 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/sfc/Makefile.rej > can''t find file to patch at input line 19488 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |--- head-2009-07-28.orig/drivers/net/sfc/driverlink.c 2009-07-28 > 10:04:25.000000000 +0200 > |+++ head-2009-07-28/drivers/net/sfc/driverlink.c 2009-07-28 > 10:05:40.000000000 +0200 > -------------------------- > > > .... and lots more like that. > > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Dec-17 08:47 UTC
Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31
On Thu, Dec 17, 2009 at 3:34 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote:> ubermicro linux-2.6.31 # ls xenpatch/ | sort | while read file ; do > patch -p1 -s -i xenpatch/$file ; done > > No errors, you must be doing something wrong.Ah, OK. I was testing it with --dry-run. Apparently without that it applies cleanly. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Dec-17 09:27 UTC
Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31
On Thu, Dec 17, 2009 at 3:47 PM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Thu, Dec 17, 2009 at 3:34 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote: >> ubermicro linux-2.6.31 # ls xenpatch/ | sort | while read file ; do >> patch -p1 -s -i xenpatch/$file ; done >> >> No errors, you must be doing something wrong. > > Ah, OK. I was testing it with --dry-run. Apparently without that it > applies cleanly.Finally got it running. However "xm save" (thus, migration) is still broken, right? -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-Dec-17 10:04 UTC
Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31
What means this line ? What you patch ?> linux-2.6.31 # patch -p1 -s -i /home/andy/patches.kernel.org/patch-2.6.31.7-8The rest is understandable> ubermicro linux-2.6.31 # mkdir xenpatch > ubermicro linux-2.6.31 # cd xenpatch > ubermicro xenpatch # tar jxf /home/distfiles/xen-patches-2.6.31-9.tar.bz2 > ubermicro xenpatch # cd .. > ubermicro linux-2.6.31 # ls xenpatch/ | sort | while read file ; do > patch -p1 -s -i xenpatch/$file ; doneBoris. ________________________________ From: Andrew Lyon <andrew.lyon@gmail.com> To: Fajar A. Nugraha <fajar@fajar.net> Cc: xen-users List <xen-users@lists.xensource.com> Sent: Thu, December 17, 2009 11:34:19 AM Subject: Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31 On Thu, Dec 17, 2009 at 7:23 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Thu, Dec 17, 2009 at 12:00 AM, Andrew Lyon <andrew.lyon@gmail.com> wrote: >> Hi, >> >> I have uploaded a new set of rebased openSUSE dom0 xen patches and >> Gentoo ebuild for 2.6.31 to >> http://code.google.com/p/gentoo-xen-kernel/downloads/list > > Andrew, which kernel do you use as base? I tried appying it to vanilla > 2.6.31 and 2.6.31.8, it failed to apply cleanly >The patches will apply to 2.6.31.7 or 2.6.31.8, you need to apply them with -p1 and In numeric order, I just used a simple loop to test that they apply cleanly: linux-2.6.31 # patch -p1 -s -i /home/andy/patches.kernel.org/patch-2.6.31.7-8 ubermicro linux-2.6.31 # mkdir xenpatch ubermicro linux-2.6.31 # cd xenpatch ubermicro xenpatch # tar jxf /home/distfiles/xen-patches-2.6.31-9.tar.bz2 ubermicro xenpatch # cd .. ubermicro linux-2.6.31 # ls xenpatch/ | sort | while read file ; do patch -p1 -s -i xenpatch/$file ; done No errors, you must be doing something wrong. Andy> patching file drivers/net/sfc/sfc_resource/vi_resource_manager.c > patching file drivers/net/sfc/Kconfig > Hunk #1 FAILED at 12. > 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/sfc/Kconfig.rej > patching file drivers/net/sfc/Makefile > Hunk #1 FAILED at 1. > 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/sfc/Makefile.rej > can''t find file to patch at input line 19488 > Perhaps you used the wrong -p or --strip option? > The text leading up to this was: > -------------------------- > |--- head-2009-07-28.orig/drivers/net/sfc/driverlink.c 2009-07-28 > 10:04:25.000000000 +0200 > |+++ head-2009-07-28/drivers/net/sfc/driverlink.c 2009-07-28 > 10:05:40.000000000 +0200 > -------------------------- > > > .... and lots more like that. > > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Lyon
2009-Dec-17 12:24 UTC
Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31
On Thu, Dec 17, 2009 at 9:27 AM, Fajar A. Nugraha <fajar@fajar.net> wrote:> On Thu, Dec 17, 2009 at 3:47 PM, Fajar A. Nugraha <fajar@fajar.net> wrote: >> On Thu, Dec 17, 2009 at 3:34 PM, Andrew Lyon <andrew.lyon@gmail.com> wrote: >>> ubermicro linux-2.6.31 # ls xenpatch/ | sort | while read file ; do >>> patch -p1 -s -i xenpatch/$file ; done >>> >>> No errors, you must be doing something wrong. >> >> Ah, OK. I was testing it with --dry-run. Apparently without that it >> applies cleanly. > > > Finally got it running. However "xm save" (thus, migration) is still > broken, right?I tested save/restore of a hvm domain but not a pv!, I have just tested it and found that it does not work unless I use a kernel that has dom0 support enabled , this is because the menu option to select CONFIG_SUSPEND Depends on: !XEN_UNPRIVILEGED_GUEST so unless you select CONFIG_XEN_PRIVILEGED_GUEST (dom0 support) you cannot enable it when building a Xen kernel, however a simple change to drivers/xen/Kconfig will enable CONFIG_SUSPEND automatically for domU only kernels: At line 21 or thereabouts add "select SUSPEND": config XEN_UNPRIVILEGED_GUEST def_bool !XEN_PRIVILEGED_GUEST select PM select PM_SLEEP select SUSPEND select PM_SLEEP_SMP if SMP Save/Restore then seems to work ok apart from some errors logged in the domU: i686: ------------[ cut here ]------------ WARNING: at kernel/irq/manage.c:273 __enable_irq+0x32/0x5b() Unbalanced enable for IRQ 518 Modules linked in: Pid: 3087, comm: suspend Tainted: G W 2.6.31-xen-r9 #1 Call Trace: [<c0157037>] ? __enable_irq+0x32/0x5b [<c01244c7>] warn_slowpath_common+0x49/0x79 [<c012452b>] warn_slowpath_fmt+0x24/0x27 [<c0157037>] __enable_irq+0x32/0x5b [<c0158b6d>] resume_device_irqs+0x3b/0x5d [<c02c93cb>] dpm_resume_noirq+0x74/0x7b [<c02cfe74>] __xen_suspend+0xf7/0x101 [<c02cf488>] ? xen_resume_notifier+0x0/0x21 [<c02cf88f>] xen_suspend+0x4d/0xbe [<c02cf842>] ? xen_suspend+0x0/0xbe [<c01041bf>] kernel_thread_helper+0x7/0x10 ---[ end trace 36e45385cf944380 ]--- ------------[ cut here ]------------ WARNING: at kernel/irq/manage.c:273 __enable_irq+0x32/0x5b() Unbalanced enable for IRQ 520 Modules linked in: Pid: 3087, comm: suspend Tainted: G W 2.6.31-xen-r9 #1 Call Trace: [<c0157037>] ? __enable_irq+0x32/0x5b [<c01244c7>] warn_slowpath_common+0x49/0x79 [<c012452b>] warn_slowpath_fmt+0x24/0x27 [<c0157037>] __enable_irq+0x32/0x5b [<c0158b6d>] resume_device_irqs+0x3b/0x5d [<c02c93cb>] dpm_resume_noirq+0x74/0x7b [<c02cfe74>] __xen_suspend+0xf7/0x101 [<c02cf488>] ? xen_resume_notifier+0x0/0x21 [<c02cf88f>] xen_suspend+0x4d/0xbe [<c02cf842>] ? xen_suspend+0x0/0xbe [<c01041bf>] kernel_thread_helper+0x7/0x10 ---[ end trace 36e45385cf944381 ]--- ------------[ cut here ]------------ WARNING: at kernel/irq/manage.c:273 __enable_irq+0x32/0x5b() Unbalanced enable for IRQ 521 Modules linked in: Pid: 3087, comm: suspend Tainted: G W 2.6.31-xen-r9 #1 Call Trace: [<c0157037>] ? __enable_irq+0x32/0x5b [<c01244c7>] warn_slowpath_common+0x49/0x79 [<c012452b>] warn_slowpath_fmt+0x24/0x27 [<c0157037>] __enable_irq+0x32/0x5b [<c0158b6d>] resume_device_irqs+0x3b/0x5d [<c02c93cb>] dpm_resume_noirq+0x74/0x7b [<c02cfe74>] __xen_suspend+0xf7/0x101 [<c02cf488>] ? xen_resume_notifier+0x0/0x21 [<c02cf88f>] xen_suspend+0x4d/0xbe [<c02cf842>] ? xen_suspend+0x0/0xbe [<c01041bf>] kernel_thread_helper+0x7/0x10 ---[ end trace 36e45385cf944382 ]--- suspend: event channel 40 ------------[ cut here ]------------ x86_64: ------------[ cut here ]------------ WARNING: at kernel/irq/manage.c:273 resume_device_irqs+0x43/0x6d() Unbalanced enable for IRQ 390 Modules linked in: Pid: 10245, comm: suspend Tainted: G W 2.6.31-xen-r9 #1 Call Trace: [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff80232049>] ? warn_slowpath_common+0x77/0xa3 [<ffffffff802320d1>] ? warn_slowpath_fmt+0x51/0x59 [<ffffffff80453642>] ? xenbus_watch_path+0x23/0x5a [<ffffffff80446234>] ? platform_pm_resume_noirq+0x0/0x36 [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff80451074>] ? __xen_suspend+0x112/0x11b [<ffffffff80450528>] ? xen_resume_notifier+0x0/0x1b [<ffffffff80450997>] ? xen_suspend+0x58/0xcd [<ffffffff8020aa4a>] ? child_rip+0xa/0x20 [<ffffffff8045093f>] ? xen_suspend+0x0/0xcd [<ffffffff8020aa40>] ? child_rip+0x0/0x20 ---[ end trace 16035c20df7c2fef ]--- ------------[ cut here ]------------ WARNING: at kernel/irq/manage.c:273 resume_device_irqs+0x43/0x6d() Unbalanced enable for IRQ 392 Modules linked in: Pid: 10245, comm: suspend Tainted: G W 2.6.31-xen-r9 #1 Call Trace: [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff80232049>] ? warn_slowpath_common+0x77/0xa3 [<ffffffff802320d1>] ? warn_slowpath_fmt+0x51/0x59 [<ffffffff80453642>] ? xenbus_watch_path+0x23/0x5a [<ffffffff80267f2d>] ? default_enable+0x1a/0x28 [<ffffffff80267e2a>] ? check_irq_resend+0x16/0x54 [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff80451074>] ? __xen_suspend+0x112/0x11b [<ffffffff80450528>] ? xen_resume_notifier+0x0/0x1b [<ffffffff80450997>] ? xen_suspend+0x58/0xcd [<ffffffff8020aa4a>] ? child_rip+0xa/0x20 [<ffffffff8045093f>] ? xen_suspend+0x0/0xcd [<ffffffff8020aa40>] ? child_rip+0x0/0x20 ---[ end trace 16035c20df7c2ff0 ]--- ------------[ cut here ]------------ WARNING: at kernel/irq/manage.c:273 resume_device_irqs+0x43/0x6d() Unbalanced enable for IRQ 393 Modules linked in: Pid: 10245, comm: suspend Tainted: G W 2.6.31-xen-r9 #1 Call Trace: [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff80232049>] ? warn_slowpath_common+0x77/0xa3 [<ffffffff802320d1>] ? warn_slowpath_fmt+0x51/0x59 [<ffffffff80453642>] ? xenbus_watch_path+0x23/0x5a [<ffffffff80267f2d>] ? default_enable+0x1a/0x28 [<ffffffff80267e2a>] ? check_irq_resend+0x16/0x54 [<ffffffff802692cb>] ? resume_device_irqs+0x43/0x6d [<ffffffff80451074>] ? __xen_suspend+0x112/0x11b [<ffffffff80450528>] ? xen_resume_notifier+0x0/0x1b [<ffffffff80450997>] ? xen_suspend+0x58/0xcd [<ffffffff8020aa4a>] ? child_rip+0xa/0x20 [<ffffffff8045093f>] ? xen_suspend+0x0/0xcd [<ffffffff8020aa40>] ? child_rip+0x0/0x20 ---[ end trace 16035c20df7c2ff1 ]--- suspend: event channel 16 I have CC''ed Jan in case he has any comments. Andy> > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Boris Derzhavets
2009-Dec-17 12:36 UTC
Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31 , 2.6.31.8 xenified seems to work stable
Xenified 2.6.31.8 via Andy''s rebased patches per openSUSE under Xen 3.4.2 on top of Ubuntu 9.04 Server handles complete install F12 PV DomU (with ext4 for boot fs, Xen 3.4.2 patched per MRJ ) on phy:/dev/sda7 device. Compare with https://bugzilla.novell.com/show_bug.cgi?id=553690 Boris. ________________________________ >> > From: Andrew Lyon <andrew.lyon@gmail.com> > To: Fajar A. Nugraha <fajar@fajar.net> > Cc: xen-users List <xen-users@lists.xensource.com> > Sent: Thu, December 17, 2009 11:34:19 AM > Subject: Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31 > > On Thu, Dec 17, 2009 at 7:23 AM, Fajar A. Nugraha <fajar@fajar.net> wrote: >> On Thu, Dec 17, 2009 at 12:00 AM, Andrew Lyon <andrew.lyon@gmail.com> >> wrote: >>> Hi, >>> >>> I have uploaded a new set of rebased openSUSE dom0 xen patches and >>> Gentoo ebuild for 2.6.31 to >>> http://code.google.com/p/gentoo-xen-kernel/downloads/list >> >> Andrew, which kernel do you use as base? I tried appying it to vanilla >> 2.6.31 and 2.6.31.8, it failed to apply cleanly >> > > The patches will apply to 2.6.31.7 or 2.6.31.8, you need to apply them > with -p1 and In numeric order, I just used a simple loop to test that > they apply cleanly: > > linux-2.6.31 # patch -p1 -s -i > /home/andy/patches.kernel.org/patch-2.6.31.7-8 > ubermicro linux-2.6.31 # mkdir xenpatch > ubermicro linux-2.6.31 # cd xenpatch > ubermicro xenpatch # tar jxf /home/distfiles/xen-patches-2.6.31-9.tar.bz2 > ubermicro xenpatch # cd .. > ubermicro linux-2.6.31 # ls xenpatch/ | sort | while read file ; do > patch -p1 -s -i xenpatch/$file ; done > > No errors, you must be doing something wrong. > > Andy > >> patching file drivers/net/sfc/sfc_resource/vi_resource_manager.c >> patching file drivers/net/sfc/Kconfig >> Hunk #1 FAILED at 12. >> 1 out of 1 hunk FAILED -- saving rejects to file >> drivers/net/sfc/Kconfig.rej >> patching file drivers/net/sfc/Makefile >> Hunk #1 FAILED at 1. >> 1 out of 1 hunk FAILED -- saving rejects to file >> drivers/net/sfc/Makefile.rej >> can''t find file to patch at input line 19488 >> Perhaps you used the wrong -p or --strip option? >> The text leading up to this was: >> -------------------------- >> |--- head-2009-07-28.orig/drivers/net/sfc/driverlink.c 2009-07-28 >> 10:04:25.000000000 +0200 >> |+++ head-2009-07-28/drivers/net/sfc/driverlink.c 2009-07-28 >> 10:05:40.000000000 +0200 >> -------------------------- >> >> >> .... and lots more like that. >> >> >> -- >> Fajar >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users