* What are the mechanism for switching between Xen Hypervisor and Virtual Machine
@ 2008-07-10 8:18 Tom Creck
2008-07-11 15:07 ` Mark Williamson
0 siblings, 1 reply; 2+ messages in thread
From: Tom Creck @ 2008-07-10 8:18 UTC (permalink / raw)
To: xen-devel
Hello, everyone:
I'm trying to summerize all the ways of control flow switch between a
virtual machine and the Xen hypervisor, such as hypercall, either VM->Xen or
Xen->VM.
Can you give me a complete list of all the ways and explain in general
them to some extent?
--
View this message in context: http://www.nabble.com/What-are-the-mechanism-for-switching-between-Xen-Hypervisor-and-Virtual-Machine-tp18377627p18377627.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What are the mechanism for switching between Xen Hypervisor and Virtual Machine
2008-07-10 8:18 What are the mechanism for switching between Xen Hypervisor and Virtual Machine Tom Creck
@ 2008-07-11 15:07 ` Mark Williamson
0 siblings, 0 replies; 2+ messages in thread
From: Mark Williamson @ 2008-07-11 15:07 UTC (permalink / raw)
To: xen-devel; +Cc: Tom Creck
> I'm trying to summerize all the ways of control flow switch between a
> virtual machine and the Xen hypervisor, such as hypercall, either VM->Xen
> or Xen->VM.
> Can you give me a complete list of all the ways and explain in
> general them to some extent?
VM->Xen transitions will occur on some some kind of interrupt-like event. For
instance, a software interrupt by the guest kernel (triggering a hypercall)
and certain kinds of exceptions / faults that may occur whilst running the
guest. Interrupts from hardware devices - whether they're owned by a guest
or Xen itself - will also cause a guest->Xen transition so that Xen can take
appropriate action.
Xen->VM transitions occur after Xen has handled an interrupt of some kind. If
the interrupt was handled internally by Xen, the guest may be unaware of
this. If a hypercall was being executed, the call will return in the guest.
If Xen decided to send an event to a guest then the corresponding event
channel bit will be set. If Xen decided to reschedule then it may be
returning to a *different* guest than when the interrupt occurred.
Hope that helps,
Cheers,
Mark
--
Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-11 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10 8:18 What are the mechanism for switching between Xen Hypervisor and Virtual Machine Tom Creck
2008-07-11 15:07 ` 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.