From: weiming Subject: Re: how to callback from hypervisor to guest os? Date: Mon, 7 Jul 2008 17:46:50 -0400 Message-ID: References: <1215335738.9407.39.camel@thinkpad.localdomain> <1215379562.22922.21.camel@thinkpad.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1877518879==" Return-path: In-Reply-To: <1215379562.22922.21.camel@thinkpad.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org --===============1877518879== Content-Type: multipart/alternative; boundary="----=_Part_18411_3850389.1215467210430" ------=_Part_18411_3850389.1215467210430 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 finished processing, can the control be back to xen? (In the interrupt handler, I need the guest to look up something within its own kernel data structure and return the result to xen. This is the purpose of my question) Thanks in advance! Weiming On Sun, Jul 6, 2008 at 5:26 PM, Daniel Stodden wrote: > On Sun, 2008-07-06 at 11:46 -0400, weiming wrote: > > Hi Daniel, > > > > Thanks a lot. You confirmed my worries. Event channel may not work for > > me since I need to call the function in a interrupt handler. > > I'll check out trap injection. I don't know what is this, hope it > > would be helpful. > > Pardon, sloppy word choice. What I mean would be rather called a 'trap > bounce' or just 'callback' in the Xen source. Event channel activations > work on top of that. > > Best, > Daniel > > -- > Daniel Stodden > LRR - Lehrstuhl f=FCr Rechnertechnik und Rechnerorganisation > Institut f=FCr Informatik der TU M=FCnchen D-85748 Garching > http://www.lrr.in.tum.de/~stodden > mailto:stodden@cs.tum.edu > PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B > > > ------=_Part_18411_3850389.1215467210430 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Daniel,

Event channel is one-way and async, right?
When hyper= visor send a notification to guest within a interrupt handler, can the gues= t receive and response to the notification? If yes, after guest finished pr= ocessing, can the control be back to xen?

(In the interrupt handler, I need the guest to look up something within= its own kernel data structure and return the result to xen. This is the pu= rpose of my question)

Thanks in advance!

Weiming

On Sun, Jul 6, 2008 at 5:26 PM, Daniel Stodden &= lt;stodden@cs.tum.edu> wrote:<= br>
On Sun, 2008-07-06 at 11:46 -0400, weiming wrote:
> Hi Daniel,
>
> Thanks a lot. You confirmed my worries. Event channel may not work for=
> me since I need to call the function in a interrupt handler.
> I'll check out trap injection. I don't know what is this, hope= it
> would be helpful.

Pardon, sloppy word choice. What I mean would be rather called a '= ;trap
bounce' or just 'callback' in the Xen source. Event channel act= ivations
work on top of that.

Best,
Daniel

--
Daniel Stodden
LRR     -      Lehrstuhl f=FCr Rechnertechnik und = Rechnerorganisation
Institut f=FCr Informatik der TU M=FCnchen         &nbs= p;   D-85748 Garching
http://ww= w.lrr.in.tum.de/~stodden         mailto:stodden@cs.tum.edu
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33  3D80 457E 82AE B0D8 735B


------=_Part_18411_3850389.1215467210430-- --===============1877518879== 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 --===============1877518879==--