All of lore.kernel.org
 help / color / mirror / Atom feed
* Thread in hypervisor
@ 2007-04-17 23:20 Sangmin Lee
  2007-04-18 14:27 ` George Dunlap
  2007-04-18 15:17 ` Mark Williamson
  0 siblings, 2 replies; 3+ messages in thread
From: Sangmin Lee @ 2007-04-17 23:20 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Thread in hypervisor
  2007-04-17 23:20 Thread in hypervisor Sangmin Lee
@ 2007-04-18 14:27 ` George Dunlap
  2007-04-18 15:17 ` Mark Williamson
  1 sibling, 0 replies; 3+ messages in thread
From: George Dunlap @ 2007-04-18 14:27 UTC (permalink / raw)
  To: Sangmin Lee; +Cc: xen-devel

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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Thread in hypervisor
  2007-04-17 23:20 Thread in hypervisor Sangmin Lee
  2007-04-18 14:27 ` George Dunlap
@ 2007-04-18 15:17 ` Mark Williamson
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Williamson @ 2007-04-18 15:17 UTC (permalink / raw)
  To: xen-devel; +Cc: Stephan Diestelhorst, Keir Fraser, Sangmin Lee

> 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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-18 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-17 23:20 Thread in hypervisor Sangmin Lee
2007-04-18 14:27 ` George Dunlap
2007-04-18 15:17 ` Mark Williamson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.