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] At what places is an event handler called besides a hyp

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] At what places is an event handler called besides a hypercall?
From: Shu Wu <superwushu@xxxxxxxxx>
Date: Fri, 23 Oct 2009 09:55:09 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Oct 2009 18:55:33 -0700
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:cc:content-type; bh=k8y9yzCXoOSPqNab0qxfgwKDiArc+N0UBFPC22EPv7Q=; b=xB/whLbHDRNFNpiGeB/i0+2aCX/QpJZLjjzxwbGMS8Q+4QSI5tz7HIMuscBE0XzmKu fR344tcRW4OnJXVUemx3dGCjSJpn+0ig8Lo0EIIPJ6WL7aacaQ1fUlSMmC/pJIbTSt6R pYGttymWBJniJIl0ZZeXhcDFn+nD8Wnl8GGuQ=
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 :cc:content-type; b=WC4fYTgzCv+P2cpTqVPPnUAPUKDBSRcyn31W5GSGKZHEYpgK7JfMkhbeaJVwrWM7Z6 KJVUJNfRXZFU7v1+a3rTghdkBDdDagexc9WRaEZTdnSO5XOLRS+1nPdys5c925MaNJ46 FFOlTdGNEWbX3ZM+MYlSXSWMbcxRGUrwKtpZo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C705DCBD.1822A%keir.fraser@xxxxxxxxxxxxx>
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>
References: <5c7d4fb80910220034x50a0801bq99db21ede74a349a@xxxxxxxxxxxxxx> <C705DCBD.1822A%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Yeah, I see it! Especially in the exception handler there is a call to test_all_events, which checks the event and calls the handler. All these will happen frequently. Thanks a lot!

2009/10/22 Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
On 22/10/2009 08:34, "Shu Wu" <superwushu@xxxxxxxxx> wrote:

> Hi, folks. I'm puzzled when the event handler is called in xen. I've only
> found a pending check and an upcall at the end of each hypercall. And an event
> delivery will cause a schedule, but no calling to the handler. So it seems
> when a domain sends a event to the other, the handler of that domain won't be
> called until it makes a hypercall or check it itself. That sounds not so
> reasonable. Could anyone tell me the truth? Thanks!

Events are checked for on any return to guest context. If the event sender
sees the receiver is running on another CPU, it sends an IPI, and on return
to guest context from that IPI the receiving CPU will deliver the event to
the receiving guest.

 -- Keir



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