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] wait_on_xen_event_channel

To: Ky Srinivasan <ksrinivasan@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] wait_on_xen_event_channel
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 08 Mar 2007 07:57:04 +0000
Delivery-date: Wed, 07 Mar 2007 23:56:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45EEF742.E57C.0030.0@xxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdhV1wvmqEkPM1KEduPKQAWy6hiGQ==
Thread-topic: [Xen-devel] wait_on_xen_event_channel
User-agent: Microsoft-Entourage/11.3.3.061214
On 7/3/07 23:40, "Ky Srinivasan" <ksrinivasan@xxxxxxxxxx> wrote:

> Why does this macro take port as an argument?

It's logically a part of the interface for callers, but it turns out that,
at least right now, a simple implementation that can completely ignore the
port argument works just fine. That may change in future.

> It does not look like the port
> argument is used in the macro.  I want to implement a blocking synchronization
> primitive in the hypervisor where the invoking vcpu will relinquish the CPU;
> and the execution would resume out of the blocking primitive when the vcpu is
> "woken up".  The wait_on_xen_event_channel appeared to be what I wanted on
> "switch out" side; however when the vcpu is awakened the execution is not
> restored where I thought it would be.

Since Xen/x86 doesn't have per-vcpu Xen stacks, you have to manually create
a continuation (somehow). Depending on what you want to do, we can probably
add what it is you need.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>