From: Mark Williamson Subject: Re: Thread in hypervisor Date: Wed, 18 Apr 2007 16:17:10 +0100 Message-ID: <200704181617.12633.mark.williamson@cl.cam.ac.uk> References: <46255620.3010107@cs.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46255620.3010107@cs.ucsd.edu> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Stephan Diestelhorst , Keir Fraser , Sangmin Lee List-Id: xen-devel@lists.xenproject.org > I would like to run some tasks in context of hypervisor. > I saw some suggested to use timer but timer function seems to run in > context of a domain which is currently running. > What I want is something like kernel thread in hypervisor,( hypervisor > thread :-) ). Xen's traditionally been event-driven, but I think there's a feeling that hypervisor threads may happen at some point. I don't know what the details are though. (side note: IIRC, there was a load balancer design that used the idle domain as a "hypervisor thread" - maybe you could hack something in there?) The other possibility, I guess, is that depending on what you want to do you might be able to add a hypercall interface so that the "thread context" can be a kernel / user thread in dom0. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!