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] why xenstore-* hangs if xenstored is not started

To: Yu Zhiguo <yuzg@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] why xenstore-* hangs if xenstored is not started
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 22 Jun 2010 08:45:04 +0100
Cc:
Delivery-date: Tue, 22 Jun 2010 00:46:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C206713.6030508@xxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcsR3Ssy29srji6PRYieyGCmZhYiugAAaheh
Thread-topic: [Xen-devel] why xenstore-* hangs if xenstored is not started
User-agent: Microsoft-Entourage/12.24.0.100205
On 22/06/2010 08:32, "Yu Zhiguo" <yuzg@xxxxxxxxxxxxxx> wrote:

>  Running xenstore-* when xenstored is not started, it will hang and
> cannot accept any signal, e.g. SIGINT.
>  I seems that the process is blocked at accessing '/proc/xen/xenbus'.
> 
>  # mount -t xenfs xenfs /proc/xen/
>  # xenstore-ls
> 
>  call trace:
>  do_ls() -> xs_directory() -> xs_talkv() -> xs_write_all() -> write()
> 
>  BLOCK is no problem but why process cannot accept signal, Any opinion?

Does the xenstore driver in the dom0 kernel put the process into
uninterruptible sleep? The 2.6.18 kernel simply returns -ENODEV in this case
I think. So perhaps pv_ops has different and inferior behaviour. At least
using interruptible sleep would be preferable.

 -- Keir

>  If start xenstored in other console, xenstore-ls executes and then
> receive the signal, seems the signal is pended...



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel