Re: [Xen-devel] Thread in hypervisor

George Dunlap
Wed, 18 Apr 2007 14:27:35 -0000

The Linux kernel is that the Linux kernel keeps kernel process stacks,
so you can have a "kernel thread".  Xen does not keep in-hypervisor
stacks around -- once Xen returns to domain-space, all context is
completely gone.  So there can be no ''hypervisor threads''.
(It''s a
weird concept to get used to at first.)

So your options are basically, to create a specialized domain to do
whatever "thread" activity you want done, or to use a timer function
to do the same thing.

What kind of a task are you talking about?

 -George

On 4/17/07, Sangmin Lee <sal008@cs.ucsd.edu>
wrote:
> Hi all,
> 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 :-) ).
> Does anyone have any idea on this?
> Thanks,
> Sangmin
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>