From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: periodic tasks in Xen Date: Tue, 06 Mar 2007 19:22:08 +0000 Message-ID: References: <891be9410703061101l22fb5532p78bcd1fd7cd15e25@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <891be9410703061101l22fb5532p78bcd1fd7cd15e25@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Diwaker Gupta , xen-devel List-Id: xen-devel@lists.xenproject.org On 6/3/07 19:01, "Diwaker Gupta" 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 initialised. -- Keir