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-devel

Re: [Xen-devel] Re: No shutdown of domU: xenbus_dev_shutdown: device/con

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] Re: No shutdown of domU: xenbus_dev_shutdown: device/console/0: Initialising != Connected, skipping
From: Sander Eikelenboom <linux@xxxxxxxxxxxxxx>
Date: Thu, 18 Nov 2010 20:57:15 +0100
Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, "Xen-devel@xxxxxxxxxxxxxxxxxxx" <Xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxx>
Delivery-date: Thu, 18 Nov 2010 11:59:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CE44FDB.7000508@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Eikelenboom IT services
References: <1341501057.20101117132828@xxxxxxxxxxxxxx> <C909A6EB.A4FB%keir@xxxxxxx> <1945713192.20101117212227@xxxxxxxxxxxxxx> <4CE44FDB.7000508@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Jeremy/Keir,

I have tried to add the following lines:
       if (!strcmp(type, "console"))
               return 0;

But it seems to be a red herring .. although the "the xenbus_dev_shutdown: 
device/console/0: Initialising != Connected, skipping" warning is gone.
The PV domU guest still doesn't get completely halted:
- It stays in a running state
- It uses 100% cpu according to xentop
- I can still connect to it's console

So probably something is stuck in a waiting loop, which doesn't sleep in 
between and consumes 100% cpu.

Last lines of domU's console(with some additional printk's in 
xenbus_dev_shutdown):

Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Stopping enhanced syslogd: rsyslogd.
Asking all remaining processes to terminate...done.
All processes ended within 2 seconds....done.
Deconfiguring network interfaces...done.
Cleaning up ifupdown....
Deactivating swap...done.
Unmounting local filesystems...done.
Will now halt.
[   46.643035] md: stopping all md devices.
[   47.643320] xenbus_dev_shutdown:  trying shutdown of device/vif/0: Connected
[   47.716448] xenbus_dev_shutdown: result of shutdown of device/vif/0: Closed
[   47.716461] xenbus_dev_shutdown:  trying shutdown of device/vbd/51714: 
Connected
[   47.772293] xenbus_dev_shutdown: result of shutdown of device/vbd/51714: 
Closed
[   47.772306] xenbus_dev_shutdown:  trying shutdown of device/vbd/51713: 
Connected
[   47.829384] xenbus_dev_shutdown: result of shutdown of device/vbd/51713: 
Closed
[   47.829415] System halted.



it's a domU using a 2.6.37-rc2 kernel, file: based disk access, nothing very 
special.

the only difference that triggers it is:
vcpus=1 works fine ..
vcpus>1 symptoms above ..

I have also added xend.log, with first a boot and shutdown with vpcus=1 and 
then a boot and shutdown with vpcus=4
I left the domain(with 4vcpus) running with 100% cpu for 10 minutes, but 
doesn't seem to hit any timeout, and keeps running.
On 20:40 it ends up stuck, on 20:51 i'm shooting the domain off with xm destroy.


Any pointers for adding extra debug info ?

--
Sander




Wednesday, November 17, 2010, 10:57:47 PM, you wrote:

> On 11/17/2010 12:22 PM, Sander Eikelenboom wrote:
>> Ah yes, 2.6.18 does contain the following line  in xenbus_probe.c and 
>> 2.6.37-rc2 not:
>>
>> -       if (!strcmp(type, "console"))
>> -               return 0;
>> It seems to be changed,
>>
>>
>> There seems to have been a patch 
>> http://lists.xensource.com/archives/html/xen-devel/2009-11/msg01072.html but 
>> it seems it's not applied to xenbus in linux upstream.

> And does this patch fix things for you?

> But I have to say that's pretty gross.  Is it really the right thing to do?

>     J

Attachment: xend.log
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>