From patchwork Mon Jun 5 20:47:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armando Vega X-Patchwork-Id: 9767559 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1BD75602BF for ; Mon, 5 Jun 2017 20:51:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 033412832D for ; Mon, 5 Jun 2017 20:51:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB55828403; Mon, 5 Jun 2017 20:51:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 841B32832D for ; Mon, 5 Jun 2017 20:51:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHyvM-00071Q-2X; Mon, 05 Jun 2017 20:48:28 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHyvK-00071H-KQ for xen-devel@lists.xenproject.org; Mon, 05 Jun 2017 20:48:27 +0000 Received: from [85.158.137.68] by server-14.bemta-3.messagelabs.com id 98/F6-10689-993C5395; Mon, 05 Jun 2017 20:48:25 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRWlGSWpSXmKPExsVyeJ9MoO60w6a RBt0zDSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oy+A1uYCk5tYq2Yfe8jYwPj8T0sXYxcHEIC nxkl/mx5ztrFyMHBJqApcWBdfhcjJ4eIgJLEvVWTmUBsZoFyie5JC8FsYQEziQ9T3rOC2CwCq hLLNt5hB7F5BSwl9p08xAhiSwjIS+xquwg2klPASmLfZlWQsBBQyZdvH9lAwhICjhJNt80hTG OJ+2fyIBoFJX62TGeCsbe9P8QOYddLTNw6DSpuJPF7Vx/bBEaBBYwMqxjVi1OLylKLdE30koo y0zNKchMzc3QNDYz1clOLixPTU3MSk4r1kvNzNzECA4oBCHYwNn5xOsQoycGkJMq7WtE0Uogv KT+lMiOxOCO+qDQntfgQowwHh5IEL8MhoJxgUWp6akVaZg4wtGHSEhw8SiK8zMDwFuItLkjML c5Mh0idYjTm2LB6/Rcmjjt9G74wCbHk5eelSonzzgaZJABSmlGaBzcIFnOXGGWlhHkZgU4T4i lILcrNLEGVf8UozsGoJMw75yDQFJ7MvBK4fa+ATmECOoXvkgnIKSWJCCmpBsaalxP7qx55aQc dNZscM5/1bf3t48/3fDZiq/BO2uvvI63WEJJw521J//2NW4Qf+q8vN343U4IxdYN7gOqkHcvS jvDE3/s9S8ZIylF06rENfx7FxSuVlq1+llBbueHlzIXnX4muj8485tf7KyX+TLDX9pVn/n/4V pdXss5z57yXW3V2Ji3NzSlQYinOSDTUYi4qTgQACqSJNLQCAAA= X-Env-Sender: armando@greenhost.nl X-Msg-Ref: server-5.tower-31.messagelabs.com!1496695702!100952733!1 X-Originating-IP: [195.190.28.81] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 62660 invoked from network); 5 Jun 2017 20:48:22 -0000 Received: from smarthost1.greenhost.nl (HELO smarthost1.greenhost.nl) (195.190.28.81) by server-5.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 5 Jun 2017 20:48:22 -0000 Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dHyvC-0005mX-EU; Mon, 05 Jun 2017 22:48:21 +0200 From: Armando Vega To: xen-devel@lists.xenproject.org Date: Mon, 5 Jun 2017 22:47:55 +0200 Message-Id: <20170605204755.22850-2-armando@greenhost.nl> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170605204755.22850-1-armando@greenhost.nl> References: <20170605204755.22850-1-armando@greenhost.nl> X-Authenticated-As-Hash: cd8cc983715d4510dc3da8903f5c5f04eae4fcc5 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Scan-Signature: 2221e5a4b2794c17f2c09cc5eb3e33a0 Cc: Armando Vega , ian.jackson@eu.citrix.com, wei.liu2@citrix.com, Armando Vega Subject: [Xen-devel] [PATCH 1/1] xl.cfg man page cleanup and fixes X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Armando Vega Signed-off-by: Armando Vega Reviewed-by: Dario Faggioli --- docs/man/xl.cfg.pod.5.in | 1103 ++++++++++++++++++++++++---------------------- 1 file changed, 586 insertions(+), 517 deletions(-) diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in index 13167ff2b6..dae23d8c10 100644 --- a/docs/man/xl.cfg.pod.5.in +++ b/docs/man/xl.cfg.pod.5.in @@ -1,6 +1,6 @@ =head1 NAME -xl.cfg - XL Domain Configuration File Syntax +xl.cfg - xl domain configuration file syntax =head1 SYNOPSIS @@ -8,20 +8,21 @@ xl.cfg - XL Domain Configuration File Syntax =head1 DESCRIPTION -To create a VM (a domain in Xen terminology, sometimes called a guest) -with xl requires the provision of a domain config file. Typically -these live in `/etc/xen/DOMAIN.cfg` where DOMAIN is the name of the +Creating a VM (a domain in Xen terminology, sometimes called a guest) +with xl requires the provision of a domain configuration file. Typically, +these live in F, where DOMAIN is the name of the domain. =head1 SYNTAX -A domain config file consists of a series of C pairs. +A domain configuration file consists of a series of options, specified by +using C pairs. -Some Cs are mandatory, others are general options which apply to -any guest type while others relate only to specific guest types +Some Cs are mandatory, some are general options which apply to +any guest type, while others relate only to specific guest types (e.g. PV or HVM guests). -A value C is one of: +A C can be one of: =over 4 @@ -33,7 +34,7 @@ STRING is part of a SPEC_STRING, the quotes should be omitted. =item B A number, in either decimal, octal (using a C<0> prefix) or -hexadecimal (using a C<0x> prefix). +hexadecimal (using a C<0x> prefix) format. =item B @@ -42,12 +43,12 @@ value). =item B<[ VALUE, VALUE, ... ]> -A list of C of the above types. Lists can be heterogeneous and +A list of Cs of the above types. Lists can be heterogeneous and nested. =back -The semantics of each C defines which form of C is required. +The semantics of each C defines which type of C is required. Pairs may be separated either by a newline or a semicolon. Both of the following are valid: @@ -61,7 +62,7 @@ of the following are valid: =head2 Mandatory Configuration Items -The following key is mandatory for any guest type: +The following key is mandatory for any guest type. =over 4 @@ -78,14 +79,14 @@ single host must be unique. =item B -Specifies that this is to be a PV domain. This is the default. +Specifies that this is to be a PV domain, suitable for hosting Xen-aware guest +operating systems. This is the default. =item B Specifies that this is to be an HVM domain. That is, a fully virtualised computer with emulated BIOS, disk and network peripherals, -etc. The default is a PV domain, suitable for hosting Xen-aware guest -operating systems. +etc. =back @@ -99,56 +100,56 @@ The following options apply to guests of any type. =item B -Put the guest's vcpus into the named cpu pool. +Put the guest's vCPUs into the named CPU pool. =item B -Start the guest with N vcpus initially online. +Start the guest with N vCPUs initially online. =item B -Allow the guest to bring up a maximum of M vcpus. At start of day if -`vcpus=N` is less than `maxvcpus=M` then the first `N` vcpus will be -created online and the remainder will be offline. +Allow the guest to bring up a maximum of M vCPUs. When starting the guest, if +B is less than B then the first B vCPUs will be +created online and the remainder will be created offline. -=item B +=item B -List of which cpus the guest is allowed to use. Default is no pinning at -all (more on this below). A C may be specified as follows: +List of host CPUs the guest is allowed to use. Default is no pinning at +all (more on this below). A C may be specified as follows: =over 4 =item "all" -To allow all the vcpus of the guest to run on all the cpus on the host. +To allow all the vCPUs of the guest to run on all the CPUs on the host. =item "0-3,5,^1" -To allow all the vcpus of the guest to run on cpus 0,2,3,5. Combining -this with "all" is possible, meaning "all,^7" results in all the vcpus -of the guest running on all the cpus on the host except cpu 7. +To allow all the vCPUs of the guest to run on CPUs 0,2,3,5. It is possible to +combine this with "all", meaning "all,^7" results in all the vCPUs +of the guest being allowed to run on all the CPUs of the host except CPU 7. =item "nodes:0-3,node:^2" -To allow all the vcpus of the guest to run on the cpus from NUMA nodes -0,1,3 of the host. So, if cpus 0-3 belongs to node 0, cpus 4-7 belongs -to node 1 and cpus 8-11 to node 3, the above would mean all the vcpus -of the guest will run on cpus 0-3,8-11. +To allow all the vCPUs of the guest to run on the CPUs from NUMA nodes +0,1,3 of the host. So, if CPUs 0-3 belong to node 0, CPUs 4-7 belong +to node 1, CPUs 8-11 to node 2 and CPUs 12-15 to node 3, the above would mean +all the vCPUs of the guest would be allowed to run on CPUs 0-7,12-15. Combining this notation with the one above is possible. For instance, -"1,node:2,^6", means all the vcpus of the guest will run on cpu 1 and -on all the cpus of NUMA node 2, but not on cpu 6. Following the same -example as above, that would be cpus 1,4,5,7. +"1,node:1,^6", means all the vCPUs of the guest will run on CPU 1 and +on all the CPUs of NUMA node 1, but not on CPU 6. Following the same +example as above, that would be CPUs 1,4,5,7. Combining this with "all" is also possible, meaning "all,^nodes:1" -results in all the vcpus of the guest running on all the cpus on the -host, except for the cpus belonging to the host NUMA node 1. +results in all the vCPUs of the guest running on all the CPUs on the +host, except for the CPUs belonging to the host NUMA node 1. =item ["2", "3-8,^5"] -To ask for specific vcpu mapping. That means (in this example), vcpu 0 -of the guest will run on cpu 2 of the host and vcpu 1 of the guest will -run on cpus 3,4,6,7,8 of the host. +To ask for specific vCPU mapping. That means (in this example), vCPU 0 +of the guest will run on CPU 2 of the host and vCPU 1 of the guest will +run on CPUs 3,4,6,7,8 of the host (excluding CPU 5). More complex notation can be also used, exactly as described above. So "all,^5-8", or just "all", or "node:0,node:2,^9-11,18-20" are all legal, @@ -156,34 +157,35 @@ for each element of the list. =back -If this option is not specified, no vcpu to cpu pinning is established, -and the vcpus of the guest can run on all the cpus of the host. If this -option is specified, the intersection of the vcpu pinning mask, provided -here, and the soft affinity mask, provided via B (if any), -is utilized to compute the domain node-affinity, for driving memory +If this option is not specified, no vCPU to CPU pinning is established, +and the vCPUs of the guest can run on all the CPUs of the host. If this +option is specified, the intersection of the vCPU pinning mask, provided +here, and the soft affinity mask, if provided via B, +is utilized to compute the domain node-affinity for driving memory allocations. -=item B +=item B Exactly as B, but specifies soft affinity, rather than pinning -(hard affinity). When using the credit scheduler, this means what cpus -the vcpus of the domain prefer. +(hard affinity). When using the credit scheduler, this means what CPUs +the vCPUs of the domain prefer. -A C is specified exactly as above, for B. +A C is specified exactly as for B, detailed earlier in the +manual. -If this option is not specified, the vcpus of the guest will not have -any preference regarding on what cpu to run. If this option is specified, -the intersection of the soft affinity mask, provided here, and the vcpu -pinning, provided via B (if any), is utilized to compute the -domain node-affinity, for driving memory allocations. +If this option is not specified, the vCPUs of the guest will not have +any preference regarding host CPUs. If this option is specified, +the intersection of the soft affinity mask, provided here, and the vCPU +pinning, if provided via B, is utilized to compute the +domain node-affinity for driving memory allocations. If this option is not specified (and B is not specified either), libxl automatically tries to place the guest on the least possible number of nodes. A heuristic approach is used for choosing the best node (or set of nodes), with the goal of maximizing performance for the guest and, at the same time, achieving efficient utilization of -host cpus and memory. In that case, the soft affinity of all the vcpus -of the domain will be set to the pcpus belonging to the NUMA nodes +host CPUs and memory. In that case, the soft affinity of all the vCPUs +of the domain will be set to host CPUs belonging to NUMA nodes chosen during placement. For more details, see L. @@ -205,22 +207,22 @@ Honoured by the credit and credit2 schedulers. The cap optionally fixes the maximum amount of CPU a domain will be able to consume, even if the host system has idle CPU cycles. -The cap is expressed in percentage of one physical CPU: +The cap is expressed as a percentage of one physical CPU: 100 is 1 physical CPU, 50 is half a CPU, 400 is 4 CPUs, etc. -The default, 0, means there is no upper cap. +The default, 0, means there is no cap. Honoured by the credit and credit2 schedulers. -NB: Many systems have features that will scale down the computing -power of a cpu that is not 100% utilized. This can be in the -operating system, but can also sometimes be below the operating system +B: Many systems have features that will scale down the computing +power of a CPU that is not 100% utilized. This can be done in the +operating system, but can also sometimes be done below the operating system, in the BIOS. If you set a cap such that individual cores are running at less than 100%, this may have an impact on the performance of your workload over and above the impact of the cap. For example, if your -processor runs at 2GHz, and you cap a vm at 50%, the power management +processor runs at 2GHz, and you cap a VM at 50%, the power management system may also reduce the clock speed to 1GHz; the effect will be that your VM gets 25% of the available power (50% of 1GHz) rather than 50% (50% of 2GHz). If you are not getting the performance you expect, -look at performance and cpufreq options in your operating system and +look at performance and CPU frequency options in your operating system and your BIOS. =back @@ -236,14 +238,14 @@ Start the guest with MBYTES megabytes of RAM. =item B Specifies the maximum amount of memory a guest can ever see. -The value of B must be equal or greater than B. +The value of B must be equal to or greater than that of B. In combination with B it will start the guest "pre-ballooned", if the values of B and B differ. A "pre-ballooned" HVM guest needs a balloon driver, without a balloon driver it will crash. -NOTE: Because of the way ballooning works, the guest has to allocate +B: Because of the way ballooning works, the guest has to allocate memory to keep track of maxmem pages, regardless of how much memory it actually has available to it. A guest with maxmem=262144 and memory=8096 will report significantly less memory available for use @@ -259,54 +261,54 @@ of having to track the unused pages. =item B Specify virtual NUMA configuration with positional arguments. The -nth B in the list specifies the configuration of nth +nth B in the list specifies the configuration of the nth virtual node. -Note that virtual NUMA for PV guest is not yet supported, because -there is an issue with cpuid handling that affects PV virtual NUMA. -Furthermore, guests with virtual NUMA cannot be saved or migrated +Note that virtual NUMA is not supported for PV guests yet, because +there is an issue with the CPUID instruction handling that affects PV virtual +NUMA. Furthermore, guests with virtual NUMA cannot be saved or migrated because the migration stream does not preserve node information. Each B is a list, which has a form of -"[VNODE_CONFIG_OPTION,VNODE_CONFIG_OPTION, ... ]" (without quotes). +"[VNODE_CONFIG_OPTION, VNODE_CONFIG_OPTION, ... ]" (without the quotes). -For example vnuma = [ ["pnode=0","size=512","vcpus=0-4","vdistances=10,20"] ] +For example, vnuma = [ ["pnode=0","size=512","vcpus=0-4","vdistances=10,20"] ] means vnode 0 is mapped to pnode 0, has 512MB ram, has vcpus 0 to 4, the distance to itself is 10 and the distance to vnode 1 is 20. -Each B is a quoted key=value pair. Supported +Each B is a quoted C pair. Supported Bs are (they are all mandatory at the moment): =over 4 =item B -Specify which physical node this virtual node maps to. +Specifies which physical node this virtual node maps to. =item B -Specify the size of this virtual node. The sum of memory size of all +Specifies the size of this virtual node. The sum of memory sizes of all vnodes will become B. If B is specified separately, a check is performed to make sure the sum of all vnode memory matches B. -=item B +=item B -Specify which vcpus belong to this node. B is a string -separated by comma. You can specify range and single cpu. An example -is "vcpus=0-5,8", which means you specify vcpu 0 to vcpu 5, and vcpu -8. +Specifies which vCPUs belong to this node. B<"CPUSTRING"> is a string of numerical +values separated by a comma. You can specify a range and/or a single CPU. +An example would be "vcpus=0-5,8", which means you specified vCPU 0 to vCPU 5, +and vCPU 8. =item B -Specify virtual distance from this node to all nodes (including +Specifies the virtual distance from this node to all nodes (including itself) with positional arguments. For example, "vdistance=10,20" for vnode 0 means the distance from vnode 0 to vnode 0 is 10, from vnode 0 to vnode 1 is 20. The number of arguments supplied must match the total number of vnodes. -Normally you can use the values from "xl info -n" or "numactl ---hardware" to fill in vdistance list. +Normally you can use the values from B or B to fill the vdistances list. =back @@ -319,7 +321,7 @@ Normally you can use the values from "xl info -n" or "numactl =item B Specifies what should be done with the domain if it shuts itself down. -The Cs are: +The Bs are: =over 4 @@ -339,8 +341,7 @@ domain with the same configuration as the original =item B -keep the domain. It can be examined, and later destroyed with `xl -destroy`. +keep the domain. It can be examined, and later destroyed with B. =item B @@ -360,37 +361,37 @@ and non-Xen-aware HVM guests are not supported. =back -The default for C is C. +The default for B is B. =item B Action to take if the domain shuts down with a reason code requesting -a reboot. Default is C. +a reboot. Default is B. =item B Action to take if the domain shuts down due to a Xen watchdog timeout. -Default is C. +Default is B. =item B -Action to take if the domain crashes. Default is C. +Action to take if the domain crashes. Default is B. =item B -Action to take if the domain performs 'soft reset' (e.g. does kexec). -Default is C. +Action to take if the domain performs a 'soft reset' (e.g. does B). +Default is B. =back =head3 Direct Kernel Boot -Direct kernel boot allows booting directly from a kernel and initrd -stored in the host physical machine OS, allowing command line arguments -to be passed directly. PV guest direct kernel boot is supported. HVM -guest direct kernel boot is supported with limitation (it's supported -when using qemu-xen and default BIOS 'seabios'; not supported in case of -stubdom-dm and old rombios.) +Direct kernel boot allows booting guests with a kernel and an initrd +stored on a filesystem available to the host physical machine, allowing +command line arguments to be passed directly. PV guest direct kernel boot is +supported. HVM guest direct kernel boot is supported with some limitations +(it's supported when using B and the default BIOS 'seabios', +but not supported in case of using B and the old 'rombios'.) =over 4 @@ -404,20 +405,20 @@ Load the specified file as the ramdisk. =item B -Append B to the kernel command line. (Note: it is -guest specific what meaning this has). It can replace B -plus B and is preferred. When B is set, +Append B to the kernel command line. (Note: the meaning of +this is guest specific). It can replace B +along with B and is preferred. When B is set, B and B will be ignored. =item B -Append B to the kernel command line (Note: it is guest -specific what meaning this has). +Append B to the kernel command line (Note: the meaning of this +is guest specific). =item B -Append B to the kernel command line. (Note: it is guest -specific what meaning this has). +Append B to the kernel command line. (Note: the meaning of this +is guest specific). =back @@ -438,7 +439,7 @@ Assign an XSM security label to this domain. Specify an XSM security label used for this domain temporarily during its build. The domain's XSM label will be changed to the execution -seclabel (specified by "seclabel") once the build is complete, prior to +seclabel (specified by B) once the build is complete, prior to unpausing the domain. With a properly constructed security policy (such as nomigrate_t in the example policy), this can be used to build a domain whose memory is not accessible to the toolstack domain. @@ -447,7 +448,7 @@ domain whose memory is not accessible to the toolstack domain. Disable migration of this domain. This enables certain other features which are incompatible with migration. Currently this is limited to -enabling the invariant TSC feature flag in cpuid results when TSC is +enabling the invariant TSC feature flag in CPUID results when TSC is not emulated. =item B @@ -460,12 +461,12 @@ features needed in order to run a driver domain. Specify a partial device tree (compiled via the Device Tree Compiler). Everything under the node "/passthrough" will be copied into the guest device tree. For convenience, the node "/aliases" is also copied to allow -the user to defined aliases which can be used by the guest kernel. +the user to define aliases which can be used by the guest kernel. Given the complexity of verifying the validity of a device tree, this -option should only be used with trusted device tree. +option should only be used with a trusted device tree. -Note that the partial device tree should avoid to use the phandle 65000 +Note that the partial device tree should avoid using the phandle 65000 which is reserved by the toolstack. =back @@ -481,45 +482,46 @@ devices which the guest will contain. Specifies the disks (both emulated disks and Xen virtual block devices) which are to be provided to the guest, and what objects on -the host they should map to. See L. +the host they should map to. See L for more +details. =item B -Specifies the networking provision (both emulated network adapters, -and Xen virtual interfaces) to provided to the guest. See -L. +Specifies the network interfaces (both emulated network adapters, +and Xen virtual interfaces) which are to be provided to the guest. See +L for more details. =item B -Specifies the virtual trusted platform module to be -provided to the guest. Please see L for more details. +Specifies the Virtual Trusted Platform module to be +provided to the guest. See L for more details. Each B is a comma-separated list of C -settings, from the following list: +settings from the following list: =over 4 -=item C +=item B -Specify the backend domain name or id. This value is required! +Specifies the backend domain name or id. B If this domain is a guest, the backend should be set to the -vtpm domain name. If this domain is a vtpm, the -backend should be set to the vtpm manager domain name. +vTPM domain name. If this domain is a vTPM, the +backend should be set to the vTPM manager domain name. -=item C +=item B -Specify the uuid of this vtpm device. The uuid is used to uniquely -identify the vtpm device. You can create one using the uuidgen -program on unix systems. If left unspecified, a new uuid +Specifies the UUID of this vTPM device. The UUID is used to uniquely +identify the vTPM device. You can create one using the B +program on unix systems. If left unspecified, a new UUID will be randomly generated every time the domain boots. -If this is a vtpm domain, you should specify a value. The +If this is a vTPM domain, you should specify a value. The value is optional if this is a guest domain. =back =item B -Creates a Xen 9pfs connection to share a filesystem from backend to +Creates a Xen 9pfs connection to share a filesystem from the backend to the frontend. Each B<9PFS_SPEC_STRING> is a comma-separated list of C @@ -527,22 +529,22 @@ settings, from the following list: =over 4 -=item C +=item B 9pfs tag to identify the filesystem share. The tag is needed on the guest side to mount it. -=item C +=item B -Only "none" is supported today, which means that files are stored using -the same credentials as they are created on the guest (no user ownership +Only "none" is supported today, which means that the files are stored using +the same credentials as those they have in the guest (no user ownership squash or remap). -=item C +=item B Filesystem path on the backend to export. -=item C +=item B Specify the backend domain name or id, defaults to dom0. @@ -554,78 +556,78 @@ Specifies the paravirtual framebuffer devices which should be supplied to the domain. This option does not control the emulated graphics card presented to -an HVM guest. See L below for how to -configure the emulated device. If L options -are used in a PV guest configuration, xl will pick up B, B, +an HVM guest. See B below for how to +configure the emulated device. If B options +are used in a PV guest configuration, B will pick up B, B, B, B, B, B, B and -B to construct paravirtual framebuffer device for the guest. +B to construct the paravirtual framebuffer device for the guest. Each B is a comma-separated list of C settings, from the following list: =over 4 -=item C +=item B Allow access to the display via the VNC protocol. This enables the -other VNC-related settings. The default is to enable this. +other VNC-related settings. Default is 1 (enabled). -=item C +=item B -Specifies the IP address, and optionally VNC display number, to use. +Specifies the IP address, and optionally the VNC display number, to use. -NB that if you specify the display number here, you should not use -vncdisplay. +Note: if you specify the display number here, you should not use +the B option. -=item C +=item B Specifies the VNC display number to use. The actual TCP port number will be DISPLAYNUM+5900. -NB that you should not use this option if you set the displaynum in the -vnclisten string. +Note: you should not use this option if you set the DISPLAYNUM in the +B option. -=item C +=item B -Requests that the VNC display setup search for a free TCP port to use. -The actual display used can be accessed with C. +Requests that the VNC display setup searches for a free TCP port to use. +The actual display used can be accessed with B. -=item C +=item B -Specifies the password for the VNC server. If password is set to an -empty string, authentication on the VNC server will be disabled +Specifies the password for the VNC server. If the password is set to an +empty string, authentication on the VNC server will be disabled, allowing any user to connect. -=item C +=item B Specifies that the display should be presented via an X window (using -Simple DirectMedia Layer). The default is to not enable this mode. +Simple DirectMedia Layer). The default is 0 (not enabled). -=item C +=item B -Specifies the X Window display that should be used when the sdl option +Specifies the X Window display that should be used when the B option is used. -=item C +=item B Specifies the path to the X authority file that should be used to -connect to the X server when the sdl option is used. +connect to the X server when the B option is used. -=item C +=item B Enable OpenGL acceleration of the SDL display. Only effects machines -using C and only if the -device-model was compiled with OpenGL support. Disabled by default. +using B and only if the +device-model was compiled with OpenGL support. The default is 0 (disabled). -=item C +=item B Configure the keymap to use for the keyboard associated with this display. If the input method does not easily support raw keycodes (e.g. this is often the case when using VNC) then this allows us to correctly map the input keys into keycodes seen by the guest. The specific values which are accepted are defined by the version of the -device-model which you are using. See L below or consult the -L manpage. The default is B. +device-model which you are using. See B below or consult the +B manpage. The default is B. =back @@ -644,35 +646,35 @@ are: =over 4 -=item C +=item B -Specify the backend domain name or id. This parameter is optional. If +Specifies the backend domain name or id. This parameter is optional. If this parameter is omitted then the toolstack domain will be assumed. -=item C +=item B -Specify the string name for this device. This parameter is mandatory. -This should be a well-known name for the specific application (e.g. +Specifies the name for this device. B +This should be a well-known name for a specific application (e.g. guest agent) and should be used by the frontend to connect the application to the right channel device. There is no formal registry of channel names, so application authors are encouraged to make their -names unique by including domain name and version number in the string +names unique by including the domain name and a version number in the string (e.g. org.mydomain.guestagent.1). -=item C +=item B -Specify how the backend will be implemented. The following options are +Specifies how the backend will be implemented. The following options are available: =over 4 -=item B +=item B The backend will bind a Unix domain socket (at the path given by -B), call listen and accept connections. The backend will proxy +B), listen for and accept connections. The backend will proxy data between the channel and the connected socket. -=item B +=item B The backend will create a pty and proxy data between the channel and the master device. The command B can be used to discover the @@ -684,152 +686,174 @@ assigned slave device. =item B -(HVM/x86 only) Specifies information about Reserved Device Memory (RDM), +B Specifies information about Reserved Device Memory (RDM), which is necessary to enable robust device passthrough. One example of RDM -is reported through ACPI Reserved Memory Region Reporting (RMRR) structure -on x86 platform. +is reporting through the ACPI Reserved Memory Region Reporting (RMRR) structure +on the x86 platform. -B has the form C<[KEY=VALUE,KEY=VALUE,...> where: +B is a comma separated list of C settings, +from the following list: =over 4 -=item B +=item B -Possible Bs are: +Currently there is only one valid type, and that is "host". =over 4 -=item B +=item B -Currently there is only one valid type: +If set to "host" it means all reserved device memory on this platform should +be checked to reserve regions in this VM's address space. This global RDM +parameter allows the user to specify reserved regions explicitly, and using +"host" includes all reserved regions reported on this platform, which is +useful when doing hotplug. -"host" means all reserved device memory on this platform should be checked to -reserve regions in this VM's guest address space. This global rdm parameter -allows user to specify reserved regions explicitly, and using "host" includes -all reserved regions reported on this platform, which is useful when doing -hotplug. +By default this isn't set so we don't check all RDMs. Instead, we just check +the RDM specific to a given device if we're assigning this kind of a device. -By default this isn't set so we don't check all rdms. Instead, we just check -rdm specific to a given device if you're assigning this kind of device. Note -this option is not recommended unless you can make sure any conflict does exist. +Note: this option is not recommended unless you can make sure that no +conflicts exist. For example, you're trying to set "memory = 2800" to allocate memory to one -given VM but the platform owns two RDM regions like, +given VM but the platform owns two RDM regions like: Device A [sbdf_A]: RMRR region_A: base_addr ac6d3000 end_address ac6e6fff + Device B [sbdf_B]: RMRR region_B: base_addr ad800000 end_address afffffff In this conflict case, -#1. If B is set to "host", for example, +#1. If B is set to "host", for example: rdm = "strategy=host,policy=strict" or rdm = "strategy=host,policy=relaxed" -It means all conflicts will be handled according to the policy +it means all conflicts will be handled according to the policy introduced by B as described below. #2. If B is not set at all, but pci = [ 'sbdf_A, rdm_policy=xxxxx' ] -It means only one conflict of region_A will be handled according to the policy -introduced by B as described inside pci options. +it means only one conflict of region_A will be handled according to the policy +introduced by B as described inside B options. + +=back + +=item B + +Specifies how to deal with conflicts when reserving already reserved device +memory in the guest address space. -=item B +=over 4 -Specifies how to deal with conflicts when reserving reserved device -memory in guest address space. +=item B -When that conflict is unsolved, +Specifies that in case of an unresolved conflict the VM can't be created, +or the associated device can't be attached in the case of hotplug. -"strict" means VM can't be created, or the associated device can't be -attached in the case of hotplug. +=item B -"relaxed" allows VM to be created but may cause VM to crash if -pass-through device accesses RDM. For example Windows IGD GFX driver -always accessed RDM regions so it leads to VM crash. +Specifies that in case of an unresolved conflict the VM is allowed to be +created but may cause the VM to crash if a pass-through device accesses RDM. +For example, the Windows IGD GFX driver always accesses RDM regions so it +leads to a VM crash. -Note this may be overridden by rdm_policy option in PCI device configuration. +Note: this may be overridden by the B option in the B +device configuration. =back =back -=item B +=item B -Specifies the USB controllers created for this guest. Each -B has the form C where: +Specifies the USB controllers created for this guest. + +Each B is a comma-separated list of C +settings, from the following list: =over 4 -=item B +=item B -Possible Bs are: +Specifies the usb controller type. =over 4 -=item B +=item B -Specifies the usb controller type. +Specifies a kernel based PVUSB backend. -"pv" denotes a kernel based pvusb backend. +=item B -"qusb" specifies a qemu base backend for pvusb. +Specifies a QEMU based PVUSB backend. -"devicemodel" specifies a USB controller emulated by qemu. +=item B + +Specifies a USB controller emulated by QEMU. It will show up as a PCI-device in the guest. -"auto" (the default) determines whether a kernel based backend is installed. -If this is the case, "pv" is selected, "qusb" will be selected if no kernel -backend is currently available. -For HVM domains "devicemodel" will be selected. +=item B + +Determines whether a kernel based backend is installed. +If this is the case, B is used, otherwise B will be used. +For HVM domains B will be selected. + +This option is the default. + +=back =item B Specifies the usb controller version. Possible values include 1 (USB1.1), 2 (USB2.0) and 3 (USB3.0). Default is 2 (USB2.0). -3 (USB3.0) is available for the type "devicemodel" only. +Value 3 (USB3.0) is available for the B type only. =item B -Specifies the total ports of the usb controller. The maximum -number is 31. Default is 8. -With the type "devicemodel" the number of ports is more limited: +Specifies the total number of ports of the usb controller. The maximum +number is 31. The default is 8. +With the type B the number of ports is more limited: a USB1.1 controller always has 2 ports, a USB2.0 controller always has 6 ports and a USB3.0 controller can have up to 15 ports. -USB controller ids start from 0. In line with the USB spec, however, +USB controller ids start from 0. In line with the USB specification, however, ports on a controller start from 1. -E.g. -usbctrl=["version=1,ports=4", "version=2,ports=8",] -The first controller has: -controller id = 0, and port 1,2,3,4. -The second controller has: -controller id = 1, and port 1,2,3,4,5,6,7,8. +B -=back +=over 2 -=back +usbctrl=["version=1,ports=4", "version=2,ports=8"] -=item B +The first controller is USB1.1 and has: -Specifies the USB devices to be attached to the guest at boot. Each -B has the form C where: +controller id = 0, and ports 1,2,3,4. -=over 4 +The second controller is USB2.0 and has: + +controller id = 1, and ports 1,2,3,4,5,6,7,8. + +=back + +=back -=item B +=item B -Possible Bs are: +Specifies the USB devices to be attached to the guest at boot. + +Each B is a comma-separated list of C +settings, from the following list: =over 4 =item B -Specifies USB device type. Currently only support 'hostdev'. +Specifies USB device type. Currently only "hostdev" is supported. =item B @@ -841,249 +865,245 @@ Specifies devnum of the USB device from the host perspective. =item B -Specifies USB controller id, to which controller the USB device is attached. - -=item B - -Specifies USB port, to which port the USB device is attached. B -is valid only when B is specified. - -=back +Specifies the USB controller id, to which controller the USB device is +attached. If no controller is specified, an available controller:port combination -will be used. If there are no available controller:port options, +will be used. If there are no available controller:port combinations, a new controller will be created. +=item B + +Specifies the USB port to which the USB device is attached. The B +option is valid only when the B option is specified. + =back -=item B +=item B -Specifies the host PCI devices to passthrough to this guest. Each B -has the form C<[DDDD:]BB:DD.F[@VSLOT],KEY=VALUE,KEY=VALUE,...> where: +Specifies the host PCI devices to passthrough to this guest. +Each B has the form of +B<[DDDD:]BB:DD.F[@VSLOT],KEY=VALUE,KEY=VALUE,...> where: =over 4 -=item B +=item B<[DDDD:]BB:DD.F> -Identifies the PCI device from the host perspective in domain +Identifies the PCI device from the host perspective in the domain (B), Bus (B), Device (B
) and Function (B) syntax. This is -the same scheme as used in the output of C for the device in -question. Note: By default C will omit the domain (B) if it +the same scheme as used in the output of B for the device in +question. + +Note: by default B will omit the domain (B) if it is zero and it is optional here also. You may specify the function (B) as B<*> to indicate all functions. =item B<@VSLOT> -Specifies the virtual device where the guest will see this +Specifies the virtual slot where the guest will see this device. This is equivalent to the B
which the guest sees. In a guest B and B are C<0000:00>. -=item B - -Possible Bs are: - -=over 4 - =item B By default pciback only allows PV guests to write "known safe" values -into PCI config space, likewise QEMU (both qemu-xen and -qemu-traditional) imposes the same constraint on HVM guests. However -many devices require writes to other areas of config space in order to -operate properly. This option tells the backend (pciback or QEMU) to -allow all writes to PCI config space of this device by this domain. +into PCI configuration space, likewise QEMU (both qemu-xen and +qemu-xen-traditional) imposes the same constraint on HVM guests. +However, many devices require writes to other areas of the configuration space +in order to operate properly. This option tells the backend (pciback or QEMU) +to allow all writes to the PCI configuration space of this device by this +domain. -This option should be enabled with caution: it gives the guest much +B it gives the guest much more control over the device, which may have security or stability -implications. It is recommended to enable this option only for -trusted VMs under administrator control. +implications. It is recommended to only enable this option for +trusted VMs under administrator's control. =item B Specifies that MSI-INTx translation should be turned on for the PCI device. When enabled, MSI-INTx translation will always enable MSI on -the PCI device regardless whether the guest uses INTx or MSI. Some +the PCI device regardless of whether the guest uses INTx or MSI. Some device drivers, such as NVIDIA's, detect an inconsistency and do not function when this option is enabled. Therefore the default is false (0). =item B -Tells xl to automatically attempt to re-assign a device to +Tells B to automatically attempt to re-assign a device to pciback if it is not already assigned. -WARNING: If you set this option, xl will gladly re-assign a critical +B If you set this option, B will gladly re-assign a critical system device, such as a network or a disk controller being used by dom0 without confirmation. Please use with care. =item B -(HVM only) Specifies that the VM should be able to program the -D0-D3hot power management states for the PCI device. False (0) by -default. +B<(HVM only)> Specifies that the VM should be able to program the +D0-D3hot power management states for the PCI device. The default is false (0). -=item B +=item B -(HVM/x86 only) This is same as policy option inside the rdm option but -just specific to a given device. Therefore the default is "relaxed" as -same as policy option as well. +B<(HVM/x86 only)> This is the same as the policy setting inside the B +option but just specific to a given device. The default is "relaxed". -Note this would override global B option. - -=back +Note: this would override global B option. =back =item B -Changes the default value of 'permissive' for all PCI devices passed -through to this VM. See L above. +Changes the default value of B for all PCI devices passed +through to this VM. See B above. =item B -Changes the default value of 'msitranslate' for all PCI devices passed -through to this VM. See L above. +Changes the default value of B for all PCI devices passed +through to this VM. See B above. =item B -Changes the default value of 'seize' for all PCI devices passed -through to this VM. See L above. +Changes the default value of B for all PCI devices passed +through to this VM. See B above. =item B -(HVM only) Changes the default value of 'power_mgmt' for all PCI -devices passed through to this VM. See L +B<(HVM only)> Changes the default value of B for all PCI +devices passed through to this VM. See B above. =item B Enable graphics device PCI passthrough. This option makes an assigned -PCI graphics card become primary graphics card in the VM. The QEMU +PCI graphics card become the primary graphics card in the VM. The QEMU emulated graphics adapter is disabled and the VNC console for the VM will not have any graphics output. All graphics output, including boot time QEMU BIOS messages from the VM, will go to the physical outputs -of the passedthrough physical graphics card. +of the passed through physical graphics card. -The graphics card PCI device to passthrough is chosen with B -option, exactly in the same way as normal Xen PCI device -passthrough/assignment is done. Note that gfx_passthru does not do -any kind of sharing of the GPU, so you can only assign the GPU to one +The graphics card PCI device to pass through is chosen with the B +option, in exactly the same way a normal Xen PCI device +passthrough/assignment is done. Note that B does not do +any kind of sharing of the GPU, so you can assign the GPU to only one single VM at a time. -gfx_passthru also enables various legacy VGA memory ranges, BARs, MMIOs, +B also enables various legacy VGA memory ranges, BARs, MMIOs, and ioports to be passed through to the VM, since those are required for correct operation of things like VGA BIOS, text mode, VBE, etc. -Enabling gfx_passthru option also copies the physical graphics card +Enabling the B option also copies the physical graphics card video BIOS to the guest memory, and executes the VBIOS in the guest to initialize the graphics card. Most graphics adapters require vendor specific tweaks for properly working graphics passthrough. See the XenVGAPassthroughTestedAdapters L wiki page -for currently supported graphics cards for gfx_passthru. +for graphics cards currently supported by B. -gfx_passthru is currently supported both with the qemu-xen-traditional +B is currently supported both with the qemu-xen-traditional device-model and upstream qemu-xen device-model. -When given as a boolean the B option either disables gfx -passthru or enables autodetection. +When given as a boolean the B option either disables graphics +card passthrough or enables autodetection. -But when given as a string the B option describes the type -of device to enable. Note this behavior is only supported with the upstream -qemu-xen device-model. With qemu-xen-traditional IGD is always assumed -and other options than autodetect or explicit IGD will result in an error. +When given as a string the B option describes the type +of device to enable. Note that this behavior is only supported with the +upstream qemu-xen device-model. With qemu-xen-traditional IGD (Intel Graphics +Device) is always assumed and options other than autodetect or explicit IGD +will result in an error. -Currently, valid options are: +Currently, valid values for the option are: =over 4 -=item B +=item B<0> Disables graphics device PCI passthrough. -=item B, B +=item B<1>, B<"default"> Enables graphics device PCI passthrough and autodetects the type of device which is being used. -=item "igd" +=item B<"igd"> Enables graphics device PCI passthrough but forcing the type of device to Intel Graphics Device. =back -Note that some graphics adapters (AMD/ATI cards, for example) do not -necessarily require gfx_passthru option, so you can use the normal Xen +Note that some graphics cards (AMD/ATI cards, for example) do not +necessarily require the B option, so you can use the normal Xen PCI passthrough to assign the graphics card as a secondary graphics card to the VM. The QEMU-emulated graphics card remains the primary graphics card, and VNC output is available from the QEMU-emulated primary adapter. -More information about Xen gfx_passthru feature is available +More information about the Xen B feature is available on the XenVGAPassthrough L wiki page. =item B -Number of megabytes to set a boundary for checking rdm conflict. +Number of megabytes to set for a boundary when checking for RDM conflicts. -When RDM conflicts with RAM, RDM probably scatter the whole RAM space. -Especially multiple RDM entries would worsen this to lead to a complicated -memory layout. So here we're trying to figure out a simple solution to -avoid breaking existing layout. So when a conflict occurs, +When RDM conflicts with RAM, RDM is probably scattered over the whole RAM +space. Having multiple RDM entries would worsen this and lead to a complicated +memory layout. Here we're trying to figure out a simple solution to +avoid breaking the existing layout. When a conflict occurs, #1. Above a predefined boundary - - move lowmem_end below reserved region to solve conflict; + - move lowmem_end below the reserved region to solve the conflict; #2. Below a predefined boundary - - Check strict/relaxed policy. - "strict" policy leads to fail libxl. Note when both policies - are specified on a given region, 'strict' is always preferred. - "relaxed" policy issue a warning message and also mask this + - Check if the policy is strict or relaxed. + A "strict" policy leads to a fail in libxl. + Note that when both policies are specified on a given region, + "strict" is always preferred. + The "relaxed" policy issues a warning message and also masks this entry INVALID to indicate we shouldn't expose this entry to hvmloader. -Here the default is 2G. +The default value is 2048. -=item B +=item B -Specifies the host device tree nodes to passthrough to this guest. Each -DTDEV_PATH is the absolute path in the device tree. +Specifies the host device tree nodes to passt hrough to this guest. Each +DTDEV_PATH is an absolute path in the device tree. -=item B +=item B -Allow guest to access specific legacy I/O ports. Each B -is given in hexadecimal and may either a span e.g. C<2f8-2ff> -(inclusive) or a single I/O port C<2f8>. +Allow the guest to access specific legacy I/O ports. Each B +is given in hexadecimal format and may either be a range, e.g. C<2f8-2ff> +(inclusive), or a single I/O port, e.g. C<2f8>. -It is recommended to use this option only for trusted VMs under -administrator control. +It is recommended to only use this option for trusted VMs under +administrator's control. -=item B +=item B Allow auto-translated domains to access specific hardware I/O memory pages. -B is a physical page number. B is the number of pages -beginning with B to allow access. B specifies the guest frame -number where the mapping will start in the domU's address space. If B is -not given, the mapping will be performed using B as a start in the -domU's address space, therefore performing an 1:1 mapping as default. -All of these values must be given in hexadecimal. +B is a physical page number. B is the number of pages, +beginning with B, to allow access to. B specifies the guest +frame number where the mapping will start in the guest's address space. If +B is not specified, the mapping will be performed using B +as a start in the guest's address space, therefore performing a 1:1 mapping +by default. +All of these values must be given in hexadecimal format. Note that the IOMMU won't be updated with the mappings specified with this -option. This option therefore should not be used to passthrough any -IOMMU-protected device. +option. This option therefore should not be used to pass through any +IOMMU-protected devices. -It is recommended to use this option only for trusted VMs under -administrator control. +It is recommended to only use this option for trusted VMs under +administrator's control. -=item B +=item B Allow a guest to access specific physical IRQs. -It is recommended to use this option only for trusted VMs under -administrator control. +It is recommended to only use this option for trusted VMs under +administrator's control. =item B @@ -1091,7 +1111,7 @@ Limit the guest to using at most N event channels (PV interrupts). Guests use hypervisor resources for each event channel they use. The default of 1023 should be sufficient for typical guests. The -maximum value depends what the guest supports. Guests supporting the +maximum value depends on what the guest supports. Guests supporting the FIFO-based event channel ABI support up to 131,071 event channels. Other guests are limited to 4095 (64-bit x86 and ARM) or 1023 (32-bit x86). @@ -1100,7 +1120,7 @@ x86). =head2 Paravirtualised (PV) Guest Specific Options -The following options apply only to Paravirtual guests. +The following options apply only to Paravirtual (PV) guests. =over 4 @@ -1115,7 +1135,7 @@ for PV guests. Append Bs to the arguments to the B program. Alternatively if the argument is a simple string then it will -be split into words at whitespace (this second option is deprecated). +be split into words at whitespace B<(this second option is deprecated)>. =item B @@ -1144,19 +1164,41 @@ anyway. =head2 Fully-virtualised (HVM) Guest Specific Options -The following options apply only to HVM guests. +The following options apply only to Fully-virtualised (HVM) guests. =head3 Boot Device =over 4 -=item B +=item B + +Specifies the emulated virtual device to boot from. + +Possible values are: + +=over 4 + +=item B + +Hard disk. + +=item B + +CD-ROM. + +=item B + +Network / PXE. + +=back + +B multiple options can be given and will be attempted in the order they +are given, e.g. to boot from CD-ROM but fall back to the hard disk you can +specify it as B. + +The default is B, meaning try booting from the hard disk first, but fall +back to the CD-ROM. -Selects the emulated virtual device to boot from. Options are hard -disk (B), cd-rom (B) or network/PXE (B). Multiple options can be -given and will be attempted in the order they are given. e.g. to boot -from cd-rom but fallback to the hard disk you can give B. The -default is B. =back @@ -1164,13 +1206,29 @@ default is B. =over 4 -=item B +=item B -Select the hd disk type (ide|ahci). -If hdtype=ahci adds ich9 disk controller in AHCI mode and uses it with -upstream qemu to emulate disks instead of IDE. It decreases boot time -but may not be supported by default in Windows xp and older Windows. -The default is ide. +Specifies the hard disk type. + +Possible values are: + +=over 4 + +=item B + +If thise mode is specified B adds an emulated IDE controller, which is +suitable even for older operation systems. + +=item B + +If this mode is specified, B adds an ich9 disk controller in AHCI mode and +uses it with upstream QEMU to emulate disks instead of IDE. It decreases boot +time but may not be supported by default in older operating systems, e.g. +Windows XP. + +=back + +The default is B. =back @@ -1178,7 +1236,7 @@ The default is ide. The following options control the mechanisms used to virtualise guest memory. The defaults are selected to give the best results for the -common case and so you should normally leave these options +common cases so you should normally leave these options unspecified. =over 4 @@ -1188,7 +1246,7 @@ unspecified. Turns "hardware assisted paging" (the use of the hardware nested page table feature) on or off. This feature is called EPT (Extended Page Tables) by Intel and NPT (Nested Page Tables) or RVI (Rapid -Virtualisation Indexing) by AMD. Affects HVM guests only. If turned +Virtualisation Indexing) by AMD. If turned off, Xen will run the guest in "shadow page table" mode where the guest's page table updates and/or TLB flushes etc. will be emulated. Use of HAP is the default when available. @@ -1197,7 +1255,7 @@ Use of HAP is the default when available. Turns "out of sync pagetables" on or off. When running in shadow page table mode, the guest's page table updates may be deferred as -specified in the Intel/AMD architecture manuals. However this may +specified in the Intel/AMD architecture manuals. However, this may expose unexpected bugs in the guest, or find bugs in Xen, so it is possible to disable this feature. Use of out of sync page tables, when Xen thinks it appropriate, is the default. @@ -1206,8 +1264,8 @@ when Xen thinks it appropriate, is the default. Number of megabytes to set aside for shadowing guest pagetable pages (effectively acting as a cache of translated pages) or to use for HAP -state. By default this is 1MB per guest vcpu plus 8KB per MB of guest -RAM. You should not normally need to adjust this value. However if you +state. By default this is 1MB per guest vCPU plus 8KB per MB of guest +RAM. You should not normally need to adjust this value. However, if you are not using hardware assisted paging (i.e. you are using shadow mode) and your guest workload consists of a very large number of similar processes then increasing this value may improve performance. @@ -1219,7 +1277,7 @@ similar processes then increasing this value may improve performance. The following options allow various processor and platform level features to be hidden or exposed from the guest's point of view. This can be useful when running older guest Operating Systems which may -misbehave when faced with more modern features. In general you should +misbehave when faced with more modern features. In general, you should accept the defaults for these options wherever possible. =over 4 @@ -1235,8 +1293,8 @@ it may be useful to request a different one, like UEFI. =item B Loads ROMBIOS, a 16-bit x86 compatible BIOS. This is used by default -when device_model_version=qemu-xen-traditional. This is the only BIOS -option supported when device_model_version=qemu-xen-traditional. This is +when B. This is the only BIOS +option supported when B. This is the BIOS used by all previous Xen versions. =item B @@ -1266,7 +1324,7 @@ Hide or expose the IA32 Physical Address Extensions. These extensions make it possible for a 32 bit guest Operating System to access more than 4GB of RAM. Enabling PAE also enabled other features such as NX. PAE is required if you wish to run a 64-bit guest Operating -System. In general you should leave this enabled and allow the guest +System. In general, you should leave this enabled and allow the guest Operating System to choose whether or not to use PAE. (X86 only) =item B @@ -1274,7 +1332,7 @@ Operating System to choose whether or not to use PAE. (X86 only) Expose ACPI (Advanced Configuration and Power Interface) tables from the virtual firmware to the guest Operating System. ACPI is required by most modern guest Operating Systems. This option is enabled by -default and usually you should omit it. However it may be necessary to +default and usually you should omit it. However, it may be necessary to disable ACPI for compatibility with some guest Operating Systems. This option is true for x86 while it's false for ARM by default. @@ -1295,95 +1353,95 @@ firmware ACPI table. False (0) by default. =item B -Include information regarding APIC (Advanced Programmable Interrupt +B<(x86 only)> Include information regarding APIC (Advanced Programmable Interrupt Controller) in the firmware/BIOS tables on a single processor guest. This causes the MP (multiprocessor) and PIR (PCI Interrupt Routing) tables to be exported by the virtual firmware. This option -has no effect on a guest with multiple virtual CPUS as they must +has no effect on a guest with multiple virtual CPUs as they must always include these tables. This option is enabled by default and you should usually omit it but it may be necessary to disable these firmware tables when using certain older guest Operating Systems. These tables have been superseded by newer constructs within -the ACPI tables. (X86 only) +the ACPI tables. =item B -Hides or exposes the No-eXecute capability. This allows a guest -Operating system to map pages such that they cannot be executed which +B<(x86 only)> Hides or exposes the No-eXecute capability. This allows a guest +Operating System to map pages in such a way that they cannot be executed which can enhance security. This options requires that PAE also be -enabled. (X86 only) +enabled. =item B -Enables or disables HPET (High Precision Event Timer). This option is -enabled by default and you should usually omit it. It may be necessary -to disable the HPET in order to improve compatibility with guest -Operating Systems (X86 only) +B<(x86 only)> Enables or disables HPET (High Precision Event Timer). This +option is enabled by default and you should usually omit it. +It may be necessary to disable the HPET in order to improve compatibility with +guest Operating Systems. -=item B +=item B -Specifies access mode to the alternate-p2m capability. Alternate-p2m allows a -guest to manage multiple p2m guest physical "memory views" (as opposed to a -single p2m). This option is disabled by default and is available to x86 hvm -domains. You may want this option if you want to access-control/isolate +B<(x86 only)> Specifies the access mode to the alternate-p2m capability. +Alternate-p2m allows a guest to manage multiple p2m guest physical "memory +views" (as opposed to a single p2m). +You may want this option if you want to access-control/isolate access to specific guest physical memory pages accessed by the guest, e.g. for domain memory introspection or for isolation/access-control of memory between -components within a single guest domain. +components within a single guest domain. This option is disabled by default. The valid values are as follows: =over 4 -=item B<"disabled"> +=item B Altp2m is disabled for the domain (default). -=item B<"mixed"> +=item B The mixed mode allows access to the altp2m interface for both in-guest and external tools as well. -=item B<"external"> +=item B -Enables access to the alternate-p2m capability for hvm guests only -by external privileged tools. +Enables access to the alternate-p2m capability by external privileged tools. -=item B<"limited"> +=item B -Enables limited access to the alternate-p2m capability for hvm guests only, +Enables limited access to the alternate-p2m capability, ie. giving the guest access only to enable/disable the VMFUNC and #VE features. =back =item B -Enables or disables hvm guest access to alternate-p2m capability. +Enables or disables HVM guest access to alternate-p2m capability. Alternate-p2m allows a guest to manage multiple p2m guest physical "memory views" (as opposed to a single p2m). This option is -disabled by default and is available only to hvm domains. +disabled by default and is available only to HVM domains. You may want this option if you want to access-control/isolate access to specific guest physical memory pages accessed by the guest, e.g. for HVM domain memory introspection or for isolation/access-control of memory between components within -a single guest hvm domain. This option is deprecated, use the option -"altp2m" instead. +a single guest HVM domain. B -Note: While the option "altp2mhvm" is deprecated, legacy applications for +B: While the option "altp2mhvm" is deprecated, legacy applications for x86 systems will continue to work using it. =item B Enable or disables guest access to hardware virtualisation features, e.g. it allows a guest Operating System to also function as a -hypervisor. This option is disabled by default. You may want this +hypervisor. You may want this option if you want to run another hypervisor (including another copy of Xen) within a Xen guest or to support a guest Operating System which uses hardware virtualisation extensions (e.g. Windows XP compatibility mode on more modern Windows OS). +This option is disabled by default. =item B or B -Configure the value returned when a guest executes CPUID instruction. +Configure the value returned when a guest executes the CPUID instruction. Two versions of config syntax are recognized: libxl and xend. The libxl syntax is a comma separated list of key=value pairs, preceded by the @@ -1398,8 +1456,8 @@ Possible values for a single feature bit: 's' -> as 'k' but preserve across save/restore and migration (not implemented) Note: when specifying B for hypervisor leaves (0x4000xxxx major group) -only the lowest 8 bits of leaf's 0x4000xx00 EAX register are processed, the rest -are ignored (these 8 bits signify maximum number of hypervisor leaves). +only the lowest 8 bits of leaf's 0x4000xx00 EAX register are processed, the +rest are ignored (these 8 bits signify maximum number of hypervisor leaves). List of keys taking a value: apicidsize brandid clflush family localapicid maxleaf maxhvleaf model nc @@ -1426,31 +1484,32 @@ The xend syntax is a list of values in the form of Example to hide two features from the guest: 'tm', which is bit #29 in EDX, and 'pni' (SSE3), which is bit #0 in ECX: -xend: [ '1:ecx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0,edx=xx0xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ] +xend: [ "1:ecx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0,edx=xx0xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ] -libxl: 'host,tm=0,sse3=0' +libxl: "host,tm=0,sse3=0" -More info about the CPUID instruction can be found in the processor manuals, and -in Wikipedia: L +More info about the CPUID instruction can be found in the processor manuals, +and on Wikipedia: L =item B -Specify a path to a file that contains extra ACPI firmware tables to pass in to +Specifies a path to a file that contains extra ACPI firmware tables to pass into a guest. The file can contain several tables in their binary AML form concatenated together. Each table self describes its length so no additional information is needed. These tables will be added to the ACPI table set in the guest. Note that existing tables cannot be overridden by this feature. For -example this cannot be used to override tables like DSDT, FADT, etc. +example, this cannot be used to override tables like DSDT, FADT, etc. =item B -Specify a path to a file that contains extra SMBIOS firmware structures to pass -in to a guest. The file can contain a set DMTF predefined structures which will -override the internal defaults. Not all predefined structures can be overridden, +Specifies a path to a file that contains extra SMBIOS firmware structures to +pass into a guest. The file can contain a set of DMTF predefined structures +which will override the internal defaults. Not all predefined structures can be +overridden, only the following types: 0, 1, 2, 3, 11, 22, 39. The file can also contain any number of vendor defined SMBIOS structures (type 128 - 255). Since SMBIOS structures do not present their overall size, each entry in the file must be -preceded by a 32b integer indicating the size of the next structure. +preceded by a 32b integer indicating the size of the following structure. =item B @@ -1467,19 +1526,19 @@ Valid options are: =over 4 -=item B<"generate"> +=item B Generate a random VM generation ID every time the domain is created or restored. -=item B<"none"> +=item B Do not provide a VM generation ID. =back -See also "Virtual Machine Generation ID" by Microsoft -(http://www.microsoft.com/en-us/download/details.aspx?id=30707). +See also "Virtual Machine Generation ID" by Microsoft: +L =back @@ -1489,13 +1548,14 @@ See also "Virtual Machine Generation ID" by Microsoft =item B -Specifies how the TSC (Time Stamp Counter) should be provided to the -guest (X86 only). Specifying this option as a number is -deprecated. Options are: +B<(x86 only)> Specifies how the TSC (Time Stamp Counter) should be provided to +the guest. B + +Options are: =over 4 -=item B<"default"> +=item B Guest rdtsc/p is executed natively when monotonicity can be guaranteed and emulated otherwise (with frequency scaled if necessary). @@ -1505,37 +1565,35 @@ provides constant host TSC, its guest TSC frequency will be the same as the host. If it is later migrated to another host that provide constant host TSC and supports Intel VMX TSC scaling/AMD SVM TSC ratio, its guest TSC frequency will be the same before and after -migration, and guest rdtsc/p will be executed natively as well after -migration. +migration, and guest rdtsc/p will be executed natively after migration as well -=item B<"always_emulate"> +=item B -Guest rdtsc/p always emulated at 1GHz (kernel and user). Guest rdtsc/p -always emulated and the virtual TSC will appear to increment (kernel -and user) at a fixed 1GHz rate, regardless of the PCPU HZ rate or -power state; Although there is an overhead associated with emulation +Guest rdtsc/p is always emulated and the virtual TSC will appear to increment +(kernel and user) at a fixed 1GHz rate, regardless of the pCPU HZ rate or +power state. Although there is an overhead associated with emulation, this will NOT affect underlying CPU performance. -=item B<"native"> +=item B -Guest rdtsc always executed natively (no monotonicity/frequency -guarantees); guest rdtscp emulated at native frequency if unsupported +Guest rdtsc/p is always executed natively (no monotonicity/frequency +guarantees). Guest rdtsc/p is emulated at native frequency if unsupported by h/w, else executed natively. -=item B<"native_paravirt"> +=item B -Same as B, except xen manages TSC_AUX register so guest can +Same as B, except Xen manages the TSC_AUX register so the guest can determine when a restore/migration has occurred and assumes guest -obtains/uses pvclock-like mechanism to adjust for monotonicity and +obtains/uses a pvclock-like mechanism to adjust for monotonicity and frequency changes. If a HVM container in B TSC mode can execute both guest rdtsc and guest rdtscp natively, then the guest TSC frequency will be -determined in the similar way to that of B TSC mode. +determined in a similar way to that of B TSC mode. =back -Please see L for more information on this option. +Please see B for more information on this option. =item B @@ -1544,7 +1602,7 @@ i.e. set to UTC. =item B -Set the real time clock offset in seconds. False (0) by default. +Set the real time clock offset in seconds. No offset (0) by default. =item B @@ -1553,33 +1611,33 @@ reduce guest interrupts. Enabling this option can reduce power consumption, especially when a guest uses a high timer interrupt frequency (HZ) values. The default is true (1). -=item B +=item B Specifies the mode for Virtual Timers. The valid values are as follows: =over 4 -=item B<"delay_for_missed_ticks"> +=item B -Delay for missed ticks. Do not advance a vcpu's time beyond the +Delay for missed ticks. Do not advance a vCPU's time beyond the correct delivery time for interrupts that have been missed due to -preemption. Deliver missed interrupts when the vcpu is rescheduled and -advance the vcpu's virtual time stepwise for each one. +preemption. Deliver missed interrupts when the vCPU is rescheduled and +advance the vCPU's virtual time stepwise for each one. -=item B<"no_delay_for_missed_ticks"> +=item B No delay for missed ticks. As above, missed interrupts are delivered, but guest time always tracks wallclock (i.e., real) time while doing so. -=item B<"no_missed_ticks_pending"> +=item B No missed interrupts are held pending. Instead, to ensure ticks are delivered at some non-zero rate, if we detect missed ticks then the -internal tick alarm is not disabled if the VCPU is preempted during +internal tick alarm is not disabled if the vCPU is preempted during the next tick period. -=item B<"one_missed_tick_pending"> +=item B One missed tick pending. Missed interrupts are collapsed together and delivered as one 'late tick'. Guest time always tracks @@ -1596,7 +1654,7 @@ wallclock (i.e., real) time. =item B Specifies the size the MMIO hole below 4GiB will be. Only valid for -device_model_version = "qemu-xen". +B. Cannot be smaller than 256. Cannot be larger than 3840. @@ -1627,7 +1685,7 @@ Windows L. Setting B with the default device_model "qemu-xen" requires at least QEMU 1.6. -=item B +=item B or B The groups of Microsoft Hyper-V (AKA viridian) compatible enlightenments exposed to the guest. The following groups of enlightenments may be @@ -1673,7 +1731,7 @@ on hosts with higher levels of (physical) CPU contention. This set incorporates use of the APIC assist page to avoid EOI of the local APIC. This enlightenment may improve performance of guests that make use of -per-vcpu event channel upcall vectors. +per-vCPU event channel upcall vectors. Note that this enlightenment will have no effect if the guest is using APICv posted interrupts. @@ -1745,36 +1803,38 @@ qemu-xen-traditional device-model, the amount of video RAM is fixed at 4 MB, which is sufficient for 1024x768 at 32 bpp. For the upstream qemu-xen device-model, the default and minimum is 8 MB. -For B vga, the default is both default and minimal 128MB. +For QXL vga, both the default and minimal are 128MB. If B is set less than 128MB, an error will be triggered. =item B -Select a standard VGA card with VBE (VESA BIOS Extensions) as the -emulated graphics device. The default is false (0) which means to emulate -a Cirrus Logic GD5446 VGA card. If your guest supports VBE 2.0 or +Speficies a standard VGA card with VBE (VESA BIOS Extensions) as the +emulated graphics device. If your guest supports VBE 2.0 or later (e.g. Windows XP onwards) then you should enable this. stdvga supports more video ram and bigger resolutions than Cirrus. -This option is deprecated, use vga="stdvga" instead. +The default is false (0) which means to emulate +a Cirrus Logic GD5446 VGA card. +B. =item B -Selects the emulated video card (none|stdvga|cirrus|qxl). -The default is cirrus. +Selects the emulated video card. +Options are: B, B, B and B. +The default is B. In general, QXL should work with the Spice remote display protocol -for acceleration, and QXL driver is necessary in guest in this case. +for acceleration, and a QXL driver is necessary in the guest in that case. QXL can also work with the VNC protocol, but it will be like a standard -VGA without acceleration. +VGA card without acceleration. =item B Allow access to the display via the VNC protocol. This enables the -other VNC-related settings. The default is to enable this. +other VNC-related settings. The default is (1) enabled. =item B -Specifies the IP address, and optionally VNC display number, to use. +Specifies the IP address and, optionally, the VNC display number to use. =item B @@ -1783,12 +1843,12 @@ will be DISPLAYNUM+5900. =item B -Requests that the VNC display setup search for a free TCP port to use. -The actual display used can be accessed with C. +Requests that the VNC display setup searches for a free TCP port to use. +The actual display used can be accessed with B. =item B -Specifies the password for the VNC server. If password is set to an +Specifies the password for the VNC server. If the password is set to an empty string, authentication on the VNC server will be disabled allowing any user to connect. @@ -1799,19 +1859,19 @@ display. If the input method does not easily support raw keycodes (e.g. this is often the case when using VNC) then this allows us to correctly map the input keys into keycodes seen by the guest. The specific values which are accepted are defined by the version of the -device-model which you are using. See L below or consult the -L manpage. The default is B. +device-model which you are using. See B below or consult the +B manpage. The default is B. =item B Specifies that the display should be presented via an X window (using -Simple DirectMedia Layer). The default is not to enable this mode. +Simple DirectMedia Layer). The default is (0) not enabled. =item B Enable OpenGL acceleration of the SDL display. Only effects machines using B and only if the -device-model was compiled with OpenGL support. False (0) by default. +device-model was compiled with OpenGL support. Default is (0) false. =item B @@ -1834,66 +1894,72 @@ other SPICE-related settings. =item B -Specify the interface address to listen on if given, otherwise any +Specifies the interface address to listen on if given, otherwise any interface. =item B -Specify the port to listen on by the SPICE server if the SPICE is +Specifies the port to listen on by the SPICE server if SPICE is enabled. =item B -Specify the secure port to listen on by the SPICE server if the SPICE -is enabled. At least one of the spiceport or spicetls_port must be -given if SPICE is enabled. NB. the options depending on spicetls_port +Specifies the secure port to listen on by the SPICE server if SPICE +is enabled. At least one of B or B must be +given if SPICE is enabled. + +B the options depending on B have not been supported. =item B -Enable client connection without password. When disabled, spicepasswd -must be set. The default is false (0). +Enable clients to connect without specifying a password. When disabled, +B must be set. The default is (0) false. =item B -Specify the ticket password which is used by a client for connection. +Specify the password which is used by clients for establishing a connection. =item B -Whether SPICE agent is used for client mouse mode. The default is true (1) -(turn on) +Whether SPICE agent is used for client mouse mode. The default is (1) true. =item B -Enables spice vdagent. The Spice vdagent is an optional component for +Enables the SPICE vdagent. The SPICE vdagent is an optional component for enhancing user experience and performing guest-oriented management -tasks. Its features includes: client mouse mode (no need to grab mouse -by client, no mouse lag), automatic adjustment of screen resolution, -copy and paste (text and image) between client and domU. It also -requires vdagent service installed on domU o.s. to work. The default is 0. +tasks. Its features include: client mouse mode (no need to grab the mouse +by the client, no mouse lag), automatic adjustment of screen resolution, +copy and paste (text and image) between the client and the guest. It also +requires the vdagent service installed on the guest OS to work. +The default is (0) disabled. =item B -Enables Spice clipboard sharing (copy/paste). It requires spicevdagent -enabled. The default is false (0). +Enables SPICE clipboard sharing (copy/paste). It requires that +B is enabled. The default is (0) false. =item B -Enables spice usbredirection. Creates NUMBER usbredirection channels -for redirection of up to 4 usb devices from spice client to domU's qemu. -It requires an usb controller and if not defined it will automatically adds -an usb2 controller. The default is disabled (0). +Enables SPICE USB redirection. Creates a NUMBER of USB redirection channels +for redirecting up to 4 USB devices from the SPICE client to the guest's QEMU. +It requires an USB controller and, if not defined, it will automatically add +an USB2.0 controller. The default is (0) disabled. -=item B +=item B -Specifies what image compression is to be used by spice (if given), otherwise -the qemu default will be used. Please see documentations of your current qemu -version for details. +Specifies what image compression is to be used by SPICE (if given), otherwise +the QEMU default will be used. Please see the documentation of your QEMU +version for more details. -=item B +Available options are: B. -Specifies what streaming video setting is to be used by spice (if given), -otherwise the qemu default will be used. +=item B + +Specifies what streaming video setting is to be used by SPICE (if given), +otherwise the QEMU default will be used. + +Available options are: B. =back @@ -1904,17 +1970,17 @@ otherwise the qemu default will be used. =item B Redirect virtual serial ports to Bs. Please see the -B<-serial> option in the L manpage for details of the valid +B<-serial> option in the B manpage for details of the valid B options. Default is B when in graphical mode and B if B is used. The form serial=DEVICE is also accepted for backwards compatibility. -=item B +=item B Select the virtual sound card to expose to the guest. The valid devices are defined by the device model configuration, please see the -L manpage for details. The default is not to export any sound +B manpage for details. The default is not to export any sound device. =item B @@ -1923,17 +1989,17 @@ Enables or disables an emulated USB bus in the guest. =item B -Specifies the type of an emulated USB bus in the guest. 1 for usb1, -2 for usb2 and 3 for usb3, it is available only with upstream qemu. -Due to implementation limitations this is not compatible with the usb -and usbdevice parameters. -Default is 0 (no usb controller defined). +Specifies the type of an emulated USB bus in the guest, values 1 for USB1.1, +2 for USB2.0 and 3 for USB3.0. It is available only with an upstream QEMU. +Due to implementation limitations this is not compatible with the B +and B parameters. +Default is (0) no USB controller defined. =item B Adds Bs to the emulated USB bus. The USB bus must also be enabled using B. The most common use for this option is -B which adds pointer device using absolute +B which adds a pointer device using absolute coordinates. Such devices function better than relative coordinate devices (such as a standard mouse) since many methods of exporting guest graphics (such as VNC) work better in this mode. Note that this @@ -1942,7 +2008,7 @@ host/client side. Host devices can also be passed through in this way, by specifying host:USBID, where USBID is of the form xxxx:yyyy. The USBID can -typically be found by using lsusb or usb-devices. +typically be found by using B or B. If you wish to use the "host:bus.addr" format, remove any leading '0' from the bus and addr. For example, for the USB device on bus 008 dev 002, you should @@ -1950,7 +2016,7 @@ write "host:8.2". The form usbdevice=DEVICE is also accepted for backwards compatibility. -More valid options can be found in the "usbdevice" section of the qemu +More valid options can be found in the "usbdevice" section of the QEMU documentation. =item B @@ -1972,7 +2038,7 @@ specified, enabling the use of XenServer PV drivers in the guest. =back This parameter only takes effect when device_model_version=qemu-xen. -See L for more information. +See B for more information. =back @@ -1989,7 +2055,9 @@ device). =item B Selects which variant of the device-model should be used for this -guest. Valid values are: +guest. + +Valid values are: =over 4 @@ -2000,7 +2068,7 @@ This device-model is the default for Linux dom0. =item B -Use the device-model based upon the historical Xen fork of Qemu. +Use the device-model based upon the historical Xen fork of QEMU. This device-model is still the default for NetBSD dom0. =item B @@ -2019,7 +2087,7 @@ model which they were installed with. Override the path to the binary to be used as the device-model. The binary provided here MUST be consistent with the -`device_model_version` which you have specified. You should not +B which you have specified. You should not normally need to specify this option. =item B @@ -2063,7 +2131,7 @@ using. Commonly this includes: The default is B. -See L for more information. +See B for more information. =head2 Architecture Specific options @@ -2073,8 +2141,9 @@ See L for more information. =item B -Version of the GIC emulated for the guest. Currently, the following -versions are supported: +Version of the GIC emulated for the guest. + +Currently, the following versions are supported: =over 4 @@ -2089,12 +2158,12 @@ GICv2 compatibility mode. =item B -Emulate the same version as the native GIC hardware used by host where +Emulate the same version as the native GIC hardware used by the host where the domain was created. =back -This requires hardware compatibility with the requested version. Either +This requires hardware compatibility with the requested version, either natively or via hardware backwards compatibility support. =back