From: Keir Fraser Subject: Re: At what places is an event handler called besides a hypercall? Date: Thu, 22 Oct 2009 09:56:13 +0100 Message-ID: References: <5c7d4fb80910220034x50a0801bq99db21ede74a349a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5c7d4fb80910220034x50a0801bq99db21ede74a349a@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Shu Wu , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 22/10/2009 08:34, "Shu Wu" 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