WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>, xen-users List <xen-users@xxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>
Subject: Re: [Xen-users] rebased openSUSE dom0 xen patches for 2.6.31
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Thu, 17 Dec 2009 12:24:52 +0000
Cc:
Delivery-date: Thu, 17 Dec 2009 04:25:47 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=zKQwx1osQjyaIC8/k+48UpgANi/k9AKKj44cw5RlOoE=; b=RtCws6FjS+qHratD28D12uiTFbv1Y4imM7rnswCnZ5Jqh1oiQOMFs8ZeD52Nuh/b7r F1ojFPbfTv9+HS9Qv2Nc4F8p9rmqa3F06gRa/GBBzfvhKJdQpm65M2clyZGVsNpDOyHw o/tHbAlggALHAWLbICR9Xv7pY02u+y3eojyQ8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=wnN6lFvNoappJASIM4mHIcK1sCPqq8pwQfvjNio3yO6z9vgMvBaH0XulQbk0emBPdR OE5llpmdweESmNCIBZDMAQB7mXV8H3vo3pIFGc80u5Eub4tfEjFFkq6lGPMXNqkQFT4c G/C9QlkZUXV2wrh7GH66UF+j/VmXRzlDKX1KY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0912170127p1cc4dd8n8c0f091dd77d652b@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f4527be0912160900h2d09e8bdj2e5db107ae0aa41a@xxxxxxxxxxxxxx> <7207d96f0912162323m3ecaf21fv9a56656e711a8e59@xxxxxxxxxxxxxx> <f4527be0912170034w1ac6a9f5na583b23d9fff6dd7@xxxxxxxxxxxxxx> <7207d96f0912170047g7722d8x322451d4a968a0f0@xxxxxxxxxxxxxx> <7207d96f0912170127p1cc4dd8n8c0f091dd77d652b@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Dec 17, 2009 at 9:27 AM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
> On Thu, Dec 17, 2009 at 3:47 PM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
>> On Thu, Dec 17, 2009 at 3:34 PM, Andrew Lyon <andrew.lyon@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users