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] suspending execution within Xen

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] suspending execution within Xen
From: Timenkov Yuri <ytimenkov@xxxxx>
Date: Wed, 29 Jun 2005 16:03:34 +0400
Delivery-date: Wed, 29 Jun 2005 12:02:23 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1120045998.12491.10.camel@xxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: SW-Soft
References: <1120045998.12491.10.camel@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8
may be worth using wait queues here? (or schedule())

On Wednesday 29 June 2005 15:53, Avi Kivity wrote:
> I am trying to send a stream of events about one domain to another. so I
> set up a ring between the monitoring domain and xen (not the monitored
> domain). however I am having trouble blocking when buffer space runs
> out.
>
> the intuitive
>
>    while (!buffer_space_available())
>        do_block();
>
> does not work; do_block() appears to return to guest context, not to the
> while loop (is this correct?). the other alternative,
>
>     while (!buffer_space_available())
>       if (!test_and_set_bit(EDF_BLOCKED, &ed->ed_flags))
>           domain_sleep(ed);
>
> freezes xen solid.
>
> is there a way to do it? am I missing something obvious?
>
> Avi
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

 -- 
Timenkov Yuri

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