Skip to contentSkip to conversation

docs/sphinx: Introduction

PATCH In review Andrew Cooper 2 participants 3 messages Oct 3, 2019 – Oct 19, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 docs/sphinx: Introduction

Put together an introduction page for the Sphinx/RST docs, along with a glossary which will accumulate over time.

---
CC: Lars Kurth <[email protected]>
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Juergen Gross <[email protected]>

---
 docs/admin-guide/index.rst               |  1 +
 docs/admin-guide/introduction.rst        | 40 +++++++++++++
 docs/admin-guide/xen-overview.drawio.svg | 97 ++++++++++++++++++++++++++++++++
 docs/glossary.rst                        | 52 +++++++++++++++++
 docs/index.rst                           | 12 ++++
 5 files changed, 202 insertions(+)
 create mode 100644 docs/admin-guide/introduction.rst
 create mode 100644 docs/admin-guide/xen-overview.drawio.svg
 create mode 100644 docs/glossary.rst
docs/admin-guide/index.rst +1 -0
index 1da7c8bf4d..54e6f65de3 100644
@@ -4,4 +4,5 @@ Admin Guide
 ===========
 
 .. toctree::
+   introduction
    microcode-loading
docs/admin-guide/introduction.rst new file +40 -0
new file mode 100644
index 0000000000..6da2758d70
@@ -0,0 +1,40 @@
+.. SPDX-License-Identifier: CC-BY-4.0
+
+Introduction
+============
+
+Xen is an open source, bare metal hypervisor.  It runs as the most privileged
+piece of software, and shares the resources of the hardware between virtual
+machines.
+
+In Xen terminology, there are :term:`domains<domain>`, commonly abbreviated to
+dom, which are identified by their numeric :term:`domid`.
+
+When Xen boots, dom0 is automatically started as well.  Dom0 is a virtual
+machine which, by default, is granted full permissions [1]_.  A typical setup
+might be:
+
+.. image:: xen-overview.drawio.svg
+
+Dom0 takes the role of :term:`control domain`, responsible for creating and
+managing other virtual machines, and the role of :term:`hardware domain`,
+responsible for hardware and marshalling guest I/O.
+
+Xen is deliberately minimal, and has no device drivers [2]_.  Xen manages RAM,
+schedules virtual CPUs on the available physical CPUs, and marshals
+interrupts.
+
+Xen also provides a hypercall interface to guests, including event channels
+(virtual interrupts), grant tables (shared memory), on which a lot of higher
+level functionality is built.
+
+.. rubric:: Footnotes
+
+.. [1] A common misconception with Xen's architecture is that dom0 is somehow
+       different to other guests.  The choice of id 0 is not an accident, and
+       follows in UNIX heritage.
+
+.. [2] This definition might be fuzzy.  Xen can talk to common serial UARTs,
+       and knows how to drive various CPU internal devices such as IOMMUs, but
+       has no knowledge of network cards, disks, etc.  All of that is the
+       hardware domains responsibility.
docs/admin-guide/xen-overview.drawio.svg new file +97 -0

97 lines not on this page · raw message

docs/glossary.rst new file +52 -0

52 lines not on this page · raw message

docs/index.rst +12 -0
index 7b441c4180..b8ab13178c 100644
@@ -8,6 +8,10 @@ The Xen Hypervisor documentation
    Xen's Sphinx/RST documentation is a work in progress.  The existing
    documentation can be found at https://xenbits.xen.org/docs/
 
+Xen is an open source, bare metal hypervisor.  It runs as the most privileged
+piece of software, and shares the resources of the hardware between virtual
+machines.  See :doc:`admin-guide/introduction` for an introduction to a Xen
+system.
 
 User documentation
 ------------------
@@ -47,3 +51,11 @@ kind of development environment.
    :maxdepth: 2
 
    hypervisor-guide/index
+
+
+Miscellanea
+-----------
+
+.. toctree::
+
+   glossary
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 3/4
#1 lore raw

On 03/10/2019, 21:59, "Andrew Cooper" <[email protected]> wrote:

Put together an introduction page for the Sphinx/RST docs, along with a glossary which will accumulate over time.

There were a few minor improvements which could be made, I am listing these below, but none are show-stoppers.

+Xen is an open source, bare metal hypervisor. It runs as the most privileged +piece of software, and shares the resources of the hardware between virtual
Maybe better: s/software/software on the system/ or s/software/software on the host/
+machines.

+ hardware domain
+ A :term:domain, commonly dom0, which shares responsibility with Xen
+ about the system as a whole.
+
+ By default it gets all devices, including all disks and network cards, so
+ is responsible for multiplexing guest I/O

This is a little unclear: in particular the 1st paragraph. Earlier you talk about hardware domain="responsible for hardware and marshalling guest I/O", which is clearer.

Maybe:

A :term:domain, commonly dom0, which hosts all devices, including disks and network cards and is responsible for multiplexing guest I/O

is better

Regards
Lars

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 9 lines · Lars Kurth

On 03/10/2019, 21:59, "Andrew Cooper" <[email protected]> wrote:

Put together an introduction page for the Sphinx/RST docs, along with a glossary which will accumulate over time.

Thanks.

Quoted 7 lines

There were a few minor improvements which could be made, I am listing these below, but none are show-stoppers.

+Xen is an open source, bare metal hypervisor. It runs as the most privileged +piece of software, and shares the resources of the hardware between virtual
Maybe better: s/software/software on the system/ or s/software/software on the host/

Fixed.

Quoted 12 lines

+machines.

+ hardware domain
+ A :term:domain, commonly dom0, which shares responsibility with Xen
+ about the system as a whole.
+
+ By default it gets all devices, including all disks and network cards, so
+ is responsible for multiplexing guest I/O

This is a little unclear: in particular the 1st paragraph. Earlier you talk about hardware domain="responsible for hardware and marshalling guest I/O", which is clearer.

Quoted 6 lines

Maybe:

A :term:domain, commonly dom0, which hosts all devices, including disks and network cards and is responsible for multiplexing guest I/O

is better

Sadly, its not accurate.

Multiplexing of I/O is only in the case that device driver domains aren't in use.  The other example you cite is a description of the associated image.

There are things besides I/O which the hardware domain is responsible for, such as APCI OPSM (but only in x86), and system reboot etc.

I have left the description as-is, for lack of an obviously better way of expressing things.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel