From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Etienne Martineau <etmartin@cisco.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Hypervisor architecture?
Date: Tue, 04 May 2010 13:33:02 -0700 [thread overview]
Message-ID: <4BE0847E.3090300@goop.org> (raw)
In-Reply-To: <1273001107.27500.5.camel@etienne-desktop>
On 05/04/2010 12:25 PM, Etienne Martineau wrote:
> Is there any documents around that describe the 'internal' architecture
> of the Hypervisor?
>
> So far my understanding is such that the Hypervisor is a 'strip-down'
> Linux 2.6.(12/13) + lot's of customization specific to Xen.
>
Xen and Linux diverged a long time ago, early in the Linux 2.6 series,
with occasional feature-specific transfusions from Linux into Xen
since. There are some similarities in how they deal with platform
issues (APICs, etc), but they're mostly different now.
> What is common?
> What is different?
>
A vcpu is akin to a task; a domain is like a process (where multi-vcpu =
multi-threaded). Events are a bit like signals (pending events are
checked for on return to guest mode and the return is redirected to the
event handler). Hypercalls are very similar to syscalls. Memory
management is largely different.
One of the big differences is that Xen doesn't have a per-vcpu
hypervisor (kernel) stack, and vcpus don't have a hypervisor context.
While they're actually running in the hypervisor they use a pcpu stack,
but if it blocks/deschedules then it must always return to guest
context, saving away enough info to continue what it was doing when it
re-enters Xen. Once you get your head around that, a lot of things
become much clearer.
J
next prev parent reply other threads:[~2010-05-04 20:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-04 19:25 Hypervisor architecture? Etienne Martineau
2010-05-04 20:33 ` Jeremy Fitzhardinge [this message]
2010-05-04 23:36 ` Etienne Martineau
2010-05-04 23:58 ` Jeremy Fitzhardinge
2010-05-04 23:20 ` TSFH
2010-05-07 15:05 ` George Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BE0847E.3090300@goop.org \
--to=jeremy@goop.org \
--cc=etmartin@cisco.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.