From 429281e7b7c5dcc5ce74c0fbe13c6782add2ec11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 19 Sep 2018 02:50:30 +0200 Subject: [PATCH] docs: add documentation of arch element of capabilities.xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Specifically, list sub-elements and where they can be used. In addition, describe supported machine types for Xen. Signed-off-by: Marek Marczykowski-Górecki Reviewed-by: Jim Fehlig --- docs/formatcaps.html.in | 22 +++++++++++++++++++++- docs/formatdomain.html.in | 11 ++++++----- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/docs/formatcaps.html.in b/docs/formatcaps.html.in index 41a9a3a43e..0d9c53def9 100644 --- a/docs/formatcaps.html.in +++ b/docs/formatcaps.html.in @@ -91,7 +91,27 @@
arch
-
This element brings some information on supported guest architecture.
+
This element brings some information on supported guest + architecture. Possible subelements are: +
+
wordsize
Size of CPU word in bits, for example 64.
+
emulator
Emulator (device model) path, for + use in emulator + element of domain XML.
+
loader
Loader path, for use in + loader element of domain + XML.
+
machine
Machine type, for use in + machine + attribute of os/type element in domain XML. For example Xen + supports xenfv for HVM or xenpv for + PV.
+
domain
The type attribute of + this element specifies the type of hypervisor required to run the + domain. Use in type + attribute of the domain root element.
+
+
features
This optional element encases possible features that can be used diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 1f12ab5b42..8189959773 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -19,7 +19,8 @@

The root element required for all virtual machines is named domain. It has two attributes, the - type specifies the hypervisor used for running + type + specifies the hypervisor used for running the domain. The allowed values are driver specific, but include "xen", "kvm", "qemu", "lxc" and "kqemu". The second attribute is id which is a unique @@ -148,11 +149,11 @@ (badly named!) refers to an OS that supports the Xen 3 hypervisor guest ABI. There are also two optional attributes, arch specifying the CPU architecture to virtualization, - and machine referring to the machine - type. The Capabilities XML + and machine referring + to the machine type. The Capabilities XML provides details on allowed values for these. Since 0.0.1

-
loader
+
loader
The optional loader tag refers to a firmware blob, which is specified by absolute path, used to assist the domain creation process. It is used by Xen @@ -2621,7 +2622,7 @@ ...
-
emulator
+
emulator
The contents of the emulator element specify the fully qualified path to the device model emulator binary. -- GitLab