[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: Setting callbacks for events


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
  • Date: Fri, 8 Oct 2010 12:22:54 -0500
  • Delivery-date: Fri, 08 Oct 2010 10:23:45 -0700
  • 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 :content-type; b=c89lWQjAsGmG+oqIFK9Kz9a7pWGH5KKBXkPHFUYDmZBOn6MF1G8CSfucGwT3KKuf2/ sAaHDEisfGsDGuYeIY6k2T3jTeZ/s1jewXROQhsvoyI0GmHdZtEOZn+yasNyAmbCnAnJ sufoudDMw4Yo3ZPP+0cvPmw5l4u10aqeMpt98=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

I found do_set_callbacks function in x86_64/traps.c . This function is taking 3 parameters. event_address, failsafe_address, syscall_address.

If I have to setup the event notification handler (similar to hypervisor_callback in mini-os) is do_set_callback function the way to go?

If so, should I edit entry.S and include hypervisor_callback code there?

Is this function called by hypervisor/kernel? I mean which of the hypervisor/kernel supposed to set these things?

Is there no function where I can set up handler for event_port individually.

--
Srujan D. Kotikela


On Thu, Oct 7, 2010 at 8:07 PM, Srujan D. Kotikela <ksrujandas@xxxxxxxxx> wrote:
How do I set/register call backs for events? I saw the hypercall HYPERVISOR_set_callback() which takes event selector, event address, failsafe selector and failsafe address as parameters. I was expecting a function pointer to be passed. Can anyone explain me how work this out?

--
Srujan D. Kotikela

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.