From: weiming Subject: Re: how to callback from hypervisor to guest os? Date: Mon, 7 Jul 2008 18:14:47 -0400 Message-ID: References: <1215335738.9407.39.camel@thinkpad.localdomain> <1215379562.22922.21.camel@thinkpad.localdomain> <4872915A.1080705@goop.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0051208870==" Return-path: In-Reply-To: <4872915A.1080705@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: Xen Developers , Daniel Stodden List-Id: xen-devel@lists.xenproject.org --===============0051208870== Content-Type: multipart/alternative; boundary="----=_Part_18493_20878373.1215468887295" ------=_Part_18493_20878373.1215468887295 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Do you mean making a hypercall after guest domain finishes processing? If so, in xen, after event_send(), will xxx() be executed immediately (non-blocking)? Xen: Guest: _interrupt_handler() { ... ... event_send(guest_dom) event_virq_handler() post: xxx() { do_process() hypercall_xxx()? } ... } On Mon, Jul 7, 2008 at 5:57 PM, Jeremy Fitzhardinge wrote: > weiming wrote: > >> Hi Daniel, >> >> Event channel is one-way and async, right? >> When hypervisor send a notification to guest within a interrupt handler, >> can the guest receive and response to the notification? If yes, after guest >> finished processing, can the control be back to xen? >> > > It can do a hypercall. > > J > ------=_Part_18493_20878373.1215468887295 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Do you mean making a hypercall after guest domain finishes processing? = ; If so, in xen, after event_send(), will xxx() be executed immediately (no= n-blocking)?

Xen:        &n= bsp;            = ;            &n= bsp;            Gues= t:

_interrupt_handler()        &nb= sp;            =             &nb= sp;   
{
   ...
   ...
&nbs= p;  event_send(guest_dom)       &nb= sp;        event_virq_handler()
post:= xxx()           &nb= sp;            =           {
  &nb= sp;            =             &nb= sp;            =             &nb= sp;         do_process()
            &nb= sp;            =             &nb= sp;            =             hypercal= l_xxx()?

          = ;            &n= bsp;            = ;            &n= bsp;     }
   ...
}

On Mon, Jul 7, 2008 at 5:57 PM, Jeremy Fitzhardinge <jeremy@goop.org> wrote:
weiming wrote:
Hi Daniel,

Event channel is one-way and async, right?
When hypervisor send a notification to guest within a interrupt handler, ca= n the guest receive and response to the notification? If yes, after guest f= inished processing, can the control be back to xen?

It can do a hypercall.

  J

------=_Part_18493_20878373.1215468887295-- --===============0051208870== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0051208870==--