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/
Home Products Support Community News


[Xen-devel] Re: Setting callbacks for events

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: Setting callbacks for events
From: "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
Date: Fri, 8 Oct 2010 12:48:47 -0500
Delivery-date: Fri, 08 Oct 2010 10:49:33 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=xqGYGk0m4LPoz9Lbj3qyr51Sffp/jldJX7V9sjgL/38=; b=xB/TmZP1ImQ9YcI6kKDGsf7R0Y2Q+Wu+cutT5U22l+Vnjxqx8csD7VYWFazB8kmQbt YuPtaw0y9IaCz0SqrIE9HAUmGaBnoz+aUl3IEi/qrTRoLCDUd239fjgmgCof6eukD7/F XjT8YlFYtTgIM5RnlWirkc8rnJ4tK+PXZsho4=
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=DaLPi/yyubexTdhe5wMgfp7g87hZqzHPT8qVHumP4kB/VbOInMiotb8CwkqJKSooc3 VEe/Q0XMqdsozf2e8lGtMiKVngFSEQtfJWoPrRIrZoA8c73CIGhY143/bN+T/IlqLucK 0cHDoATOXW5kz1103gugjI5DiNKnimrN39+Vs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikDpijY86X6pfMVuWTvqebbNrR5KJ6u+hdMGeHo@xxxxxxxxxxxxxx>
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: <AANLkTik1MUJo=3ARcQG4t6=ibQ5caRx1cATiWjPzF6e_@xxxxxxxxxxxxxx> <AANLkTikDpijY86X6pfMVuWTvqebbNrR5KJ6u+hdMGeHo@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

i understood that these callbacks are being setup by the kernel by using HYPERVISOR_setcallbacks(). What if HYPERVISOR setup a callback in Dom0 or how can hypervisor call a function in Dom0?

Srujan D. Kotikela

On Fri, Oct 8, 2010 at 12:22 PM, Srujan D. Kotikela <ksrujandas@xxxxxxxxx> wrote:

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
<Prev in Thread] Current Thread [Next in Thread>