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


Re: [Xen-devel] periodic tasks in Xen

To: Diwaker Gupta <diwaker.lists@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] periodic tasks in Xen
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Tue, 06 Mar 2007 19:22:08 +0000
Delivery-date: Tue, 06 Mar 2007 11:20:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <891be9410703061101l22fb5532p78bcd1fd7cd15e25@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdgJLtA+eKw/cwXEdu2EgAWy6hiGQ==
Thread-topic: [Xen-devel] periodic tasks in Xen
User-agent: Microsoft-Entourage/
On 6/3/07 19:01, "Diwaker Gupta" <diwaker.lists@xxxxxxxxx> wrote:

> Whats the recommended way of executing periodic tasks in Xen? I can
> stick stuff in the scheduler loop, but if there's a neater way of
> doing this I'd prefer that. I think I should be able to write a
> function, and have Xen invoke it periodically (via a timer interrupt
> or some other event?) but I'm not sure about the details. Thoughts?

Run it off a timer. See xen/timer.h

> Also, is there any way of delegating such a periodic task within Xen
> to a specific core/processor in the system?

Xen timers are explicitly bound to a particular core when they are

 -- Keir

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>