| 1 |
# Xen Hypervisor Command Line Options |
| 2 |
|
| 3 |
This document covers the command line options which the Xen |
| 4 |
Hypervisor. |
| 5 |
|
| 6 |
## Types of parameter |
| 7 |
|
| 8 |
Most parameters take the form `option=value`. Different options on |
| 9 |
the command line should be space delimited. All options are case |
| 10 |
sensitive, as are all values unless explicitly noted. |
| 11 |
|
| 12 |
### Boolean (`<boolean>`) |
| 13 |
|
| 14 |
All boolean option may be explicitly enabled using a `value` of |
| 15 |
> `yes`, `on`, `true`, `enable` or `1` |
| 16 |
|
| 17 |
They may be explicitly disabled using a `value` of |
| 18 |
> `no`, `off`, `false`, `disable` or `0` |
| 19 |
|
| 20 |
In addition, a boolean option may be enabled by simply stating its |
| 21 |
name, and may be disabled by prefixing its name with `no-`. |
| 22 |
|
| 23 |
####Examples |
| 24 |
|
| 25 |
Enable noreboot mode |
| 26 |
> `noreboot=true` |
| 27 |
|
| 28 |
Disable x2apic support (if present) |
| 29 |
> `x2apic=off` |
| 30 |
|
| 31 |
Enable synchronous console mode |
| 32 |
> `sync_console` |
| 33 |
|
| 34 |
Explicitly specifying any value other than those listed above is |
| 35 |
undefined, as is stacking a `no-` prefix with an explicit value. |
| 36 |
|
| 37 |
### Integer (`<integer>`) |
| 38 |
|
| 39 |
An integer parameter will default to decimal and may be prefixed with |
| 40 |
a `-` for negative numbers. Alternatively, a hexadecimal number may be |
| 41 |
used by prefixing the number with `0x`, or an octal number may be used |
| 42 |
if a leading `0` is present. |
| 43 |
|
| 44 |
Providing a string which does not validly convert to an integer is |
| 45 |
undefined. |
| 46 |
|
| 47 |
### Size (`<size>`) |
| 48 |
|
| 49 |
A size parameter may be any integer, with a single size suffix |
| 50 |
|
| 51 |
* `T` or `t`: TiB (2^40) |
| 52 |
* `G` or `g`: GiB (2^30) |
| 53 |
* `M` or `m`: MiB (2^20) |
| 54 |
* `K` or `k`: KiB (2^10) |
| 55 |
* `B` or `b`: Bytes |
| 56 |
|
| 57 |
Without a size suffix, the default will be kilo. Providing a suffix |
| 58 |
other than those listed above is undefined. |
| 59 |
|
| 60 |
### String |
| 61 |
|
| 62 |
Many parameters are more complicated and require more intricate |
| 63 |
configuration. The detailed description of each individual parameter |
| 64 |
specify which values are valid. |
| 65 |
|
| 66 |
### List |
| 67 |
|
| 68 |
Some options take a comma separated list of values. |
| 69 |
|
| 70 |
### Combination |
| 71 |
|
| 72 |
Some parameters act as combinations of the above, most commonly a mix |
| 73 |
of Boolean and String. These are noted in the relevant sections. |
| 74 |
|
| 75 |
## Parameter details |
| 76 |
|
| 77 |
### acpi |
| 78 |
> `= force | ht | noirq | <boolean> | verbose` |
| 79 |
|
| 80 |
**String**, or **Boolean** to disable. |
| 81 |
|
| 82 |
By default, Xen will scan the DMI data and blacklist certain systems |
| 83 |
which are known to have broken ACPI setups. Providing `acpi=force` |
| 84 |
will cause Xen to ignore the blacklist and attempt to use all ACPI |
| 85 |
features. |
| 86 |
|
| 87 |
Using `acpi=ht` causes Xen to parse the ACPI tables enough to |
| 88 |
enumerate all CPUs, but will not use other ACPI features. This is not |
| 89 |
common, and only has an effect if your system is blacklisted. |
| 90 |
|
| 91 |
The `acpi=noirq` option causes Xen to not parse the ACPI MADT table |
| 92 |
looking for IO-APIC entries. This is also not common, and any system |
| 93 |
which requires this option to function should be blacklisted. |
| 94 |
Additionally, this will not prevent Xen from finding IO-APIC entries |
| 95 |
from the MP tables. |
| 96 |
|
| 97 |
Further, any of the boolean false options can be used to disable ACPI |
| 98 |
usage entirely. |
| 99 |
|
| 100 |
Because responsibility for ACPI processing is shared between Xen and |
| 101 |
the domain 0 kernel this option is automatically propagated to the |
| 102 |
domain 0 command line. |
| 103 |
|
| 104 |
Finally, `acpi=verbose` will enable per-processor information logging |
| 105 |
which may otherwise be too noisy in particular on large systems. |
| 106 |
|
| 107 |
### acpi_apic_instance |
| 108 |
> `= <integer>` |
| 109 |
|
| 110 |
Specify which ACPI MADT table to parse for APIC information, if more |
| 111 |
than one is present. |
| 112 |
|
| 113 |
### acpi_pstate_strict (x86) |
| 114 |
> `= <boolean>` |
| 115 |
|
| 116 |
> Default: `false` |
| 117 |
|
| 118 |
Enforce checking that P-state transitions by the ACPI cpufreq driver |
| 119 |
actually result in the nominated frequency to be established. A warning |
| 120 |
message will be logged if that isn't the case. |
| 121 |
|
| 122 |
### acpi_skip_timer_override (x86) |
| 123 |
> `= <boolean>` |
| 124 |
|
| 125 |
Instruct Xen to ignore timer-interrupt override. |
| 126 |
|
| 127 |
### acpi_sleep (x86) |
| 128 |
> `= s3_bios | s3_mode` |
| 129 |
|
| 130 |
`s3_bios` instructs Xen to invoke video BIOS initialization during S3 |
| 131 |
resume. |
| 132 |
|
| 133 |
`s3_mode` instructs Xen to set up the boot time (option `vga=`) video |
| 134 |
mode during S3 resume. |
| 135 |
|
| 136 |
### allow_unsafe (x86) |
| 137 |
> `= <boolean>` |
| 138 |
|
| 139 |
> Default: `false` |
| 140 |
|
| 141 |
Force boot on potentially unsafe systems. By default Xen will refuse |
| 142 |
to boot on systems with the following errata: |
| 143 |
|
| 144 |
* AMD Erratum 121. Processors with this erratum are subject to a guest |
| 145 |
triggerable Denial of Service. Override only if you trust all of |
| 146 |
your PV guests. |
| 147 |
|
| 148 |
### altp2m (Intel) |
| 149 |
> `= <boolean>` |
| 150 |
|
| 151 |
> Default: `false` |
| 152 |
|
| 153 |
Permit multiple copies of host p2m. |
| 154 |
|
| 155 |
### apic (x86) |
| 156 |
> `= bigsmp | default` |
| 157 |
|
| 158 |
Override Xen's logic for choosing the APIC driver. By default, if |
| 159 |
there are more than 8 CPUs, Xen will switch to `bigsmp` over |
| 160 |
`default`. |
| 161 |
|
| 162 |
### apicv (Intel) |
| 163 |
> `= <boolean>` |
| 164 |
|
| 165 |
> Default: `true` |
| 166 |
|
| 167 |
Permit Xen to use APIC Virtualisation Extensions. This is an optimisation |
| 168 |
available as part of VT-x, and allows hardware to take care of the guests APIC |
| 169 |
handling, rather than requiring emulation in Xen. |
| 170 |
|
| 171 |
### apic_verbosity (x86) |
| 172 |
> `= verbose | debug` |
| 173 |
|
| 174 |
Increase the verbosity of the APIC code from the default value. |
| 175 |
|
| 176 |
### arat (x86) |
| 177 |
> `= <boolean>` |
| 178 |
|
| 179 |
> Default: `true` |
| 180 |
|
| 181 |
Permit Xen to use "Always Running APIC Timer" support on compatible hardware |
| 182 |
in combination with cpuidle. This option is only expected to be useful for |
| 183 |
developers wishing Xen to fall back to older timing methods on newer hardware. |
| 184 |
|
| 185 |
### argo |
| 186 |
= List of [ <bool>, mac-permissive=<bool> ] |
| 187 |
|
| 188 |
Controls for the Argo hypervisor-mediated interdomain communication service. |
| 189 |
|
| 190 |
The functionality that this option controls is only available when Xen has been |
| 191 |
compiled with the build setting for Argo enabled in the build configuration. |
| 192 |
|
| 193 |
Argo is a interdomain communication mechanism, where Xen acts as the central |
| 194 |
point of authority. Guests may register memory rings to recieve messages, |
| 195 |
query the status of other domains, and send messages by hypercall, all subject |
| 196 |
to appropriate auditing by Xen. Argo is disabled by default. |
| 197 |
|
| 198 |
* The `mac-permissive` boolean controls whether wildcard receive rings may be |
| 199 |
registered (`mac-permissive=1`) or may not be registered |
| 200 |
(`mac-permissive=0`). |
| 201 |
|
| 202 |
This option is disabled by default, to protect domains from a DoS by a |
| 203 |
buggy or malicious other domain spamming the ring. |
| 204 |
|
| 205 |
### asid (x86) |
| 206 |
> `= <boolean>` |
| 207 |
|
| 208 |
> Default: `true` |
| 209 |
|
| 210 |
Permit Xen to use Address Space Identifiers. This is an optimisation which |
| 211 |
tags the TLB entries with an ID per vcpu. This allows for guest TLB flushes |
| 212 |
to be performed without the overhead of a complete TLB flush. |
| 213 |
|
| 214 |
### async-show-all (x86) |
| 215 |
> `= <boolean>` |
| 216 |
|
| 217 |
> Default: `false` |
| 218 |
|
| 219 |
Forces all CPUs' full state to be logged upon certain fatal asynchronous |
| 220 |
exceptions (watchdog NMIs and unexpected MCEs). |
| 221 |
|
| 222 |
### ats (x86) |
| 223 |
> `= <boolean>` |
| 224 |
|
| 225 |
> Default: `false` |
| 226 |
|
| 227 |
Permits Xen to set up and use PCI Address Translation Services. This is a |
| 228 |
performance optimisation for PCI Passthrough. |
| 229 |
|
| 230 |
**WARNING: Xen cannot currently safely use ATS because of its synchronous wait |
| 231 |
loops for Queued Invalidation completions.** |
| 232 |
|
| 233 |
### availmem |
| 234 |
> `= <size>` |
| 235 |
|
| 236 |
> Default: `0` (no limit) |
| 237 |
|
| 238 |
Specify a maximum amount of available memory, to which Xen will clamp |
| 239 |
the e820 table. |
| 240 |
|
| 241 |
### badpage |
| 242 |
> `= List of [ <integer> | <integer>-<integer> ]` |
| 243 |
|
| 244 |
Specify that certain pages, or certain ranges of pages contain bad |
| 245 |
bytes and should not be used. For example, if your memory tester says |
| 246 |
that byte `0x12345678` is bad, you would place `badpage=0x12345` on |
| 247 |
Xen's command line. |
| 248 |
|
| 249 |
### bootscrub |
| 250 |
> `= idle | <boolean>` |
| 251 |
|
| 252 |
> Default: `idle` |
| 253 |
|
| 254 |
Scrub free RAM during boot. This is a safety feature to prevent |
| 255 |
accidentally leaking sensitive VM data into other VMs if Xen crashes |
| 256 |
and reboots. |
| 257 |
|
| 258 |
In `idle` mode, RAM is scrubbed in background on all CPUs during idle-loop |
| 259 |
with a guarantee that memory allocations always provide scrubbed pages. |
| 260 |
This option reduces boot time on machines with a large amount of RAM while |
| 261 |
still providing security benefits. |
| 262 |
|
| 263 |
### bootscrub_chunk |
| 264 |
> `= <size>` |
| 265 |
|
| 266 |
> Default: `128M` |
| 267 |
|
| 268 |
Maximum RAM block size chunks to be scrubbed whilst holding the page heap lock |
| 269 |
and not running softirqs. Reduce this if softirqs are not being run frequently |
| 270 |
enough. Setting this to a high value may cause boot failure, particularly if |
| 271 |
the NMI watchdog is also enabled. |
| 272 |
|
| 273 |
### buddy-alloc-size (arm64) |
| 274 |
> `= <size>` |
| 275 |
|
| 276 |
> Default: `64M` |
| 277 |
|
| 278 |
Amount of memory reserved for the buddy allocator when colored allocator is |
| 279 |
active. This option is available only when `CONFIG_LLC_COLORING` is enabled. |
| 280 |
The colored allocator is meant as an alternative to the buddy allocator, |
| 281 |
because its allocation policy is by definition incompatible with the generic |
| 282 |
one. Since the Xen heap systems is not colored yet, we need to support the |
| 283 |
coexistence of the two allocators for now. This parameter, which is optional |
| 284 |
and for expert only, it's used to set the amount of memory reserved to the |
| 285 |
buddy allocator. |
| 286 |
|
| 287 |
### cet |
| 288 |
= List of [ <bool>, shstk=<bool>, ibt=<bool> ] |
| 289 |
|
| 290 |
Applicability: x86 |
| 291 |
|
| 292 |
Controls for the use of Control-flow Enforcement Technology. CET is group a |
| 293 |
of hardware features designed to combat Return-oriented Programming (ROP, also |
| 294 |
call/jmp COP/JOP) attacks. |
| 295 |
|
| 296 |
CET is incompatible with 32bit PV guests. If any CET sub-options are active, |
| 297 |
they will override the `pv=32` boolean to `false`. Backwards compatibility |
| 298 |
can be maintained with the pv-shim mechanism. |
| 299 |
|
| 300 |
* An unqualified boolean is a shorthand for setting all suboptions at once. |
| 301 |
|
| 302 |
* The `shstk=` boolean controls whether Xen uses Shadow Stacks for its own |
| 303 |
protection. |
| 304 |
|
| 305 |
The option is available when `CONFIG_XEN_SHSTK` is compiled in, and |
| 306 |
generally defaults to `true` on hardware supporting CET-SS. Specifying |
| 307 |
`cet=no-shstk` will cause Xen not to use Shadow Stacks even when support |
| 308 |
is available in hardware. |
| 309 |
|
| 310 |
Some hardware suffers from an issue known as Supervisor Shadow Stack |
| 311 |
Fracturing. On such hardware, Xen will default to not using Shadow Stacks |
| 312 |
when virtualised. Specifying `cet=shstk` will override this heuristic and |
| 313 |
enable Shadow Stacks unilaterally. |
| 314 |
|
| 315 |
* The `ibt=` boolean controls whether Xen uses Indirect Branch Tracking for |
| 316 |
its own protection. |
| 317 |
|
| 318 |
The option is available when `CONFIG_XEN_IBT` is compiled in, and defaults |
| 319 |
to `true` on hardware supporting CET-IBT. Specifying `cet=no-ibt` will |
| 320 |
cause Xen not to use Indirect Branch Tracking even when support is |
| 321 |
available in hardware. |
| 322 |
|
| 323 |
### clocksource (x86) |
| 324 |
> `= pit | hpet | acpi | tsc` |
| 325 |
|
| 326 |
If set, override Xen's default choice for the platform timer. |
| 327 |
Having TSC as platform timer requires being explicitly set. This is because |
| 328 |
TSC can only be safely used if CPU hotplug isn't performed on the system. On |
| 329 |
some platforms, the "maxcpus" option may need to be used to further adjust |
| 330 |
the number of allowed CPUs. When running on platforms that can guarantee a |
| 331 |
monotonic TSC across sockets you may want to adjust the "tsc" command line |
| 332 |
parameter to "stable:socket". |
| 333 |
|
| 334 |
### cmci-threshold (Intel) |
| 335 |
> `= <integer>` |
| 336 |
|
| 337 |
> Default: `2` |
| 338 |
|
| 339 |
Specify the event count threshold for raising Corrected Machine Check |
| 340 |
Interrupts. Specifying zero disables CMCI handling. |
| 341 |
|
| 342 |
### cmos-rtc-probe (x86) |
| 343 |
> `= <boolean>` |
| 344 |
|
| 345 |
> Default: `false` |
| 346 |
|
| 347 |
Flag to indicate whether to probe for a CMOS Real Time Clock irrespective of |
| 348 |
ACPI indicating none to be there. |
| 349 |
|
| 350 |
### com1 (x86) |
| 351 |
### com2 (x86) |
| 352 |
> `= <baud>[/<base-baud>][,[DPS][,[<io-base>|pci|amt][,[<irq>|msi][,[<port-bdf>][,[<bridge-bdf>]]]]]]` |
| 353 |
|
| 354 |
Both option `com1` and `com2` follow the same format. |
| 355 |
|
| 356 |
* `<baud>` may be either an integer baud rate, or the string `auto` if |
| 357 |
the bootloader or other earlier firmware has already set it up. |
| 358 |
* Optionally, the base baud rate (usually the highest baud rate the |
| 359 |
device can communicate at) can be specified. |
| 360 |
* `DPS` represents the number of data bits, the parity, and the number |
| 361 |
of stop bits. |
| 362 |
* `D` is an integer between 5 and 8 for the number of data bits. |
| 363 |
* `P` is a single character representing the type of parity: |
| 364 |
* `n` No |
| 365 |
* `o` Odd |
| 366 |
* `e` Even |
| 367 |
* `m` Mark |
| 368 |
* `s` Space |
| 369 |
* `S` is an integer 1 or 2 for the number of stop bits. |
| 370 |
* `<io-base>` is an integer which specifies the IO base port for UART |
| 371 |
registers. |
| 372 |
* `<irq>` is the IRQ number to use, or `0` to use the UART in poll |
| 373 |
mode only, or `msi` to set up a Message Signaled Interrupt. |
| 374 |
* `<port-bdf>` is the PCI location of the UART, in |
| 375 |
`<bus>:<device>.<function>` notation. |
| 376 |
* `<bridge-bdf>` is the PCI bridge behind which is the UART, in |
| 377 |
`<bus>:<device>.<function>` notation. |
| 378 |
* `pci` indicates that Xen should scan the PCI bus for the UART, |
| 379 |
avoiding Intel AMT devices. |
| 380 |
* `amt` indicated that Xen should scan the PCI bus for the UART, |
| 381 |
including Intel AMT devices if present. |
| 382 |
|
| 383 |
A typical setup for most situations might be `com1=115200,8n1` |
| 384 |
|
| 385 |
In addition to the above positional specification for UART parameters, |
| 386 |
name=value pair specfications are also supported. This is used to add |
| 387 |
flexibility for UART devices which require additional UART parameter |
| 388 |
configurations. |
| 389 |
|
| 390 |
The comma separation still delineates positional parameters. Hence, |
| 391 |
unless the parameter is explicitly specified with name=value option, it |
| 392 |
will be considered a positional parameter. |
| 393 |
|
| 394 |
The syntax consists of |
| 395 |
com1=(comma-separated positional parameters),(comma separated name-value pairs) |
| 396 |
|
| 397 |
The accepted name keywords for name=value pairs are: |
| 398 |
|
| 399 |
* `baud` - accepts integer baud rate (eg. 115200) or `auto` |
| 400 |
* `bridge`- Similar to bridge-bdf in positional parameters. |
| 401 |
Used to determine the PCI bridge to access the UART device. |
| 402 |
Notation is xx:xx.x `<bus>:<device>.<function>` |
| 403 |
* `clock-hz`- accepts large integers to setup UART clock frequencies. |
| 404 |
Do note - these values are multiplied by 16. |
| 405 |
* `data-bits` - integer between 5 and 8 |
| 406 |
* `dev` - accepted values are `pci` OR `amt`. If this option |
| 407 |
is used to specify if the serial device is pci-based. The io_base |
| 408 |
cannot be specified when `dev=pci` or `dev=amt` is used. |
| 409 |
* `io-base` - accepts integer which specified IO base port for UART registers |
| 410 |
* `irq` - IRQ number to use |
| 411 |
* `parity` - accepted values are same as positional parameters |
| 412 |
* `port` - Used to specify which port the PCI serial device is located on |
| 413 |
Notation is xx:xx.x `<bus>:<device>.<function>` |
| 414 |
* `reg-shift` - register shifts required to set UART registers |
| 415 |
* `reg-width` - register width required to set UART registers |
| 416 |
(only accepts 1 and 4) |
| 417 |
* `stop-bits` - only accepts 1 or 2 for the number of stop bits |
| 418 |
|
| 419 |
The following are examples of correct specifications: |
| 420 |
|
| 421 |
com1=115200,8n1,0x3f8,4 |
| 422 |
com1=115200,8n1,0x3f8,4,reg-width=4,reg-shift=2 |
| 423 |
com1=baud=115200,parity=n,stop-bits=1,io-base=0x3f8,reg-width=4 |
| 424 |
|
| 425 |
### conring_size |
| 426 |
> `= <size>` |
| 427 |
|
| 428 |
> Default: `conring_size=16k` |
| 429 |
|
| 430 |
Specify the size of the console ring buffer. |
| 431 |
|
| 432 |
### console |
| 433 |
> `= List of [ vga | com1[H,L] | com2[H,L] | pv | dbgp | ehci | xhci | none ]` |
| 434 |
|
| 435 |
> Default: `console=com1,vga` |
| 436 |
|
| 437 |
Specify which console(s) Xen should use. |
| 438 |
|
| 439 |
`vga` indicates that Xen should try and use the vga graphics adapter. |
| 440 |
|
| 441 |
`com1` and `com2` indicates that Xen should use serial ports 1 and 2 |
| 442 |
respectively. Optionally, these arguments may be followed by an `H` or |
| 443 |
`L`. `H` indicates that transmitted characters will have their MSB |
| 444 |
set, while received characters must have their MSB set. `L` indicates |
| 445 |
the converse; transmitted and received characters will have their MSB |
| 446 |
cleared. This allows a single port to be shared by two subsystems |
| 447 |
(e.g. console and debugger). |
| 448 |
|
| 449 |
`pv` indicates that Xen should use Xen's PV console. This option is |
| 450 |
only available when used together with `pv-in-pvh`. |
| 451 |
|
| 452 |
`dbgp` or `ehci` indicates that Xen should use a USB2 debug port. |
| 453 |
|
| 454 |
`xhci` indicates that Xen should use a USB3 debug port. |
| 455 |
|
| 456 |
`none` indicates that Xen should not use a console. This option only |
| 457 |
makes sense on its own. |
| 458 |
|
| 459 |
### console_timestamps |
| 460 |
> `= none | date | datems | boot | raw` |
| 461 |
|
| 462 |
> Default: `none` |
| 463 |
|
| 464 |
> Can be modified at runtime |
| 465 |
|
| 466 |
Specify which timestamp format Xen should use for each console line. |
| 467 |
|
| 468 |
* `none`: No timestamps |
| 469 |
* `date`: Date and time information |
| 470 |
* `[YYYY-MM-DD HH:MM:SS]` |
| 471 |
* `datems`: Date and time, with milliseconds |
| 472 |
* `[YYYY-MM-DD HH:MM:SS.mmm]` |
| 473 |
* `boot`: Seconds and microseconds since boot |
| 474 |
* `[SSSSSS.uuuuuu]` |
| 475 |
+ `raw`: Raw platform ticks, architecture and implementation dependent |
| 476 |
* `[XXXXXXXXXXXXXXXX]` |
| 477 |
|
| 478 |
For compatibility with the older boolean parameter, specifying |
| 479 |
`console_timestamps` alone will enable the `date` option. |
| 480 |
|
| 481 |
### console_to_ring |
| 482 |
> `= <boolean>` |
| 483 |
|
| 484 |
> Default: `false` |
| 485 |
|
| 486 |
Flag to indicate whether all guest console output should be copied |
| 487 |
into the console ring buffer. |
| 488 |
|
| 489 |
### conswitch |
| 490 |
> `= <switch char>[x]` |
| 491 |
|
| 492 |
> Default: `conswitch=a` |
| 493 |
|
| 494 |
> Can be modified at runtime |
| 495 |
|
| 496 |
Specify which character should be used to switch serial input between |
| 497 |
Xen and dom0. The required sequence is CTRL-<switch char> three |
| 498 |
times. |
| 499 |
|
| 500 |
The optional trailing `x` indicates that Xen should not automatically |
| 501 |
switch the console input to dom0 during boot. Any other value, |
| 502 |
including omission, causes Xen to automatically switch to the dom0 |
| 503 |
console during dom0 boot. Use `conswitch=ax` to keep the default switch |
| 504 |
character, but for xen to keep the console. |
| 505 |
|
| 506 |
### core_parking |
| 507 |
> `= power | performance` |
| 508 |
|
| 509 |
> Default: `power` |
| 510 |
|
| 511 |
### cpu_type (x86) |
| 512 |
> `= arch_perfmon` |
| 513 |
|
| 514 |
If set, force use of the performance counters for oprofile, rather than detecting |
| 515 |
available support. |
| 516 |
|
| 517 |
### cpufreq |
| 518 |
> `= none | {{ <boolean> | xen } { [:[powersave|performance|ondemand|userspace][,[<maxfreq>]][,[<minfreq>]]] } [,verbose]} | dom0-kernel | hwp[:[<hdc>][,verbose]]` |
| 519 |
|
| 520 |
> Default: `xen` |
| 521 |
|
| 522 |
Indicate where the responsibility for driving power states lies. Note that the |
| 523 |
choice of `dom0-kernel` is deprecated and not supported by all Dom0 kernels. |
| 524 |
|
| 525 |
* Default governor policy is ondemand. |
| 526 |
* `<maxfreq>` and `<minfreq>` are integers which represent max and min processor frequencies |
| 527 |
respectively. |
| 528 |
* `verbose` option can be included as a string or also as `verbose=<integer>` |
| 529 |
for `xen`. It is a boolean for `hwp`. |
| 530 |
* `hwp` selects Hardware-Controlled Performance States (HWP) on supported Intel |
| 531 |
hardware. HWP is a Skylake+ feature which provides better CPU power |
| 532 |
management. The default is disabled. If `hwp` is selected, but hardware |
| 533 |
support is not available, Xen will fallback to cpufreq=xen. |
| 534 |
* `<hdc>` is a boolean to enable Hardware Duty Cycling (HDC). HDC enables the |
| 535 |
processor to autonomously force physical package components into idle state. |
| 536 |
The default is enabled, but the option only applies when `hwp` is enabled. |
| 537 |
|
| 538 |
There is also support for `;`-separated fallback options: |
| 539 |
`cpufreq=hwp;xen,verbose`. This first tries `hwp` and falls back to `xen` if |
| 540 |
unavailable. Note: The `verbose` suboption is handled globally. Setting it |
| 541 |
for either the primary or fallback option applies to both irrespective of where |
| 542 |
it is specified. |
| 543 |
|
| 544 |
Note: grub2 requires to escape or quote ';', so `"cpufreq=hwp;xen"` should be |
| 545 |
specified within double quotes inside grub.cfg. Refer to the grub2 |
| 546 |
documentation for more information. |
| 547 |
|
| 548 |
### cpuid (x86) |
| 549 |
> `= List of comma separated booleans` |
| 550 |
|
| 551 |
This option allows for fine tuning of the facilities Xen will use, after |
| 552 |
accounting for hardware capabilities as enumerated via CPUID. |
| 553 |
|
| 554 |
Unless otherwise noted, options only have any effect in their negative form, |
| 555 |
to hide the named feature(s). Ignoring a feature using this mechanism will |
| 556 |
cause Xen not to use the feature, nor offer them as usable to guests. |
| 557 |
|
| 558 |
Currently accepted: |
| 559 |
|
| 560 |
The Speculation Control hardware features `srbds-ctrl`, `md-clear`, `ibrsb`, |
| 561 |
`stibp`, `ibpb`, `l1d-flush` and `ssbd` are used by default if available and |
| 562 |
applicable. They can all be ignored. |
| 563 |
|
| 564 |
`rdrand` and `rdseed` have multiple interactions. |
| 565 |
|
| 566 |
* For Special Register Buffer Data Sampling (SRBDS, XSA-320, CVE-2020-0543), |
| 567 |
RDRAND and RDSEED can be ignored. |
| 568 |
|
| 569 |
Due to the absence of microcode to address SRBDS on IvyBridge client |
| 570 |
hardware, the RDRAND feature is hidden by default for guests, unless |
| 571 |
`rdrand` is used in its positive form. Irrespective of the setting here, |
| 572 |
VMs can use RDRAND if explicitly enabled in guest config file, and VMs |
| 573 |
already using RDRAND can migrate in. |
| 574 |
|
| 575 |
* The RDRAND feature is disabled by default on AMD Fam15/16 systems, due to |
| 576 |
possible malfunctions after ACPI S3 suspend/resume. `rdrand` may be used |
| 577 |
in its positive form to override Xen's default behaviour on these systems, |
| 578 |
and make the feature fully usable. |
| 579 |
|
| 580 |
### cpuid_mask_cpu |
| 581 |
> `= fam_0f_rev_[cdefg] | fam_10_rev_[bc] | fam_11_rev_b` |
| 582 |
|
| 583 |
> Applicability: AMD |
| 584 |
|
| 585 |
If none of the other **cpuid_mask_\*** options are given, Xen has a set of |
| 586 |
pre-configured masks to make the current processor appear to be |
| 587 |
family/revision specified. |
| 588 |
|
| 589 |
See below for general information on masking. |
| 590 |
|
| 591 |
**Warning: This option is not fully effective on Family 15h processors or |
| 592 |
later.** |
| 593 |
|
| 594 |
### cpuid_mask_ecx |
| 595 |
### cpuid_mask_edx |
| 596 |
### cpuid_mask_ext_ecx |
| 597 |
### cpuid_mask_ext_edx |
| 598 |
### cpuid_mask_l7s0_eax |
| 599 |
### cpuid_mask_l7s0_ebx |
| 600 |
### cpuid_mask_thermal_ecx |
| 601 |
### cpuid_mask_xsave_eax |
| 602 |
> `= <integer>` |
| 603 |
|
| 604 |
> Applicability: x86. Default: `~0` (all bits set) |
| 605 |
|
| 606 |
The availability of these options are model specific. Some processors don't |
| 607 |
support any of them, and no processor supports all of them. Xen will ignore |
| 608 |
options on processors which are lacking support. |
| 609 |
|
| 610 |
These options can be used to alter the features visible via the `CPUID` |
| 611 |
instruction. Settings applied here take effect globally, including for Xen |
| 612 |
and all guests. |
| 613 |
|
| 614 |
Note: Since Xen 4.7, it is no longer necessary to mask a host to create |
| 615 |
migration safety in heterogeneous scenarios. All necessary CPUID settings |
| 616 |
should be provided in the VM configuration file. Furthermore, it is |
| 617 |
recommended not to use this option, as doing so causes an unnecessary |
| 618 |
reduction of features at Xen's disposal to manage guests. |
| 619 |
|
| 620 |
### cpuidle (x86) |
| 621 |
> `= <boolean>` |
| 622 |
|
| 623 |
### cpuinfo (x86) |
| 624 |
> `= <boolean>` |
| 625 |
|
| 626 |
### crash-debug-debugkey |
| 627 |
### crash-debug-hwdom |
| 628 |
### crash-debug-kexeccmd |
| 629 |
### crash-debug-panic |
| 630 |
### crash-debug-watchdog |
| 631 |
> `= <string>` |
| 632 |
|
| 633 |
> Can be modified at runtime |
| 634 |
|
| 635 |
Specify debug-key actions in cases of crashes. Each of the parameters applies |
| 636 |
to a different crash reason. The `<string>` is a sequence of debug key |
| 637 |
characters, with `+` having the special meaning of a 10 millisecond pause. |
| 638 |
|
| 639 |
`crash-debug-debugkey` will be used for crashes induced by the `C` debug |
| 640 |
key (i.e. manually induced crash). |
| 641 |
|
| 642 |
`crash-debug-hwdom` denotes a crash of dom0. |
| 643 |
|
| 644 |
`crash-debug-kexeccmd` is an explicit request of dom0 to continue with the |
| 645 |
kdump kernel via kexec. Only available on hypervisors built with CONFIG_KEXEC. |
| 646 |
|
| 647 |
`crash-debug-panic` is a crash of the hypervisor. |
| 648 |
|
| 649 |
`crash-debug-watchdog` is a crash due to the watchdog timer expiring. |
| 650 |
|
| 651 |
It should be noted that dumping diagnosis data to the console can fail in |
| 652 |
multiple ways (missing data, hanging system, ...) depending on the reason |
| 653 |
of the crash, which might have left the hypervisor in a bad state. In case |
| 654 |
a debug-key action leads to another crash recursion will be avoided, so no |
| 655 |
additional debug-key actions will be performed in this case. A crash in the |
| 656 |
early boot phase will not result in any debug-key action, as the system |
| 657 |
might not yet be in a state where the handlers can work. |
| 658 |
|
| 659 |
So e.g. `crash-debug-watchdog=0+0r` would dump dom0 state twice with 10 |
| 660 |
milliseconds between the two state dumps, followed by the run queues of the |
| 661 |
hypervisor, if the system crashes due to a watchdog timeout. |
| 662 |
|
| 663 |
Depending on the reason of the system crash it might happen that triggering |
| 664 |
some debug key action will result in a hang instead of dumping data and then |
| 665 |
doing a reboot or crash dump. |
| 666 |
|
| 667 |
### crashinfo_maxaddr |
| 668 |
> `= <size>` |
| 669 |
|
| 670 |
> Default: `4G` |
| 671 |
|
| 672 |
Specify the maximum address to allocate certain structures, if used in |
| 673 |
combination with the **low_crashinfo** command line option. |
| 674 |
|
| 675 |
### crashkernel |
| 676 |
> `= <ramsize-range>:<size>[,...][{@,<}<offset>]` |
| 677 |
> `= <size>[{@,<}<offset>]` |
| 678 |
> `= <size>,below=offset` |
| 679 |
|
| 680 |
Specify sizes and optionally placement of the crash kernel reservation |
| 681 |
area. The `<ramsize-range>:<size>` pairs indicate how much memory to |
| 682 |
set aside for a crash kernel (`<size>`) for a given range of installed |
| 683 |
RAM (`<ramsize-range>`). Each `<ramsize-range>` is of the form |
| 684 |
`<start>-[<end>]`. |
| 685 |
|
| 686 |
A trailing `@<offset>` specifies the exact address this area should be |
| 687 |
placed at, whereas `<` in place of `@` just specifies an upper bound of |
| 688 |
the address range the area should fall into. |
| 689 |
|
| 690 |
< and below are synonyomous, the latter being useful for grub2 systems |
| 691 |
which would otherwise require escaping of the < option |
| 692 |
|
| 693 |
|
| 694 |
### credit2_balance_over |
| 695 |
> `= <integer>` |
| 696 |
|
| 697 |
### credit2_balance_under |
| 698 |
> `= <integer>` |
| 699 |
|
| 700 |
### credit2_cap_period_ms |
| 701 |
> `= <integer>` |
| 702 |
|
| 703 |
> Default: `10` |
| 704 |
|
| 705 |
Domains subject to a cap receive a replenishment of their runtime budget |
| 706 |
once every cap period interval. Default is 10 ms. The amount of budget |
| 707 |
they receive depends on their cap. For instance, a domain with a 50% cap |
| 708 |
will receive 50% of 10 ms, so 5 ms. |
| 709 |
|
| 710 |
### credit2_load_precision_shift |
| 711 |
> `= <integer>` |
| 712 |
|
| 713 |
> Default: `18` |
| 714 |
|
| 715 |
Specify the number of bits to use for the fractional part of the |
| 716 |
values involved in Credit2 load tracking and load balancing math. |
| 717 |
|
| 718 |
### credit2_load_window_shift |
| 719 |
> `= <integer>` |
| 720 |
|
| 721 |
> Default: `30` |
| 722 |
|
| 723 |
Specify the number of bits to use to represent the length of the |
| 724 |
window (in nanoseconds) we use for load tracking inside Credit2. |
| 725 |
This means that, with the default value (30), we use |
| 726 |
2^30 nsec ~= 1 sec long window. |
| 727 |
|
| 728 |
Load tracking is done by means of a variation of exponentially |
| 729 |
weighted moving average (EWMA). The window length defined here |
| 730 |
is what tells for how long we give value to previous history |
| 731 |
of the load itself. In fact, after a full window has passed, |
| 732 |
what happens is that we discard all previous history entirely. |
| 733 |
|
| 734 |
A short window will make the load balancer quick at reacting |
| 735 |
to load changes, but also short-sighted about previous history |
| 736 |
(and hence, e.g., long term load trends). A long window will |
| 737 |
make the load balancer thoughtful of previous history (and |
| 738 |
hence capable of capturing, e.g., long term load trends), but |
| 739 |
also slow in responding to load changes. |
| 740 |
|
| 741 |
The default value of `1 sec` is rather long. |
| 742 |
|
| 743 |
### credit2_runqueue |
| 744 |
> `= cpu | core | socket | node | all` |
| 745 |
|
| 746 |
> Default: `socket` |
| 747 |
|
| 748 |
Specify how host CPUs are arranged in runqueues. Runqueues are kept |
| 749 |
balanced with respect to the load generated by the vCPUs running on |
| 750 |
them. Smaller runqueues (as in with `core`) means more accurate load |
| 751 |
balancing (for instance, it will deal better with hyperthreading), |
| 752 |
but also more overhead. |
| 753 |
|
| 754 |
Available alternatives, with their meaning, are: |
| 755 |
* `cpu`: one runqueue per each logical pCPUs of the host; |
| 756 |
* `core`: one runqueue per each physical core of the host; |
| 757 |
* `socket`: one runqueue per each physical socket (which often, |
| 758 |
but not always, matches a NUMA node) of the host; |
| 759 |
* `node`: one runqueue per each NUMA node of the host; |
| 760 |
* `all`: just one runqueue shared by all the logical pCPUs of |
| 761 |
the host |
| 762 |
|
| 763 |
Regardless of the above choice, Xen attempts to respect |
| 764 |
`sched_credit2_max_cpus_runqueue` limit, which may mean more than one runqueue |
| 765 |
for the `all` value. If that isn't intended, raise |
| 766 |
the `sched_credit2_max_cpus_runqueue` value. |
| 767 |
|
| 768 |
### dbgp |
| 769 |
> `= ehci[ <integer> | @pci<bus>:<slot>.<func> ]` |
| 770 |
> `= xhci[ <integer> | @pci<bus>:<slot>.<func> ][,share=<bool>|hwdom]` |
| 771 |
|
| 772 |
Specify the USB controller to use, either by instance number (when going |
| 773 |
over the PCI busses sequentially) or by PCI device (must be on segment 0). |
| 774 |
|
| 775 |
Use `ehci` for EHCI debug port, use `xhci` for XHCI debug capability. |
| 776 |
XHCI driver will wait indefinitely for the debug host to connect - make sure |
| 777 |
the cable is connected. |
| 778 |
The `share` option for xhci controls who else can use the controller: |
| 779 |
* `no`: use the controller exclusively for console, even hardware domain |
| 780 |
(dom0) cannot use it |
| 781 |
* `hwdom`: hardware domain may use the controller too, ports not used for debug |
| 782 |
console will be available for normal devices; this is the default |
| 783 |
* `yes`: the controller can be assigned to any domain; it is not safe to assign |
| 784 |
the controller to untrusted domain |
| 785 |
|
| 786 |
Choosing `share=hwdom` (the default) or `share=yes` allows a domain to reset the |
| 787 |
controller, which may cause small portion of the console output to be lost. |
| 788 |
|
| 789 |
The `share=yes` configuration is not security supported. |
| 790 |
|
| 791 |
### debug_stack_lines |
| 792 |
> `= <integer>` |
| 793 |
|
| 794 |
> Default: `20` |
| 795 |
|
| 796 |
Limits the number lines printed in Xen stack traces. |
| 797 |
|
| 798 |
### debugtrace |
| 799 |
> `= [cpu:]<size>` |
| 800 |
|
| 801 |
> Default: `128` |
| 802 |
|
| 803 |
Specify the size of the console debug trace buffer. By specifying `cpu:` |
| 804 |
additionally a trace buffer of the specified size is allocated per cpu. |
| 805 |
The debug trace feature is only enabled in debugging builds of Xen. |
| 806 |
|
| 807 |
### dit (x86/Intel) |
| 808 |
> `= <boolean>` |
| 809 |
|
| 810 |
> Default: `CONFIG_DIT_DEFAULT` |
| 811 |
|
| 812 |
Specify whether Xen and guests should operate in Data Independent Timing |
| 813 |
mode (Intel calls this DOITM, Data Operand Independent Timing Mode). Note |
| 814 |
that enabling this option cannot guarantee anything beyond what underlying |
| 815 |
hardware guarantees (with, where available and known to Xen, respective |
| 816 |
tweaks applied). |
| 817 |
|
| 818 |
### dma_bits |
| 819 |
> `= <integer>` |
| 820 |
|
| 821 |
Specify the bit width of the DMA heap. |
| 822 |
|
| 823 |
### dom0 |
| 824 |
= List of [ pv | pvh, shadow=<bool>, verbose=<bool>, |
| 825 |
cpuid-faulting=<bool>, msr-relaxed=<bool>, |
| 826 |
pf-fixup=<bool> ] (x86) |
| 827 |
|
| 828 |
= List of [ sve=<integer> ] (Arm64) |
| 829 |
|
| 830 |
Controls for how dom0 is constructed on x86 systems. |
| 831 |
|
| 832 |
* The `pv` and `pvh` options select the virtualisation mode of dom0. |
| 833 |
|
| 834 |
The `pv` option is only available when `CONFIG_PV` is compiled in. The |
| 835 |
`pvh` option is only available when `CONFIG_HVM` is compiled in. When |
| 836 |
both options are compiled in, the default is PV. |
| 837 |
|
| 838 |
In addition, the following requirements must be met: |
| 839 |
|
| 840 |
* The dom0 kernel selected by the boot loader must be capable of the |
| 841 |
selected mode. |
| 842 |
* For a PVH dom0, the hardware must have VT-x/SVM extensions available. |
| 843 |
|
| 844 |
* The `shadow` boolean allows dom0 to be explicitly constructed using shadow |
| 845 |
paging. This option is unavailable when `CONFIG_SHADOW_PAGING` is |
| 846 |
disabled. |
| 847 |
|
| 848 |
For PVH, dom0 defaults to using HAP on capable hardware, and falls back to |
| 849 |
shadow paging otherwise. A PVH dom0 cannot be used if Xen is compiled |
| 850 |
without shadow paging support, and the hardware lacks HAP support. |
| 851 |
|
| 852 |
For PV, the use of dom0 shadow mode is only for development purposes. PV |
| 853 |
guests do no require any paging support by default. |
| 854 |
|
| 855 |
* The `verbose` boolean is intended for diagnostics, and prints out extra |
| 856 |
information during the dom0 build. It defaults to the compile time choice |
| 857 |
of `CONFIG_VERBOSE_DEBUG`. |
| 858 |
|
| 859 |
* The `cpuid-faulting` boolean is an interim option, is only applicable to |
| 860 |
PV dom0, and defaults to true. |
| 861 |
|
| 862 |
Before Xen 4.13, the domain builder logic for guest construction depended |
| 863 |
on seeing host CPUID values to function correctly. As a result, CPUID |
| 864 |
Faulting was never activated for PV dom0's, even on capable hardware. |
| 865 |
|
| 866 |
In Xen 4.13, the domain builder logic has been fixed, and no longer has |
| 867 |
this dependency. As a consequence, CPUID Faulting is activated by default |
| 868 |
even for PV dom0's. |
| 869 |
|
| 870 |
However, as PV dom0's have always seen host CPUID data in the past, there |
| 871 |
is a chance that further dependencies exist. This boolean can be used to |
| 872 |
restore the pre-4.13 behaviour. If specifying `no-cpuid-faulting` fixes |
| 873 |
an issue in dom0, please report a bug. |
| 874 |
|
| 875 |
* The `msr-relaxed` boolean is an interim option, and defaults to false. |
| 876 |
|
| 877 |
In Xen 4.15, the default behaviour for unhandled MSRs has been changed, |
| 878 |
to avoid leaking host data into guests, and to avoid breaking guest |
| 879 |
logic which uses \#GP probing to identify the availability of MSRs. |
| 880 |
|
| 881 |
However, this new stricter behaviour has the possibility to break |
| 882 |
guests, and a more 4.14-like behaviour can be selected by specifying |
| 883 |
`dom0=msr-relaxed`. |
| 884 |
|
| 885 |
If using this option is necessary to fix an issue, please report a bug. |
| 886 |
|
| 887 |
* The `pf-fixup` boolean is only applicable when using a PVH dom0 and |
| 888 |
defaults to false. |
| 889 |
|
| 890 |
When running dom0 in PVH mode the dom0 kernel has no way to map MMIO |
| 891 |
regions into its physical memory map, such mode relies on Xen dom0 builder |
| 892 |
populating the physical memory map with all MMIO regions that dom0 should |
| 893 |
access. However Xen doesn't have a complete picture of the host memory |
| 894 |
map, due to not being able to process ACPI dynamic tables. |
| 895 |
|
| 896 |
The `pf-fixup` option allows Xen to attempt to add missing MMIO regions |
| 897 |
to the dom0 physical memory map in response to page-faults generated by |
| 898 |
dom0 trying to access unpopulated entries in the memory map. |
| 899 |
|
| 900 |
Enables features on dom0 on Arm systems. |
| 901 |
|
| 902 |
* The `sve` integer parameter enables Arm SVE usage for Dom0 and sets the |
| 903 |
maximum SVE vector length, the option is applicable only to Arm64 Dom0 |
| 904 |
kernels. |
| 905 |
A value equal to 0 disables the feature, this is the default value. |
| 906 |
Values below 0 means the feature uses the maximum SVE vector length |
| 907 |
supported by hardware, if SVE is supported. |
| 908 |
Values above 0 explicitly set the maximum SVE vector length for Dom0, |
| 909 |
allowed values are from 128 to maximum 2048, being multiple of 128. |
| 910 |
Please note that when the user explicitly specifies the value, if that value |
| 911 |
is above the hardware supported maximum SVE vector length, the domain |
| 912 |
creation will fail and the system will stop, the same will occur if the |
| 913 |
option is provided with a positive non zero value, but the platform doesn't |
| 914 |
support SVE. |
| 915 |
|
| 916 |
### dom0-cpuid |
| 917 |
= List of comma separated booleans |
| 918 |
|
| 919 |
Applicability: x86 |
| 920 |
|
| 921 |
This option allows for fine tuning of the facilities dom0 will use, after |
| 922 |
accounting for hardware capabilities and Xen settings as enumerated via CPUID. |
| 923 |
|
| 924 |
Options are accepted in positive and negative form, to enable or disable |
| 925 |
specific features. All selections via this mechanism are subject to normal |
| 926 |
CPU Policy safety and dependency logic. |
| 927 |
|
| 928 |
This option is intended for developers to opt dom0 into non-default features, |
| 929 |
and is not intended for use in production circumstances. If using this option |
| 930 |
is necessary to fix an issue, please report a bug. |
| 931 |
|
| 932 |
### dom0-iommu |
| 933 |
= List of [ passthrough=<bool>, strict=<bool>, map-inclusive=<bool>, |
| 934 |
map-reserved=<bool>, none ] |
| 935 |
|
| 936 |
Controls for the dom0 IOMMU setup. |
| 937 |
|
| 938 |
* The `passthrough` boolean controls whether IOMMU translation functionality |
| 939 |
is disabled for devices in dom0 (`passthrough=1`) or whether the IOMMU is |
| 940 |
used to ensure that dom0 can only DMA to its permitted areas of RAM |
| 941 |
(`passthrough=0`). |
| 942 |
|
| 943 |
This option is only applicable to x86 PV dom0's, and defaults to false. |
| 944 |
|
| 945 |
Some older Intel VT-d hardware isn't capable of disabling translation |
| 946 |
functionality on a per-device basis, and will cause this option to be |
| 947 |
ignored and assumed to be 0. Similar behaviour on such systems is only |
| 948 |
available by fully disabling all IOMMUs. |
| 949 |
|
| 950 |
This option is hardwired to false for x86 PVH dom0's (where a non-identity |
| 951 |
transform is required for dom0 to function), and is ignored for ARM. |
| 952 |
|
| 953 |
* The `strict` boolean is applicable to x86 PV dom0's only and defaults to |
| 954 |
false. It controls whether dom0 can have IOMMU mappings for all domain |
| 955 |
RAM in the system, or only for its allocated RAM (and grant mappings etc.) |
| 956 |
|
| 957 |
This option is hardwired to true for x86 PVH dom0's (as RAM belonging to |
| 958 |
other domains in the system don't live in a compatible address space), and |
| 959 |
is ignored for ARM. |
| 960 |
|
| 961 |
* The `map-inclusive` boolean is applicable to x86 PV dom0's, and sets up |
| 962 |
identity IOMMU mappings for all non-RAM regions below 4GB except for |
| 963 |
unusable ranges, and ranges belonging to Xen. |
| 964 |
|
| 965 |
Typically, some devices in a system use bits of RAM for communication, and |
| 966 |
these areas should be listed as reserved in the E820 table and identified |
| 967 |
via RMRR or IVMD entries in the ACPI tables, so Xen can ensure that they |
| 968 |
are identity-mapped in the IOMMU. However, some firmware makes mistakes, |
| 969 |
and this option is a coarse-grain workaround for those errors. |
| 970 |
|
| 971 |
Where possible, finer grain corrections should be made with the `rmrr=`, |
| 972 |
`ivmd=`, `ivrs_hpet[]=`, or `ivrs_ioapic[]=` command line options. |
| 973 |
|
| 974 |
This option is disabled by default, and deprecated and intended for |
| 975 |
removal in future versions of Xen. If specifying `map-inclusive` is the |
| 976 |
only way to make your system boot, please report a bug. |
| 977 |
|
| 978 |
* The `map-reserved` functionality is very similar to `map-inclusive`. |
| 979 |
|
| 980 |
The differences from `map-inclusive` are that `map-reserved` is applicable |
| 981 |
to both x86 PV and PVH dom0's, is enabled by default, and represents a |
| 982 |
subset of the correction by only mapping reserved memory regions rather |
| 983 |
than all non-RAM regions. |
| 984 |
|
| 985 |
* The `none` option is intended for development purposes only, and skips |
| 986 |
certain safety checks pertaining to the correct IOMMU configuration for |
| 987 |
dom0 to boot. |
| 988 |
|
| 989 |
Incorrect use of this option may result in a malfunctioning system. |
| 990 |
|
| 991 |
### dom0_ioports_disable (x86) |
| 992 |
> `= List of <hex>-<hex>` |
| 993 |
|
| 994 |
Specify a list of IO ports to be excluded from dom0 access. |
| 995 |
|
| 996 |
### dom0-llc-colors (arm64) |
| 997 |
> `= List of [ <integer> | <integer>-<integer> ]` |
| 998 |
|
| 999 |
> Default: `All available LLC colors` |
| 1000 |
|
| 1001 |
Specify dom0 LLC color configuration. This option is available only when |
| 1002 |
`CONFIG_LLC_COLORING` is enabled. If the parameter is not set, all available |
| 1003 |
colors are used. |
| 1004 |
|
| 1005 |
### dom0_max_vcpus |
| 1006 |
|
| 1007 |
Either: |
| 1008 |
|
| 1009 |
> `= <integer>`. |
| 1010 |
|
| 1011 |
The number of VCPUs to give to dom0. This number of VCPUs can be more |
| 1012 |
than the number of PCPUs on the host. The default is the number of |
| 1013 |
PCPUs. |
| 1014 |
|
| 1015 |
Or: |
| 1016 |
|
| 1017 |
> `= <min>-<max>` where `<min>` and `<max>` are integers. |
| 1018 |
|
| 1019 |
Gives dom0 a number of VCPUs equal to the number of PCPUs, but always |
| 1020 |
at least `<min>` and no more than `<max>`. Using `<min>` may give |
| 1021 |
more VCPUs than PCPUs. `<min>` or `<max>` may be omitted and the |
| 1022 |
defaults of 1 and unlimited respectively are used instead. |
| 1023 |
|
| 1024 |
For example, with `dom0_max_vcpus=4-8`: |
| 1025 |
|
| 1026 |
> Number of |
| 1027 |
> PCPUs | Dom0 VCPUs |
| 1028 |
> 2 | 4 |
| 1029 |
> 4 | 4 |
| 1030 |
> 6 | 6 |
| 1031 |
> 8 | 8 |
| 1032 |
> 10 | 8 |
| 1033 |
|
| 1034 |
### dom0_mem (ARM) |
| 1035 |
> `= <size>` |
| 1036 |
|
| 1037 |
Set the amount of memory for the initial domain (dom0). It must be |
| 1038 |
greater than zero. This parameter is required. |
| 1039 |
|
| 1040 |
### dom0_mem (x86) |
| 1041 |
> `= List of ( min:<sz> | max:<sz> | <sz> )` |
| 1042 |
|
| 1043 |
Set the amount of memory for the initial domain (dom0). If a size is |
| 1044 |
positive, it represents an absolute value. If a size is negative, it |
| 1045 |
is subtracted from the total available memory. |
| 1046 |
|
| 1047 |
* `<sz>` specifies the exact amount of memory. |
| 1048 |
* `min:<sz>` specifies the minimum amount of memory. |
| 1049 |
* `max:<sz>` specifies the maximum amount of memory. |
| 1050 |
|
| 1051 |
If `<sz>` is not specified, the default is all the available memory |
| 1052 |
minus some reserve. The reserve is 1/16 of the available memory or |
| 1053 |
128 MB (whichever is smaller). |
| 1054 |
|
| 1055 |
The amount of memory will be at least the minimum but never more than |
| 1056 |
the maximum (i.e., `max` overrides the `min` option). If there isn't |
| 1057 |
enough memory then as much as possible is allocated. |
| 1058 |
|
| 1059 |
`max:<sz>` also sets the maximum reservation (the maximum amount of |
| 1060 |
memory dom0 can balloon up to). If this is omitted then the maximum |
| 1061 |
reservation is unlimited. |
| 1062 |
|
| 1063 |
For example, to set dom0's initial memory allocation to 512MB but |
| 1064 |
allow it to balloon up as far as 1GB use `dom0_mem=512M,max:1G` |
| 1065 |
|
| 1066 |
> `<sz>` is: `<size> | [<size>+]<frac>%` |
| 1067 |
> `<frac>` is an integer < 100 |
| 1068 |
|
| 1069 |
* `<frac>` specifies a fraction of host memory size in percent. |
| 1070 |
|
| 1071 |
So `<sz>` being `1G+25%` on a 256 GB host would result in 65 GB. |
| 1072 |
|
| 1073 |
If you use this option then it is highly recommended that you disable |
| 1074 |
any dom0 autoballooning feature present in your toolstack. See the |
| 1075 |
_xl.conf(5)_ man page or [Xen Best |
| 1076 |
Practices](https://wiki.xen.org/wiki/Xen_Best_Practices#Xen_dom0_dedicated_memory_and_preventing_dom0_memory_ballooning). |
| 1077 |
|
| 1078 |
This option doesn't have effect if pv-shim mode is enabled. |
| 1079 |
|
| 1080 |
### dom0_nodes (x86) |
| 1081 |
|
| 1082 |
> `= List of [ <integer> | relaxed | strict ]` |
| 1083 |
|
| 1084 |
> Default: `strict` |
| 1085 |
|
| 1086 |
Specify the NUMA nodes to place Dom0 on. Defaults for vCPU-s created |
| 1087 |
and memory assigned to Dom0 will be adjusted to match the node |
| 1088 |
restrictions set up here. Note that the values to be specified here are |
| 1089 |
ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU |
| 1090 |
affinities to prefer but be not limited to the specified node(s). |
| 1091 |
|
| 1092 |
### dom0_vcpus_pin |
| 1093 |
> `= <boolean>` |
| 1094 |
|
| 1095 |
> Default: `false` |
| 1096 |
|
| 1097 |
Pin dom0 vcpus to their respective pcpus |
| 1098 |
|
| 1099 |
### dtuart (ARM) |
| 1100 |
> `= path [:options]` |
| 1101 |
|
| 1102 |
> Default: `""` |
| 1103 |
|
| 1104 |
Specify the full path in the device tree for the UART. If the path doesn't |
| 1105 |
start with `/`, it is assumed to be an alias. The options are device specific. |
| 1106 |
|
| 1107 |
### e820-mtrr-clip (x86) |
| 1108 |
> `= <boolean>` |
| 1109 |
|
| 1110 |
Flag that specifies if RAM should be clipped to the highest cacheable |
| 1111 |
MTRR. |
| 1112 |
|
| 1113 |
> Default: `true` on Intel CPUs, otherwise `false` |
| 1114 |
|
| 1115 |
### e820-verbose (x86) |
| 1116 |
> `= <boolean>` |
| 1117 |
|
| 1118 |
> Default: `false` |
| 1119 |
|
| 1120 |
Flag that enables verbose output when processing e820 information and |
| 1121 |
applying clipping. |
| 1122 |
|
| 1123 |
### edd (x86) |
| 1124 |
> `= off | on | skipmbr` |
| 1125 |
|
| 1126 |
Control retrieval of Extended Disc Data (EDD) from the BIOS during |
| 1127 |
boot. |
| 1128 |
|
| 1129 |
### edid (x86) |
| 1130 |
> `= no | force` |
| 1131 |
|
| 1132 |
Either force retrieval of monitor EDID information via VESA DDC, or |
| 1133 |
disable it (edid=no). This option should not normally be required |
| 1134 |
except for debugging purposes. |
| 1135 |
|
| 1136 |
### efi |
| 1137 |
= List of [ rs=<bool>, attr=no|uc ] |
| 1138 |
|
| 1139 |
Controls for interacting with the system Extended Firmware Interface. |
| 1140 |
|
| 1141 |
* The `rs` boolean controls whether Runtime Services are used. By default, |
| 1142 |
Xen uses Runtime Services itself, and proxies certain calls on behalf of |
| 1143 |
dom0. Selecting `rs=0` prohibits all use of Runtime Services. |
| 1144 |
|
| 1145 |
* The `attr=` string exists to specify what to do with memory regions of |
| 1146 |
unknown/unrecognised cacheability. `attr=no` is the default and will |
| 1147 |
leave the memory regions unmapped, while `attr=uc` will map them as fully |
| 1148 |
uncacheable. |
| 1149 |
|
| 1150 |
### ept |
| 1151 |
> `= List of [ ad=<bool>, pml=<bool>, exec-sp=<bool> ]` |
| 1152 |
|
| 1153 |
> Applicability: Intel |
| 1154 |
|
| 1155 |
Extended Page Tables are a feature of Intel's VT-x technology, whereby |
| 1156 |
hardware manages the virtualisation of HVM guest pagetables. EPT was |
| 1157 |
introduced with the Nehalem architecture. |
| 1158 |
|
| 1159 |
* The `ad` boolean controls hardware tracking of Access and Dirty bits in the |
| 1160 |
EPT pagetables, and was first introduced in Broadwell Server. |
| 1161 |
|
| 1162 |
By default, Xen will use A/D tracking when available in hardware, except |
| 1163 |
on Avoton processors affected by erratum AVR41. Explicitly choosing |
| 1164 |
`ad=0` will disable the use of A/D tracking on capable hardware, whereas |
| 1165 |
choosing `ad=1` will cause tracking to be used even on AVR41-affected |
| 1166 |
hardware. |
| 1167 |
|
| 1168 |
* The `pml` boolean controls the use of Page Modification Logging, which is |
| 1169 |
also introduced in Broadwell Server. |
| 1170 |
|
| 1171 |
PML is a feature whereby the processor generates a list of pages which |
| 1172 |
have been dirtied. This is necessary information for operations such as |
| 1173 |
live migration, and having the processor maintain the list of dirtied |
| 1174 |
pages is more efficient than traditional software implementations where |
| 1175 |
all guest writes trap into Xen so the dirty bitmap can be maintained. |
| 1176 |
|
| 1177 |
By default, Xen will use PML when it is available in hardware. PML |
| 1178 |
functionally depends on A/D tracking, so choosing `ad=0` will implicitly |
| 1179 |
disable PML. `pml=0` can be used to prevent the use of PML on otherwise |
| 1180 |
capable hardware. |
| 1181 |
|
| 1182 |
* The `exec-sp` boolean controls whether EPT superpages with execute |
| 1183 |
permissions are permitted. In general this is good for performance. |
| 1184 |
|
| 1185 |
However, on processors vulnerable CVE-2018-12207, HVM guest kernels can |
| 1186 |
use executable superpages to crash the host. By default, executable |
| 1187 |
superpages are disabled on affected hardware. |
| 1188 |
|
| 1189 |
If HVM guest kernels are trusted not to mount a DoS against the system, |
| 1190 |
this option can enabled to regain performance. |
| 1191 |
|
| 1192 |
This boolean may be modified at runtime using `xl set-parameters |
| 1193 |
ept=[no-]exec-sp` to switch between fast and secure. |
| 1194 |
|
| 1195 |
* When switching from secure to fast, preexisting HVM domains will run |
| 1196 |
at their current performance until they are rebooted; new domains will |
| 1197 |
run without any overhead. |
| 1198 |
|
| 1199 |
* When switching from fast to secure, all HVM domains will immediately |
| 1200 |
suffer a performance penalty. |
| 1201 |
|
| 1202 |
**Warning: No guarantee is made that this runtime option will be retained |
| 1203 |
indefinitely, or that it will retain this exact behaviour. It is |
| 1204 |
intended as an emergency option for people who first chose fast, then |
| 1205 |
change their minds to secure, and wish not to reboot.** |
| 1206 |
|
| 1207 |
### extra_guest_irqs (x86) |
| 1208 |
> `= [<domU number>][,<dom0 number>]` |
| 1209 |
|
| 1210 |
> Default: `32,<variable>` |
| 1211 |
|
| 1212 |
Change the number of PIRQs available for guests. The optional first number is |
| 1213 |
common for all domUs, while the optional second number (preceded by a comma) |
| 1214 |
is for dom0. Changing the setting for domU has no impact on dom0 and vice |
| 1215 |
versa. For example to change dom0 without changing domU, use |
| 1216 |
`extra_guest_irqs=,512`. The default value for Dom0 and an eventual separate |
| 1217 |
hardware domain is architecture dependent. The upper limit for both values on |
| 1218 |
x86 is such that the resulting total number of IRQs can't be higher than 32768. |
| 1219 |
Note that specifying zero as domU value means zero, while for dom0 it means |
| 1220 |
to use the default. Note further that the Dom0 setting has no useful meaning |
| 1221 |
for the PVH case; use of the option may have an adverse effect there, though. |
| 1222 |
|
| 1223 |
### ext_regions (Arm) |
| 1224 |
> `= <boolean>` |
| 1225 |
|
| 1226 |
> Default : `true` |
| 1227 |
|
| 1228 |
Flag to enable or disable support for extended regions for Dom0 and |
| 1229 |
Dom0less DomUs. |
| 1230 |
|
| 1231 |
Extended regions are ranges of unused address space exposed to the guest |
| 1232 |
as "safe to use" for special memory mappings. Disable if your board |
| 1233 |
device tree is incomplete. |
| 1234 |
|
| 1235 |
### flask |
| 1236 |
> `= permissive | enforcing | late | disabled` |
| 1237 |
|
| 1238 |
> Default: `enforcing` |
| 1239 |
|
| 1240 |
Specify how the FLASK security server should be configured. This option is only |
| 1241 |
available if the hypervisor was compiled with FLASK support. This can be |
| 1242 |
enabled by running either: |
| 1243 |
- make -C xen config and enabling XSM and FLASK. |
| 1244 |
- make -C xen menuconfig and enabling 'FLux Advanced Security Kernel support' and 'Xen Security Modules support' |
| 1245 |
|
| 1246 |
* `permissive`: This is intended for development and is not suitable for use |
| 1247 |
with untrusted guests. If a policy is provided by the bootloader, it will be |
| 1248 |
loaded; errors will be reported to the ring buffer but will not prevent |
| 1249 |
booting. The policy can be changed to enforcing mode using "xl setenforce". |
| 1250 |
* `enforcing`: This will cause the security server to enter enforcing mode prior |
| 1251 |
to the creation of domain 0. If an valid policy is not provided by the |
| 1252 |
bootloader and no built-in policy is present, the hypervisor will not continue |
| 1253 |
booting. |
| 1254 |
* `late`: This disables loading of the built-in security policy or the policy |
| 1255 |
provided by the bootloader. FLASK will be enabled but will not enforce access |
| 1256 |
controls until a policy is loaded by a domain using "xl loadpolicy". Once a |
| 1257 |
policy is loaded, FLASK will run in enforcing mode unless "xl setenforce" has |
| 1258 |
changed that setting. |
| 1259 |
* `disabled`: This causes the XSM framework to revert to the dummy module. The |
| 1260 |
dummy module provides the same security policy as is used when compiling the |
| 1261 |
hypervisor without support for XSM. The xsm_op hypercall can also be used to |
| 1262 |
switch to this mode after boot, but there is no way to re-enable FLASK once |
| 1263 |
the dummy module is loaded. |
| 1264 |
|
| 1265 |
### font |
| 1266 |
> `= <height>` where height is `8x8 | 8x14 | 8x16` |
| 1267 |
|
| 1268 |
Specify the font size when using the VESA console driver. |
| 1269 |
|
| 1270 |
### force-ept (Intel) |
| 1271 |
> `= <boolean>` |
| 1272 |
|
| 1273 |
> Default: `false` |
| 1274 |
|
| 1275 |
Allow EPT to be enabled when VMX feature `VM_ENTRY_LOAD_GUEST_PAT` is not |
| 1276 |
present. |
| 1277 |
|
| 1278 |
*Warning:* |
| 1279 |
Due to CVE-2013-2212, VMX feature `VM_ENTRY_LOAD_GUEST_PAT` is by default |
| 1280 |
required as a prerequisite for using EPT. If you are not using PCI Passthrough, |
| 1281 |
or trust the guest administrator who would be using passthrough, then the |
| 1282 |
requirement can be relaxed. This option is particularly useful for nested |
| 1283 |
virtualization, to allow the L1 hypervisor to use EPT even if the L0 hypervisor |
| 1284 |
does not provide `VM_ENTRY_LOAD_GUEST_PAT`. |
| 1285 |
|
| 1286 |
### gnttab |
| 1287 |
> `= List of [ max-ver:<integer>, transitive=<bool>, transfer=<bool> ]` |
| 1288 |
|
| 1289 |
> Default (Arm): `gnttab=max-ver:1` |
| 1290 |
> Default (x86,PV): `gnttab=max-ver:2,transitive,transfer` |
| 1291 |
> Default (x86,HVM): `gnttab=max-ver:2,transitive` |
| 1292 |
|
| 1293 |
Control various aspects of the grant table behaviour available to guests. |
| 1294 |
|
| 1295 |
* `max-ver` Select the maximum grant table version to offer to guests. Valid |
| 1296 |
version are 1 and 2. |
| 1297 |
* `transitive` Permit or disallow the use of transitive grants. Note that the |
| 1298 |
use of grant table v2 without transitive grants is an ABI breakage from the |
| 1299 |
guests point of view. |
| 1300 |
* `transfer` Permit or disallow the GNTTABOP_transfer operation of the |
| 1301 |
grant table hypercall. Note that disallowing GNTTABOP_transfer is an ABI |
| 1302 |
breakage from the guests point of view. This option is only available on |
| 1303 |
hypervisors configured to support PV guests. |
| 1304 |
|
| 1305 |
The usage of gnttab v2 is not security supported on ARM platforms. |
| 1306 |
|
| 1307 |
### gnttab_max_frames |
| 1308 |
> `= <integer>` |
| 1309 |
|
| 1310 |
> Default: `64` |
| 1311 |
|
| 1312 |
> Can be modified at runtime |
| 1313 |
|
| 1314 |
Specify the default upper bound on the number of frames which any domain may |
| 1315 |
use as part of its grant table unless a different value is specified at domain |
| 1316 |
creation. |
| 1317 |
|
| 1318 |
Note this value is the effective upper bound for dom0. |
| 1319 |
|
| 1320 |
### gnttab_max_maptrack_frames |
| 1321 |
> `= <integer>` |
| 1322 |
|
| 1323 |
> Default: `1024` |
| 1324 |
|
| 1325 |
> Can be modified at runtime |
| 1326 |
|
| 1327 |
Specify the default upper bound on the number of frames which any domain may |
| 1328 |
use as part of its maptrack array unless a different value is specified at |
| 1329 |
domain creation. |
| 1330 |
|
| 1331 |
Note this value is the effective upper bound for dom0. |
| 1332 |
|
| 1333 |
### global-pages |
| 1334 |
= <boolean> |
| 1335 |
|
| 1336 |
Applicability: x86 |
| 1337 |
Default: true unless running virtualized on AMD or Hygon hardware |
| 1338 |
|
| 1339 |
Control whether to use global pages for PV guests, and thus the need to |
| 1340 |
perform TLB flushes by writing to CR4. This is a performance trade-off. |
| 1341 |
|
| 1342 |
AMD SVM does not support selective trapping of CR4 writes, which means that a |
| 1343 |
global TLB flush (two CR4 writes) takes two VMExits, and massively outweigh |
| 1344 |
the benefit of using global pages to begin with. This case is easy for Xen to |
| 1345 |
spot, and is accounted for in the default setting. |
| 1346 |
|
| 1347 |
Other cases where this option might be a benefit is on VT-x hardware when |
| 1348 |
selective CR4 writes are not supported/enabled by the hypervisor, or in any |
| 1349 |
virtualised case using shadow paging. These are not easy for Xen to spot, so |
| 1350 |
are not accounted for in the default setting. |
| 1351 |
|
| 1352 |
### guest_loglvl |
| 1353 |
> `= <level>[/<rate-limited level>]` where level is `none | error | warning | info | debug | all` |
| 1354 |
|
| 1355 |
> Default: `guest_loglvl=none/warning` |
| 1356 |
|
| 1357 |
> Can be modified at runtime |
| 1358 |
|
| 1359 |
Set the logging level for Xen guests. Any log message with equal more |
| 1360 |
more importance will be printed. |
| 1361 |
|
| 1362 |
The optional `<rate-limited level>` option instructs which severities |
| 1363 |
should be rate limited. |
| 1364 |
|
| 1365 |
### hap (x86) |
| 1366 |
> `= <boolean>` |
| 1367 |
|
| 1368 |
> Default: `true` |
| 1369 |
|
| 1370 |
Flag to globally enable or disable support for Hardware Assisted |
| 1371 |
Paging (HAP) |
| 1372 |
|
| 1373 |
### hap_1gb (x86) |
| 1374 |
> `= <boolean>` |
| 1375 |
|
| 1376 |
> Default: `true` |
| 1377 |
|
| 1378 |
Flag to enable 1 GB host page table support for Hardware Assisted |
| 1379 |
Paging (HAP). |
| 1380 |
|
| 1381 |
### hap_2mb (x86) |
| 1382 |
> `= <boolean>` |
| 1383 |
|
| 1384 |
> Default: `true` |
| 1385 |
|
| 1386 |
Flag to enable 2 MB host page table support for Hardware Assisted |
| 1387 |
Paging (HAP). |
| 1388 |
|
| 1389 |
### hardware_dom |
| 1390 |
> `= <domid>` |
| 1391 |
|
| 1392 |
> Default: `0` |
| 1393 |
|
| 1394 |
Enable late hardware domain creation using the specified domain ID. This is |
| 1395 |
intended to be used when domain 0 is a stub domain which builds a disaggregated |
| 1396 |
system including a hardware domain with the specified domain ID. This option is |
| 1397 |
supported only when compiled with XSM on x86. |
| 1398 |
|
| 1399 |
### hest_disable |
| 1400 |
> ` = <boolean>` |
| 1401 |
|
| 1402 |
> Default: `false` |
| 1403 |
|
| 1404 |
Control Xens use of the APEI Hardware Error Source Table, should one be found. |
| 1405 |
|
| 1406 |
### highmem-start (x86) |
| 1407 |
> `= <size>` |
| 1408 |
|
| 1409 |
Specify the memory boundary past which memory will be treated as highmem (x86 |
| 1410 |
debug hypervisor only). |
| 1411 |
|
| 1412 |
### hmp-unsafe (arm) |
| 1413 |
> `= <boolean>` |
| 1414 |
|
| 1415 |
> Default : `false` |
| 1416 |
|
| 1417 |
Say yes at your own risk if you want to enable heterogenous computing |
| 1418 |
(such as big.LITTLE). This may result to an unstable and insecure |
| 1419 |
platform, unless you manually specify the cpu affinity of all domains so |
| 1420 |
that all vcpus are scheduled on the same class of pcpus (big or LITTLE |
| 1421 |
but not both). vcpu migration between big cores and LITTLE cores is not |
| 1422 |
supported. See docs/misc/arm/big.LITTLE.txt for more information. |
| 1423 |
|
| 1424 |
When the hmp-unsafe option is disabled (default), CPUs that are not |
| 1425 |
identical to the boot CPU will be parked and not used by Xen. |
| 1426 |
|
| 1427 |
### hpet |
| 1428 |
= List of [ <bool> | broadcast=<bool> | legacy-replacement=<bool> ] |
| 1429 |
|
| 1430 |
Applicability: x86 |
| 1431 |
|
| 1432 |
Controls Xen's use of the system's High Precision Event Timer. By default, |
| 1433 |
Xen will use an HPET when available and not subject to errata. Use of the |
| 1434 |
HPET can be disabled by specifying `hpet=0`. |
| 1435 |
|
| 1436 |
* The `broadcast` boolean is disabled by default, but forces Xen to keep |
| 1437 |
using the broadcast for CPUs in deep C-states even when an RTC interrupt is |
| 1438 |
enabled. This then also affects raising of the RTC interrupt. |
| 1439 |
|
| 1440 |
* The `legacy-replacement` boolean allows for control over whether Legacy |
| 1441 |
Replacement mode is enabled. |
| 1442 |
|
| 1443 |
Legacy Replacement mode is intended for hardware which does not have an |
| 1444 |
8254 PIT, and allows the HPET to be configured into a compatible mode. |
| 1445 |
Intel chipsets from Skylake/ApolloLake onwards can turn the PIT off for |
| 1446 |
power saving reasons, and there is no platform-agnostic mechanism for |
| 1447 |
discovering this. |
| 1448 |
|
| 1449 |
By default, Xen will not change hardware configuration, unless the PIT |
| 1450 |
appears to be absent, at which point Xen will try to enable Legacy |
| 1451 |
Replacement mode before falling back to pre-IO-APIC interrupt routing |
| 1452 |
options. |
| 1453 |
|
| 1454 |
This behaviour can be inhibited by specifying `legacy-replacement=0`. |
| 1455 |
Alternatively, this mode can be enabled unconditionally (if available) by |
| 1456 |
specifying `legacy-replacement=1`. |
| 1457 |
|
| 1458 |
### hpetbroadcast (x86) |
| 1459 |
> `= <boolean>` |
| 1460 |
|
| 1461 |
Deprecated alternative of `hpet=broadcast`. |
| 1462 |
|
| 1463 |
### hvm_debug (x86) |
| 1464 |
> `= <integer>` |
| 1465 |
|
| 1466 |
The specified value is a bit mask with the individual bits having the |
| 1467 |
following meaning: |
| 1468 |
|
| 1469 |
> Bit 0 - debug level 0 (unused at present) |
| 1470 |
> Bit 1 - debug level 1 (Control Register logging) |
| 1471 |
> Bit 2 - debug level 2 (VMX logging of MSR restores when context switching) |
| 1472 |
> Bit 3 - debug level 3 (unused at present) |
| 1473 |
> Bit 4 - I/O operation logging |
| 1474 |
> Bit 5 - vMMU logging |
| 1475 |
> Bit 6 - vLAPIC general logging |
| 1476 |
> Bit 7 - vLAPIC timer logging |
| 1477 |
> Bit 8 - vLAPIC interrupt logging |
| 1478 |
> Bit 9 - vIOAPIC logging |
| 1479 |
> Bit 10 - hypercall logging |
| 1480 |
> Bit 11 - MSR operation logging |
| 1481 |
|
| 1482 |
Recognized in debug builds of the hypervisor only. |
| 1483 |
|
| 1484 |
### hvm_fep (x86) |
| 1485 |
> `= <boolean>` |
| 1486 |
|
| 1487 |
> Default: `false` |
| 1488 |
|
| 1489 |
Allow use of the Forced Emulation Prefix in HVM guests, to allow emulation of |
| 1490 |
arbitrary instructions. |
| 1491 |
|
| 1492 |
This option is intended for development and testing purposes. |
| 1493 |
|
| 1494 |
*Warning* |
| 1495 |
As this feature opens up the instruction emulator to arbitrary |
| 1496 |
instruction from an HVM guest, don't use this in production system. No |
| 1497 |
security support is provided when this flag is set. |
| 1498 |
|
| 1499 |
### hvm_port80 (x86) |
| 1500 |
> `= <boolean>` |
| 1501 |
|
| 1502 |
> Default: `true` |
| 1503 |
|
| 1504 |
Specify whether guests are to be given access to physical port 80 |
| 1505 |
(often used for debugging purposes), to override the DMI based |
| 1506 |
detection of systems known to misbehave upon accesses to that port. |
| 1507 |
|
| 1508 |
### idle_latency_factor (x86) |
| 1509 |
> `= <integer>` |
| 1510 |
|
| 1511 |
### ioapic_ack (x86) |
| 1512 |
> `= old | new` |
| 1513 |
|
| 1514 |
> Default: `new` unless directed-EOI is supported |
| 1515 |
|
| 1516 |
### iommu |
| 1517 |
= List of [ <bool>, verbose, debug, force, required, |
| 1518 |
quarantine=<bool>|scratch-page, |
| 1519 |
sharept, superpages, intremap, intpost, crash-disable, |
| 1520 |
snoop, qinval, igfx, amd-iommu-perdev-intremap, |
| 1521 |
dom0-{passthrough,strict} ] |
| 1522 |
|
| 1523 |
All sub-options are boolean in nature. |
| 1524 |
|
| 1525 |
I/O Memory Memory Units perform a function similar to the CPU MMU (hence the |
| 1526 |
name), but typically exist as a discrete device, integrated as part of a PCI |
| 1527 |
Root Complex. The most common configuration is to have one IOMMU per package |
| 1528 |
(for on-die PCIe devices and directly attached PCIe lanes), and one IOMMU |
| 1529 |
covering the remaining I/O in the system. |
| 1530 |
|
| 1531 |
The functionality in an IOMMU commonly falls into two orthogonal categories: |
| 1532 |
|
| 1533 |
1. DMA remapping which uses a pagetable-like hierarchical structure and maps |
| 1534 |
I/O Virtual Addresses (DFNs - Device Frame Numbers in Xen's terminology) |
| 1535 |
to System Physical Addresses (MFNs - Machine Frame Numbers in Xen's |
| 1536 |
terminology). |
| 1537 |
|
| 1538 |
2. Interrupt Remapping, which controls incoming Message Signalled Interrupt |
| 1539 |
requests, including their routing to specific CPUs. |
| 1540 |
|
| 1541 |
IOMMU functionality can be used to provide a translation which the hardware |
| 1542 |
device driver isn't aware of (e.g. PCI Passthrough and a native driver inside |
| 1543 |
the guest) and/or to enforce fine-grained control over the memory and |
| 1544 |
interrupts which a device is attempting to access. |
| 1545 |
|
| 1546 |
By default, IOMMUs are configured for use if they are available. An overall |
| 1547 |
boolean (e.g. `iommu=no`) can override this and leave the IOMMUs disabled. |
| 1548 |
|
| 1549 |
* The `verbose` and `debug` booleans can be used to print additional |
| 1550 |
diagnostic information. Neither are active by default. |
| 1551 |
|
| 1552 |
* The `force` and `required` booleans are synonymous and, when requested, |
| 1553 |
will prevent Xen from booting if IOMMUs aren't discovered and enabled |
| 1554 |
successfully. |
| 1555 |
|
| 1556 |
* The `quarantine` option can be used to control Xen's behavior when |
| 1557 |
de-assigning devices from guests. The default behaviour is chosen at |
| 1558 |
compile time, and is one of `CONFIG_IOMMU_QUARANTINE_{NONE,BASIC,SCRATCH_PAGE}`. |
| 1559 |
|
| 1560 |
When a PCI device is assigned to an untrusted domain, it is possible |
| 1561 |
for that domain to program the device to DMA to an arbitrary address. |
| 1562 |
The IOMMU is used to protect the host from malicious DMA by making |
| 1563 |
sure that the device addresses can only target memory assigned to the |
| 1564 |
guest. However, when the guest domain is torn down, assigning the |
| 1565 |
device back to the hardware domain would allow any in-flight DMA to |
| 1566 |
potentially target critical host data. To avoid this, quarantining |
| 1567 |
should be enabled. Quarantining can be done in two ways: In its basic |
| 1568 |
form, all in-flight DMA will simply be forced to encounter IOMMU |
| 1569 |
faults. Since there are systems where doing so can cause host lockup, |
| 1570 |
an alternative form is available where accesses to memory will be directed |
| 1571 |
to a scratch page. The implication here is that such accesses will go |
| 1572 |
unnoticed, i.e. an admin may not become aware of the underlying problem. |
| 1573 |
|
| 1574 |
Therefore, if this option is set to true (the default), Xen always |
| 1575 |
quarantines such devices; they must be explicitly assigned back to Dom0 |
| 1576 |
before they can be used there again. If set to "scratch-page", still |
| 1577 |
active DMA operations will additionally be directed to a "scratch" page. If |
| 1578 |
set to false, Xen will only quarantine devices the toolstack has arranged |
| 1579 |
for getting quarantined, and only in the "basic" form. |
| 1580 |
|
| 1581 |
This option is only valid on builds supporting PCI. |
| 1582 |
|
| 1583 |
* The `sharept` boolean controls whether the IOMMU pagetables are shared |
| 1584 |
with the CPU-side HAP pagetables, or allocated separately. Sharing |
| 1585 |
reduces the memory overhead, but doesn't work in combination with CPU-side |
| 1586 |
pagefault-based features, e.g. dirty VRAM tracking when a PCI device is |
| 1587 |
assigned. |
| 1588 |
|
| 1589 |
Due to implementation choices, sharing pagetables doesn't work on AMD |
| 1590 |
hardware, and this option is ignored. It is enabled by default on Intel |
| 1591 |
systems. |
| 1592 |
|
| 1593 |
This option is ignored on ARM, and the pagetables are always shared. |
| 1594 |
|
| 1595 |
* The `superpages` boolean controls whether superpage mappings may be used |
| 1596 |
in IOMMU page tables. If using this option is necessary to fix an issue, |
| 1597 |
please report a bug. |
| 1598 |
|
| 1599 |
This option is only valid on x86. |
| 1600 |
|
| 1601 |
* The `intremap` boolean controls the Interrupt Remapping sub-feature, and |
| 1602 |
is active by default on compatible hardware. On x86 systems, the first |
| 1603 |
generation of IOMMUs only supported DMA remapping, and Interrupt Remapping |
| 1604 |
appeared in the second generation. |
| 1605 |
|
| 1606 |
This option is only valid on x86. |
| 1607 |
|
| 1608 |
* The `intpost` boolean controls the Posted Interrupt sub-feature. In |
| 1609 |
combination with APIC acceleration (VT-x APICV, SVM AVIC), the IOMMU can |
| 1610 |
be configured to deliver interrupts from assigned PCI devices directly |
| 1611 |
into the guest, without trapping out into hypervisor context. |
| 1612 |
|
| 1613 |
This option depends on `intremap`, and is disabled by default due to some |
| 1614 |
corner cases in the implementation which have yet to be resolved. |
| 1615 |
|
| 1616 |
This option is only valid on x86, and only builds of Xen with HVM support. |
| 1617 |
|
| 1618 |
* The `crash-disable` boolean controls disabling IOMMU functionality (DMAR/IR/QI) |
| 1619 |
before switching to a crash kernel. This option is inactive by default and |
| 1620 |
is for compatibility with older kdump kernels only. Modern kernels copy |
| 1621 |
all the necessary tables from the previous one following kexec which makes |
| 1622 |
the transition transparent for them with IOMMU functions still on. |
| 1623 |
|
| 1624 |
The following options are specific to Intel VT-d hardware: |
| 1625 |
|
| 1626 |
* The `snoop` boolean controls the Snoop Control sub-feature, and is active |
| 1627 |
by default on compatible hardware. |
| 1628 |
|
| 1629 |
An incoming DMA request may specify _Snooped_ (query the CPU caches for |
| 1630 |
the appropriate lines) or _Non-Snooped_ (don't query the CPU caches). |
| 1631 |
_Non-Snooped_ accesses incur less latency, but behind-the-scenes |
| 1632 |
hypervisor activity can invalidate the expectations of the device driver, |
| 1633 |
and Snoop Control allows the hypervisor to force DMA requests to be |
| 1634 |
_Snooped_ when they would otherwise not be. |
| 1635 |
|
| 1636 |
* The `qinval` boolean controls the Queued Invalidation sub-feature, and is |
| 1637 |
active by default on compatible hardware. Queued Invalidation is a |
| 1638 |
feature in second-generation IOMMUs and is a functional prerequisite for |
| 1639 |
Interrupt Remapping. Note that Xen disregards this setting for Intel VT-d |
| 1640 |
version 6 and greater as Registered-Based Invalidation isn't supported |
| 1641 |
by them. |
| 1642 |
|
| 1643 |
* The `igfx` boolean is active by default, and controls whether IOMMUs in |
| 1644 |
front of solely graphics devices get enabled or not. |
| 1645 |
|
| 1646 |
It is intended as a debugging mechanism for graphics issues, and to be |
| 1647 |
similar to Linux's `intel_iommu=igfx_off` option. If specifying `no-igfx` |
| 1648 |
fixes anything, please report the problem. |
| 1649 |
|
| 1650 |
The following options are specific to AMD-Vi hardware: |
| 1651 |
|
| 1652 |
* The `amd-iommu-perdev-intremap` boolean controls whether the interrupt |
| 1653 |
remapping table is per device (the default), or a single global table for |
| 1654 |
the entire system. |
| 1655 |
|
| 1656 |
Using a global table is not security supported as it allows all devices to |
| 1657 |
impersonate each other as far as interrupts as concerned (see XSA-36), but |
| 1658 |
it is a workaround for SP5100 Erratum 28. |
| 1659 |
|
| 1660 |
**WARNING: The `dom0-passthrough` and `dom0-strict` booleans are both |
| 1661 |
deprecated, and superseded by _dom0-iommu={passthrough,strict}_ respectively - |
| 1662 |
using both the old and new command line options in combination is undefined.** |
| 1663 |
|
| 1664 |
### iommu_dev_iotlb_timeout |
| 1665 |
> `= <integer>` |
| 1666 |
|
| 1667 |
> Default: `1000` |
| 1668 |
|
| 1669 |
Specify the timeout of the device IOTLB invalidation in milliseconds. |
| 1670 |
By default, the timeout is 1000 ms. When you see error 'Queue invalidate |
| 1671 |
wait descriptor timed out', try increasing this value. |
| 1672 |
|
| 1673 |
### iommu_inclusive_mapping |
| 1674 |
> `= <boolean>` |
| 1675 |
|
| 1676 |
**WARNING: This command line option is deprecated, and superseded by |
| 1677 |
_dom0-iommu=map-inclusive_ - using both options in combination is undefined.** |
| 1678 |
|
| 1679 |
### irq-max-guests (x86) |
| 1680 |
> `= <integer>` |
| 1681 |
|
| 1682 |
> Default: `32` |
| 1683 |
|
| 1684 |
Maximum number of guests any individual IRQ could be shared between, |
| 1685 |
i.e. a limit on the number of guests it is possible to start each having |
| 1686 |
assigned a device sharing a common interrupt line. Accepts values between |
| 1687 |
1 and 255. |
| 1688 |
|
| 1689 |
### irq_ratelimit (x86) |
| 1690 |
> `= <integer>` |
| 1691 |
|
| 1692 |
### irq_vector_map (x86) |
| 1693 |
|
| 1694 |
### ivmd (x86) |
| 1695 |
> `= <start>[-<end>][=<bdf1>[-<bdf1'>][,<bdf2>[-<bdf2'>][,...]]][;<start>...]` |
| 1696 |
|
| 1697 |
Define IVMD-like ranges that are missing from ACPI tables along with the |
| 1698 |
device(s) they belong to, and use them for 1:1 mapping. End addresses can be |
| 1699 |
omitted when exactly one page is meant. The ranges are inclusive when start |
| 1700 |
and end are specified. Note that only PCI segment 0 is supported at this time, |
| 1701 |
but it is fine to specify it explicitly. |
| 1702 |
|
| 1703 |
'start' and 'end' values are page numbers (not full physical addresses), |
| 1704 |
in hexadecimal format (can optionally be preceded by "0x"). |
| 1705 |
|
| 1706 |
Omitting the optional (range of) BDF spcifiers signals that the range is to |
| 1707 |
be applied to all devices. |
| 1708 |
|
| 1709 |
Usage example: If device 0:0:1d.0 requires one page (0xd5d45) to be |
| 1710 |
reserved, and devices 0:0:1a.0...0:0:1a.3 collectively require three pages |
| 1711 |
(0xd5d46 thru 0xd5d48) to be reserved, one usage would be: |
| 1712 |
|
| 1713 |
ivmd=d5d45=0:1d.0;0xd5d46-0xd5d48=0:1a.0-0:1a.3 |
| 1714 |
|
| 1715 |
Note: grub2 requires to escape or quote special characters, like ';' when |
| 1716 |
multiple ranges are specified - refer to the grub2 documentation. |
| 1717 |
|
| 1718 |
### ivrs_hpet[`<hpet>`] (AMD) |
| 1719 |
> `=[<seg>:]<bus>:<device>.<func>` |
| 1720 |
|
| 1721 |
Force the use of `[<seg>:]<bus>:<device>.<func>` as device ID of HPET |
| 1722 |
`<hpet>` instead of the one specified by the IVHD sub-tables of the IVRS |
| 1723 |
ACPI table. |
| 1724 |
|
| 1725 |
### ivrs_ioapic[`<ioapic>`] (AMD) |
| 1726 |
> `=[<seg>:]<bus>:<device>.<func>` |
| 1727 |
|
| 1728 |
Force the use of `[<seg>:]<bus>:<device>.<func>` as device ID of IO-APIC |
| 1729 |
`<ioapic>` instead of the one specified by the IVHD sub-tables of the IVRS |
| 1730 |
ACPI table. |
| 1731 |
|
| 1732 |
### lapic (x86) |
| 1733 |
> `= <boolean>` |
| 1734 |
|
| 1735 |
Force the use of use of the local APIC on a uniprocessor system, even |
| 1736 |
if left disabled by the BIOS. |
| 1737 |
|
| 1738 |
### lapic_timer_c2_ok (x86) |
| 1739 |
> `= <boolean>` |
| 1740 |
|
| 1741 |
### ler (x86) |
| 1742 |
> `= <boolean>` |
| 1743 |
|
| 1744 |
> Default: false |
| 1745 |
|
| 1746 |
This option is intended for debugging purposes only. Enable MSR_DEBUGCTL.LBR |
| 1747 |
in hypervisor context to be able to dump the Last Interrupt/Exception To/From |
| 1748 |
record with other registers. |
| 1749 |
|
| 1750 |
### llc-coloring (arm64) |
| 1751 |
> `= <boolean>` |
| 1752 |
|
| 1753 |
> Default: `false` |
| 1754 |
|
| 1755 |
Flag to enable or disable LLC coloring support at runtime. This option is |
| 1756 |
available only when `CONFIG_LLC_COLORING` is enabled. See the general |
| 1757 |
cache coloring documentation for more info. |
| 1758 |
|
| 1759 |
### llc-nr-ways (arm64) |
| 1760 |
> `= <integer>` |
| 1761 |
|
| 1762 |
> Default: `Obtained from hardware` |
| 1763 |
|
| 1764 |
Specify the number of ways of the Last Level Cache. This option is available |
| 1765 |
only when `CONFIG_LLC_COLORING` is enabled. LLC size and number of ways are used |
| 1766 |
to find the number of supported cache colors. By default the value is |
| 1767 |
automatically computed by probing the hardware, but in case of specific needs, |
| 1768 |
it can be manually set. Those include failing probing and debugging/testing |
| 1769 |
purposes so that it's possible to emulate platforms with different number of |
| 1770 |
supported colors. If set, also "llc-size" must be set, otherwise the default |
| 1771 |
will be used. Note that using both options implies "llc-coloring=on" unless an |
| 1772 |
earlier "llc-coloring=off" is there. |
| 1773 |
|
| 1774 |
### llc-size (arm64) |
| 1775 |
> `= <size>` |
| 1776 |
|
| 1777 |
> Default: `Obtained from hardware` |
| 1778 |
|
| 1779 |
Specify the size of the Last Level Cache. This option is available only when |
| 1780 |
`CONFIG_LLC_COLORING` is enabled. LLC size and number of ways are used to find |
| 1781 |
the number of supported cache colors. By default the value is automatically |
| 1782 |
computed by probing the hardware, but in case of specific needs, it can be |
| 1783 |
manually set. Those include failing probing and debugging/testing purposes so |
| 1784 |
that it's possible to emulate platforms with different number of supported |
| 1785 |
colors. If set, also "llc-nr-ways" must be set, otherwise the default will be |
| 1786 |
used. Note that using both options implies "llc-coloring=on" unless an |
| 1787 |
earlier "llc-coloring=off" is there. |
| 1788 |
|
| 1789 |
### lock-depth-size |
| 1790 |
> `= <integer>` |
| 1791 |
|
| 1792 |
> Default: `lock-depth-size=64` |
| 1793 |
|
| 1794 |
Specifies the maximum number of nested locks tested for illegal recursions. |
| 1795 |
Higher nesting levels still work, but recursion testing is omitted for those |
| 1796 |
levels. In case an illegal recursion is detected the system will crash |
| 1797 |
immediately. Specifying `0` will disable all testing of illegal lock nesting. |
| 1798 |
|
| 1799 |
This option is available for hypervisors built with CONFIG_DEBUG_LOCKS only. |
| 1800 |
|
| 1801 |
### loglvl |
| 1802 |
> `= <level>[/<rate-limited level>]` where level is `none | error | warning | info | debug | all` |
| 1803 |
|
| 1804 |
> Default: `loglvl=info` |
| 1805 |
|
| 1806 |
> Can be modified at runtime |
| 1807 |
|
| 1808 |
Set the logging level for Xen. Any log message with equal more more |
| 1809 |
importance will be printed. |
| 1810 |
|
| 1811 |
The optional `<rate-limited level>` option instructs which severities |
| 1812 |
should be rate limited. |
| 1813 |
|
| 1814 |
### low_crashinfo |
| 1815 |
> `= none | min | all` |
| 1816 |
|
| 1817 |
> Default: `none` if not specified at all, or to `min` if **low_crashinfo** is present without qualification. |
| 1818 |
|
| 1819 |
This option is only useful for hosts with a 32bit dom0 kernel, wishing |
| 1820 |
to use kexec functionality in the case of a crash. It represents |
| 1821 |
which data structures should be deliberately allocated in low memory, |
| 1822 |
so the crash kernel may find find them. Should be used in combination |
| 1823 |
with **crashinfo_maxaddr**. |
| 1824 |
|
| 1825 |
### low_mem_virq_limit |
| 1826 |
> `= <size>` |
| 1827 |
|
| 1828 |
> Default: `64M` |
| 1829 |
|
| 1830 |
Specify the threshold below which Xen will inform dom0 that the quantity of |
| 1831 |
free memory is getting low. Specifying `0` will disable this notification. |
| 1832 |
|
| 1833 |
### maxcpus |
| 1834 |
> `= <integer>` |
| 1835 |
|
| 1836 |
Specify the maximum number of CPUs that should be brought up. |
| 1837 |
|
| 1838 |
This option is ignored in **pv-shim** mode. |
| 1839 |
|
| 1840 |
**WARNING: On Arm big.LITTLE systems, when `hmp-unsafe` option is enabled, this command line |
| 1841 |
option does not guarantee on which CPU types will be used.** |
| 1842 |
|
| 1843 |
### max_cstate (x86) |
| 1844 |
> `= <integer>[,<integer>]` |
| 1845 |
|
| 1846 |
Specify the deepest C-state CPUs are permitted to be placed in, and |
| 1847 |
optionally the maximum sub C-state to be used used. The latter only applies |
| 1848 |
to the highest permitted C-state. |
| 1849 |
|
| 1850 |
### max_gsi_irqs (x86) |
| 1851 |
> `= <integer>` |
| 1852 |
|
| 1853 |
Specifies the number of interrupts to be use for pin (IO-APIC or legacy PIC) |
| 1854 |
based interrupts. Any higher IRQs will be available for use via PCI MSI. |
| 1855 |
|
| 1856 |
### max_lpi_bits (arm) |
| 1857 |
> `= <integer>` |
| 1858 |
|
| 1859 |
Specifies the number of ARM GICv3 LPI interrupts to allocate on the host, |
| 1860 |
presented as the number of bits needed to encode it. This must be at least |
| 1861 |
14 and not exceed 32, and each LPI requires one byte (configuration) and |
| 1862 |
one pending bit to be allocated. |
| 1863 |
Defaults to 20 bits (to cover at most 1048576 interrupts). |
| 1864 |
|
| 1865 |
### mce (x86) |
| 1866 |
> `= <boolean>` |
| 1867 |
|
| 1868 |
> Default: `true` |
| 1869 |
|
| 1870 |
Allows to disable the use of Machine Check Exceptions. Note that doing |
| 1871 |
so may result in silent shutdown of the system in case an event occurs |
| 1872 |
which would have resulted in raising a Machine Check Exception. Silent |
| 1873 |
here is as far as Xen is concerned; firmware may offer to retrieve some |
| 1874 |
collected data. |
| 1875 |
|
| 1876 |
### mce_fb (Intel) |
| 1877 |
> `= <boolean>` |
| 1878 |
|
| 1879 |
> Default: `false` |
| 1880 |
|
| 1881 |
Force broadcasting of Machine Check Exceptions, suppressing the use of |
| 1882 |
Local MCE functionality available in newer Intel hardware. |
| 1883 |
|
| 1884 |
### mce_verbosity (x86) |
| 1885 |
> `= verbose` |
| 1886 |
|
| 1887 |
Specify verbose machine check output. |
| 1888 |
|
| 1889 |
### mem (x86) |
| 1890 |
> `= <size>` |
| 1891 |
|
| 1892 |
Specify the maximum address of physical RAM. Any RAM beyond this |
| 1893 |
limit is ignored by Xen. |
| 1894 |
|
| 1895 |
### memop-max-order |
| 1896 |
> `= [<domU>][,[<ctldom>][,[<hwdom>][,<ptdom>]]]` |
| 1897 |
|
| 1898 |
> x86 default: `9,18,12,12` |
| 1899 |
> ARM default: `9,18,10,10` |
| 1900 |
|
| 1901 |
Change the maximum order permitted for allocation (or allocation-like) |
| 1902 |
requests issued by the various kinds of domains (in this order: |
| 1903 |
ordinary DomU, control domain, hardware domain, and - when supported |
| 1904 |
by the platform - DomU with pass-through device assigned). |
| 1905 |
|
| 1906 |
### mmcfg (x86) |
| 1907 |
> `= <boolean>[,amd-fam10]` |
| 1908 |
|
| 1909 |
> Default: `1` |
| 1910 |
|
| 1911 |
Specify if the MMConfig space should be enabled. |
| 1912 |
|
| 1913 |
### mmio-relax (x86) |
| 1914 |
> `= <boolean> | all` |
| 1915 |
|
| 1916 |
> Default: `false` |
| 1917 |
|
| 1918 |
By default, domains may not create cached mappings to MMIO regions. |
| 1919 |
This option relaxes the check for Domain 0 (or when using `all`, all PV |
| 1920 |
domains), to permit the use of cacheable MMIO mappings. |
| 1921 |
|
| 1922 |
### msi (x86) |
| 1923 |
> `= <boolean>` |
| 1924 |
|
| 1925 |
> Default: `true` |
| 1926 |
|
| 1927 |
Force Xen to (not) use PCI-MSI, even if ACPI FADT says otherwise. |
| 1928 |
|
| 1929 |
### mtrr.show (x86) |
| 1930 |
> `= <boolean>` |
| 1931 |
|
| 1932 |
> Default: `false` |
| 1933 |
|
| 1934 |
Print boot time MTRR state. |
| 1935 |
|
| 1936 |
### mwait-idle (x86) |
| 1937 |
> `= <boolean>` |
| 1938 |
|
| 1939 |
> Default: `true` |
| 1940 |
|
| 1941 |
Use the MWAIT idle driver (with model specific C-state knowledge) instead |
| 1942 |
of the ACPI based one. |
| 1943 |
|
| 1944 |
### nmi (x86) |
| 1945 |
> `= ignore | dom0 | fatal` |
| 1946 |
|
| 1947 |
> Default: `fatal` for a debug build, or `dom0` for a non-debug build |
| 1948 |
|
| 1949 |
Specify what Xen should do in the event of an NMI parity or I/O error. |
| 1950 |
`ignore` discards the error; `dom0` causes Xen to report the error to |
| 1951 |
dom0, while 'fatal' causes Xen to print diagnostics and then hang. |
| 1952 |
|
| 1953 |
### noapic (x86) |
| 1954 |
|
| 1955 |
Instruct Xen to ignore any IOAPICs that are present in the system, and |
| 1956 |
instead continue to use the legacy PIC. This is _not_ recommended with |
| 1957 |
pvops type kernels. |
| 1958 |
|
| 1959 |
Because responsibility for APIC setup is shared between Xen and the |
| 1960 |
domain 0 kernel this option is automatically propagated to the domain |
| 1961 |
0 command line. |
| 1962 |
|
| 1963 |
### invpcid (x86) |
| 1964 |
> `= <boolean>` |
| 1965 |
|
| 1966 |
> Default: `true` |
| 1967 |
|
| 1968 |
By default, Xen will use the INVPCID instruction for TLB management if |
| 1969 |
it is available. This option can be used to cause Xen to fall back to |
| 1970 |
older mechanisms, which are generally slower. |
| 1971 |
|
| 1972 |
### load-balance-ratelimit |
| 1973 |
> `= <integer>` |
| 1974 |
|
| 1975 |
The minimum interval between load balancing events on a given pcpu, in |
| 1976 |
microseconds. A value of '0' will disable rate limiting. Maximum |
| 1977 |
value 1 second. At the moment only credit honors this parameter. |
| 1978 |
Default 1ms. |
| 1979 |
|
| 1980 |
### noirqbalance (x86) |
| 1981 |
> `= <boolean>` |
| 1982 |
|
| 1983 |
Disable software IRQ balancing and affinity. This can be used on |
| 1984 |
systems such as Dell 1850/2850 that have workarounds in hardware for |
| 1985 |
IRQ routing issues. |
| 1986 |
|
| 1987 |
### nolapic (x86) |
| 1988 |
> `= <boolean>` |
| 1989 |
|
| 1990 |
> Default: `false` |
| 1991 |
|
| 1992 |
Ignore the local APIC on a uniprocessor system, even if enabled by the |
| 1993 |
BIOS. |
| 1994 |
|
| 1995 |
### no-real-mode (x86) |
| 1996 |
> `= <boolean>` |
| 1997 |
|
| 1998 |
Do not execute real-mode bootstrap code when booting Xen. This option |
| 1999 |
should not be used except for debugging. It will effectively disable |
| 2000 |
the **vga** option, which relies on real mode to set the video mode. |
| 2001 |
|
| 2002 |
### noreboot |
| 2003 |
> `= <boolean>` |
| 2004 |
|
| 2005 |
Do not automatically reboot after an error. This is useful for |
| 2006 |
catching debug output. Defaults to automatically reboot after 5 |
| 2007 |
seconds. |
| 2008 |
|
| 2009 |
### nosmp (x86) |
| 2010 |
> `= <boolean>` |
| 2011 |
|
| 2012 |
Disable SMP support. No secondary processors will be booted. |
| 2013 |
Defaults to booting secondary processors. |
| 2014 |
|
| 2015 |
This option is ignored in **pv-shim** mode. |
| 2016 |
|
| 2017 |
### nr_irqs (x86) |
| 2018 |
> `= <integer>` |
| 2019 |
|
| 2020 |
### numa (x86) |
| 2021 |
> `= on | off | fake=<integer> | noacpi` |
| 2022 |
|
| 2023 |
> Default: `on` |
| 2024 |
|
| 2025 |
### partial-emulation (arm) |
| 2026 |
> `= <boolean>` |
| 2027 |
|
| 2028 |
> Default: `false` |
| 2029 |
|
| 2030 |
Flag to enable or disable partial emulation of system/coprocessor registers. |
| 2031 |
Only effective if CONFIG_PARTIAL_EMULATION is enabled. |
| 2032 |
|
| 2033 |
**WARNING: Enabling this option might result in unwanted/non-spec compliant |
| 2034 |
behavior.** |
| 2035 |
|
| 2036 |
### pci |
| 2037 |
= List of [ serr=<bool>, perr=<bool> ] |
| 2038 |
|
| 2039 |
Default: Signaling left as set by firmware. |
| 2040 |
|
| 2041 |
Override the firmware settings, and explicitly enable or disable the |
| 2042 |
signalling of PCI System and Parity errors. |
| 2043 |
|
| 2044 |
### pci-phantom |
| 2045 |
> `=[<seg>:]<bus>:<device>,<stride>` |
| 2046 |
|
| 2047 |
Mark a group of PCI devices as using phantom functions without actually |
| 2048 |
advertising so, so the IOMMU can create translation contexts for them. |
| 2049 |
|
| 2050 |
All numbers specified must be hexadecimal ones. |
| 2051 |
|
| 2052 |
This option can be specified more than once (up to 8 times at present). |
| 2053 |
|
| 2054 |
### pci-passthrough (arm) |
| 2055 |
> `= <boolean>` |
| 2056 |
|
| 2057 |
> Default: `false` |
| 2058 |
|
| 2059 |
Flag to enable or disable support for PCI passthrough |
| 2060 |
|
| 2061 |
### pcid (x86) |
| 2062 |
> `= <boolean> | xpti=<bool>` |
| 2063 |
|
| 2064 |
> Default: `xpti` |
| 2065 |
|
| 2066 |
> Can be modified at runtime (change takes effect only for domains created |
| 2067 |
afterwards) |
| 2068 |
|
| 2069 |
If available, control usage of the PCID feature of the processor for |
| 2070 |
64-bit pv-domains. PCID can be used either for no domain at all (`false`), |
| 2071 |
for all of them (`true`), only for those subject to XPTI (`xpti`) or for |
| 2072 |
those not subject to XPTI (`no-xpti`). The feature is used only in case |
| 2073 |
INVPCID is supported and not disabled via `invpcid=false`. |
| 2074 |
|
| 2075 |
### ple_gap |
| 2076 |
> `= <integer>` |
| 2077 |
|
| 2078 |
### ple_window (Intel) |
| 2079 |
> `= <integer>` |
| 2080 |
|
| 2081 |
### preferred-cstates (x86) |
| 2082 |
> `= ( <integer> | List of ( C1 | C1E | C2 | ... )` |
| 2083 |
|
| 2084 |
This is a mask of C-states which are to be used preferably. This option is |
| 2085 |
applicable only on hardware were certain C-states are exclusive of one another. |
| 2086 |
|
| 2087 |
### probe-port-aliases (x86) |
| 2088 |
> `= <boolean>` |
| 2089 |
|
| 2090 |
> Default: `true` outside of shim mode, `false` in shim mode |
| 2091 |
|
| 2092 |
Certain devices accessible by I/O ports may be accessible also through "alias" |
| 2093 |
ports (originally a result of incomplete address decoding). When such devices |
| 2094 |
are solely under Xen's control, Xen disallows even Dom0 access to the "primary" |
| 2095 |
ports. When alias probing is active and aliases are detected, "alias" ports |
| 2096 |
would then be treated similar to the "primary" ones. |
| 2097 |
|
| 2098 |
### psr (Intel) |
| 2099 |
> `= List of ( cmt:<boolean> | rmid_max:<integer> | cat:<boolean> | cos_max:<integer> | cdp:<boolean> )` |
| 2100 |
|
| 2101 |
> Default: `psr=cmt:0,rmid_max:255,cat:0,cos_max:255,cdp:0` |
| 2102 |
|
| 2103 |
Platform Shared Resource(PSR) Services. Intel Haswell and later server |
| 2104 |
platforms offer information about the sharing of resources. |
| 2105 |
|
| 2106 |
To use the PSR monitoring service for a certain domain, a Resource |
| 2107 |
Monitoring ID(RMID) is used to bind the domain to corresponding shared |
| 2108 |
resource. RMID is a hardware-provided layer of abstraction between software |
| 2109 |
and logical processors. |
| 2110 |
|
| 2111 |
To use the PSR cache allocation service for a certain domain, a capacity |
| 2112 |
bitmasks(CBM) is used to bind the domain to corresponding shared resource. |
| 2113 |
CBM represents cache capacity and indicates the degree of overlap and isolation |
| 2114 |
between domains. In hypervisor a Class of Service(COS) ID is allocated for each |
| 2115 |
unique CBM. |
| 2116 |
|
| 2117 |
The following resources are available: |
| 2118 |
|
| 2119 |
* Cache Monitoring Technology (Haswell and later). Information regarding the |
| 2120 |
L3 cache occupancy. |
| 2121 |
* `cmt` instructs Xen to enable/disable Cache Monitoring Technology. |
| 2122 |
* `rmid_max` indicates the max value for rmid. |
| 2123 |
* Memory Bandwidth Monitoring (Broadwell and later). Information regarding the |
| 2124 |
total/local memory bandwidth. Follow the same options with Cache Monitoring |
| 2125 |
Technology. |
| 2126 |
|
| 2127 |
* Cache Allocation Technology (Broadwell and later). Information regarding |
| 2128 |
the cache allocation. |
| 2129 |
* `cat` instructs Xen to enable/disable Cache Allocation Technology. |
| 2130 |
* `cos_max` indicates the max value for COS ID. |
| 2131 |
* Code and Data Prioritization Technology (Broadwell and later). Information |
| 2132 |
regarding the code cache and the data cache allocation. CDP is based on CAT. |
| 2133 |
* `cdp` instructs Xen to enable/disable Code and Data Prioritization. Note |
| 2134 |
that `cos_max` of CDP is a little different from `cos_max` of CAT. With |
| 2135 |
CDP, one COS will corespond two CBMs other than one with CAT, due to the |
| 2136 |
sum of CBMs is fixed, that means actual `cos_max` in use will automatically |
| 2137 |
reduce to half when CDP is enabled. |
| 2138 |
|
| 2139 |
### pv |
| 2140 |
= List of [ 32=<bool> ] |
| 2141 |
|
| 2142 |
Applicability: x86 |
| 2143 |
|
| 2144 |
Controls for aspects of PV guest support. |
| 2145 |
|
| 2146 |
* The `32` boolean controls whether 32bit PV guests can be created. It |
| 2147 |
defaults to `true`, and is ignored when `CONFIG_PV32` is compiled out. |
| 2148 |
|
| 2149 |
32bit PV guests are incompatible with CET Shadow Stacks. If Xen is using |
| 2150 |
shadow stacks, this option will be overridden to `false`. Backwards |
| 2151 |
compatibility can be maintained with the `pv-shim` mechanism. |
| 2152 |
|
| 2153 |
### pv-linear-pt (x86) |
| 2154 |
> `= <boolean>` |
| 2155 |
|
| 2156 |
> Default: `true` |
| 2157 |
|
| 2158 |
Only available if Xen is compiled with `CONFIG_PV_LINEAR_PT` support |
| 2159 |
enabled. |
| 2160 |
|
| 2161 |
Allow PV guests to have pagetable entries pointing to other pagetables |
| 2162 |
of the same level (i.e., allowing L2 PTEs to point to other L2 pages). |
| 2163 |
This technique is often called "linear pagetables", and is sometimes |
| 2164 |
used to allow operating systems a simple way to consistently map the |
| 2165 |
current process's pagetables into its own virtual address space. |
| 2166 |
|
| 2167 |
Linux and MiniOS don't use this technique. NetBSD and Novell Netware |
| 2168 |
do; there may be other custom operating systems which do. If you're |
| 2169 |
certain you don't plan on having PV guests which use this feature, |
| 2170 |
turning it off can reduce the attack surface. |
| 2171 |
|
| 2172 |
### pv-l1tf (x86) |
| 2173 |
> `= List of [ <bool>, dom0=<bool>, domu=<bool> ]` |
| 2174 |
|
| 2175 |
> Default: `false` on believed-unaffected hardware, or in pv-shim mode. |
| 2176 |
> `domu` on believed-affected hardware. |
| 2177 |
|
| 2178 |
Mitigations for L1TF / XSA-273 / CVE-2018-3620 for PV guests. |
| 2179 |
|
| 2180 |
For backwards compatibility, we may not alter an architecturally-legitimate |
| 2181 |
pagetable entry a PV guest chooses to write. We can however force such a |
| 2182 |
guest into shadow mode so that Xen controls the PTEs which are reachable by |
| 2183 |
the CPU pagewalk. |
| 2184 |
|
| 2185 |
Shadowing is performed at the point where a PV guest first tries to write an |
| 2186 |
L1TF-vulnerable PTE. Therefore, a PV guest kernel which has been updated with |
| 2187 |
its own L1TF mitigations will not trigger shadow mode if it is well behaved. |
| 2188 |
|
| 2189 |
If `CONFIG_SHADOW_PAGING` is not compiled in, this mitigation instead crashes |
| 2190 |
the guest when an L1TF-vulnerable PTE is written, which still allows updated, |
| 2191 |
well-behaved PV guests to run, despite Shadow being compiled out. |
| 2192 |
|
| 2193 |
In the pv-shim case, Shadow is expected to be compiled out, and a malicious |
| 2194 |
guest kernel can only leak data from the shim Xen, rather than the host Xen. |
| 2195 |
|
| 2196 |
### pv-shim (x86) |
| 2197 |
> `= <boolean>` |
| 2198 |
|
| 2199 |
> Default: `false` |
| 2200 |
|
| 2201 |
This option is intended for use by a toolstack, when choosing to run a PV |
| 2202 |
guest compatibly inside an HVM container. |
| 2203 |
|
| 2204 |
In this mode, the kernel and initrd passed as modules to the hypervisor are |
| 2205 |
constructed into a plain unprivileged PV domain. |
| 2206 |
|
| 2207 |
### rcu-idle-timer-period-ms |
| 2208 |
> `= <integer>` |
| 2209 |
|
| 2210 |
> Default: `10` |
| 2211 |
|
| 2212 |
How frequently a CPU which has gone idle, but with pending RCU callbacks, |
| 2213 |
should be woken up to check if the grace period has completed, and the |
| 2214 |
callbacks are safe to be executed. Expressed in milliseconds; maximum is |
| 2215 |
100, and it can't be 0. |
| 2216 |
|
| 2217 |
### reboot (x86) |
| 2218 |
> `= t[riple] | k[bd] | a[cpi] | p[ci] | P[ower] | e[fi] | n[o] [, [w]arm | [c]old]` |
| 2219 |
|
| 2220 |
> Default: system dependent |
| 2221 |
|
| 2222 |
Specify the host reboot method. |
| 2223 |
|
| 2224 |
`warm` instructs Xen to not set the cold reboot flag. |
| 2225 |
|
| 2226 |
`cold` instructs Xen to set the cold reboot flag. |
| 2227 |
|
| 2228 |
`no` instructs Xen to not automatically reboot after panics or crashes. |
| 2229 |
|
| 2230 |
`triple` instructs Xen to reboot the host by causing a triple fault. |
| 2231 |
|
| 2232 |
`kbd` instructs Xen to reboot the host via the keyboard controller. |
| 2233 |
|
| 2234 |
`acpi` instructs Xen to reboot the host using RESET_REG in the ACPI FADT (this |
| 2235 |
is default mode if available). |
| 2236 |
|
| 2237 |
`pci` instructs Xen to reboot the host using PCI reset register (port CF9). |
| 2238 |
|
| 2239 |
`Power` instructs Xen to power-cycle the host using PCI reset register (port CF9). |
| 2240 |
|
| 2241 |
`efi` instructs Xen to reboot using the EFI reboot call. |
| 2242 |
|
| 2243 |
`xen` instructs Xen to reboot using Xen's SCHEDOP hypercall (this is the default |
| 2244 |
when running nested Xen) |
| 2245 |
|
| 2246 |
### rmrr |
| 2247 |
> `= start<-end>=[s1]bdf1[,[s1]bdf2[,...]];start<-end>=[s2]bdf1[,[s2]bdf2[,...]]` |
| 2248 |
|
| 2249 |
Define RMRR units that are missing from ACPI table along with device they |
| 2250 |
belong to and use them for 1:1 mapping. End addresses can be omitted and one |
| 2251 |
page will be mapped. The ranges are inclusive when start and end are specified. |
| 2252 |
If segment of the first device is not specified, segment zero will be used. |
| 2253 |
If other segments are not specified, first device segment will be used. |
| 2254 |
If a segment is specified for other than the first device and it does not match |
| 2255 |
the one specified for the first one, an error will be reported. |
| 2256 |
|
| 2257 |
'start' and 'end' values are page numbers (not full physical addresses), |
| 2258 |
in hexadecimal format (can optionally be preceded by "0x"). |
| 2259 |
|
| 2260 |
Usage example: If device 0:0:1d.0 requires one page (0xd5d45) to be |
| 2261 |
reserved, and device 0:0:1a.0 requires three pages (0xd5d46 thru 0xd5d48) |
| 2262 |
to be reserved, one usage would be: |
| 2263 |
|
| 2264 |
rmrr=d5d45=0:0:1d.0;0xd5d46-0xd5d48=0:0:1a.0 |
| 2265 |
|
| 2266 |
Note: grub2 requires to escape or use quotations if special characters are used, |
| 2267 |
namely ';', refer to the grub2 documentation if multiple ranges are specified. |
| 2268 |
|
| 2269 |
### ro-hpet (x86) |
| 2270 |
> `= <boolean>` |
| 2271 |
|
| 2272 |
> Default: `true` |
| 2273 |
|
| 2274 |
Map the HPET page as read only in Dom0. If disabled the page will be mapped |
| 2275 |
with read and write permissions. |
| 2276 |
|
| 2277 |
### sched |
| 2278 |
> `= credit | credit2 | arinc653 | rtds | null` |
| 2279 |
|
| 2280 |
> Default: `sched=credit2` |
| 2281 |
|
| 2282 |
Choose the default scheduler. Note the default scheduler is selectable via |
| 2283 |
Kconfig and depends on enabled schedulers. Check |
| 2284 |
`CONFIG_SCHED_DEFAULT` to see which scheduler is the default. |
| 2285 |
|
| 2286 |
### sched_credit2_max_cpus_runqueue |
| 2287 |
> `= <integer>` |
| 2288 |
|
| 2289 |
> Default: `16` |
| 2290 |
|
| 2291 |
Defines how many CPUs will be put, at most, in each Credit2 runqueue. |
| 2292 |
|
| 2293 |
Runqueues are still arranged according to the host topology (and following |
| 2294 |
what indicated by the 'credit2_runqueue' parameter). But we also have a cap |
| 2295 |
to the number of CPUs that share each runqueues. |
| 2296 |
|
| 2297 |
A value that is a submultiple of the number of online CPUs is recommended, |
| 2298 |
as that would likely produce a perfectly balanced runqueue configuration. |
| 2299 |
|
| 2300 |
### sched_credit2_migrate_resist |
| 2301 |
> `= <integer>` |
| 2302 |
|
| 2303 |
### sched_credit_tslice_ms |
| 2304 |
> `= <integer>` |
| 2305 |
|
| 2306 |
Set the timeslice of the credit1 scheduler, in milliseconds. The |
| 2307 |
default is 30ms. Reasonable values may include 10, 5, or even 1 for |
| 2308 |
very latency-sensitive workloads. |
| 2309 |
|
| 2310 |
### sched-gran (x86) |
| 2311 |
> `= cpu | core | socket` |
| 2312 |
|
| 2313 |
> Default: `sched-gran=cpu` |
| 2314 |
|
| 2315 |
Set the scheduling granularity. In case the granularity is larger than 1 (e.g. |
| 2316 |
`core`on a SMT-enabled system, or `socket`) multiple vcpus are assigned |
| 2317 |
statically to a "scheduling unit" which will then be subject to scheduling. |
| 2318 |
This assignment of vcpus to scheduling units is fixed. |
| 2319 |
|
| 2320 |
`cpu`: Vcpus will be scheduled individually on single cpus (e.g. a |
| 2321 |
hyperthread using x86/Intel terminology) |
| 2322 |
|
| 2323 |
`core`: As many vcpus as there are cpus on a physical core are scheduled |
| 2324 |
together on a physical core. |
| 2325 |
|
| 2326 |
`socket`: As many vcpus as there are cpus on a physical sockets are scheduled |
| 2327 |
together on a physical socket. |
| 2328 |
|
| 2329 |
Note: a value other than `cpu` will result in rejecting a runtime modification |
| 2330 |
attempt of the "smt" setting. |
| 2331 |
|
| 2332 |
Note: for AMD x86 processors before Fam17 the terminology in the official data |
| 2333 |
sheets is different: a cpu is named "core" and multiple "cores" are running |
| 2334 |
in the same "compute unit". As from Fam17 on AMD is using the same names as |
| 2335 |
Intel ("thread" and "core") the topology levels are named "cpu", "core" and |
| 2336 |
"socket" even on older AMD processors. |
| 2337 |
|
| 2338 |
### sched_ratelimit_us |
| 2339 |
> `= <integer>` |
| 2340 |
|
| 2341 |
In order to limit the rate of context switching, set the minimum |
| 2342 |
amount of time that a vcpu can be scheduled for before preempting it, |
| 2343 |
in microseconds. The default is 1000us (1ms). Setting this to 0 |
| 2344 |
disables it altogether. |
| 2345 |
|
| 2346 |
### sched_smt_power_savings |
| 2347 |
> `= <boolean>` |
| 2348 |
|
| 2349 |
Normally Xen will try to maximize performance and cache utilization by |
| 2350 |
spreading out vcpus across as many different divisions as possible |
| 2351 |
(i.e, numa nodes, sockets, cores threads, &c). This often maximizes |
| 2352 |
throughput, but also maximizes energy usage, since it reduces the |
| 2353 |
depth to which a processor can sleep. |
| 2354 |
|
| 2355 |
This option inverts the logic, so that the scheduler in effect tries |
| 2356 |
to keep the vcpus on the smallest amount of silicon possible; i.e., |
| 2357 |
first fill up sibling threads, then sibling cores, then sibling |
| 2358 |
sockets, &c. This will reduce performance somewhat, particularly on |
| 2359 |
systems with hyperthreading enabled, but should reduce power by |
| 2360 |
enabling more sockets and cores to go into deeper sleep states. |
| 2361 |
|
| 2362 |
### scrub-domheap |
| 2363 |
> `= <boolean>` |
| 2364 |
|
| 2365 |
> Default: `false` |
| 2366 |
|
| 2367 |
Scrub domains' freed pages. This is a safety net against a (buggy) domain |
| 2368 |
accidentally leaking secrets by releasing pages without proper sanitization. |
| 2369 |
|
| 2370 |
### serial_tx_buffer |
| 2371 |
> `= <size>` |
| 2372 |
|
| 2373 |
> Default: `16kB` |
| 2374 |
|
| 2375 |
Set the serial transmit buffer size. |
| 2376 |
|
| 2377 |
### serrors (ARM) |
| 2378 |
> `= diverse | panic` |
| 2379 |
|
| 2380 |
> Default: `diverse` |
| 2381 |
|
| 2382 |
This parameter is provided to administrators to determine how the hypervisor |
| 2383 |
handles SErrors. |
| 2384 |
|
| 2385 |
* `diverse`: |
| 2386 |
The hypervisor will distinguish guest SErrors from hypervisor SErrors: |
| 2387 |
- The guest generated SErrors will be forwarded to the currently running |
| 2388 |
guest. |
| 2389 |
- The hypervisor generated SErrors will cause the whole system to crash |
| 2390 |
|
| 2391 |
* `panic`: |
| 2392 |
All SErrors will cause the whole system to crash. This option should only |
| 2393 |
be used if you trust all your guests and/or they don't have a gadget (e.g. |
| 2394 |
device) to generate SErrors in normal run. |
| 2395 |
|
| 2396 |
### shim_mem (x86) |
| 2397 |
> `= List of ( min:<size> | max:<size> | <size> )` |
| 2398 |
|
| 2399 |
Set the amount of memory that xen-shim uses. Only has effect if pv-shim mode is |
| 2400 |
enabled. Note that this value accounts for the memory used by the shim itself |
| 2401 |
plus the free memory slack given to the shim for runtime allocations. |
| 2402 |
|
| 2403 |
* `min:<size>` specifies the minimum amount of memory. Ignored if greater |
| 2404 |
than max. |
| 2405 |
* `max:<size>` specifies the maximum amount of memory. |
| 2406 |
* `<size>` specifies the exact amount of memory. Overrides both min and max. |
| 2407 |
|
| 2408 |
By default, the amount of free memory slack given to the shim for runtime usage |
| 2409 |
is 1MB. |
| 2410 |
|
| 2411 |
### smap (x86) |
| 2412 |
> `= <boolean> | hvm` |
| 2413 |
|
| 2414 |
> Default: `true` unless running in pv-shim mode on AMD or Hygon hardware |
| 2415 |
|
| 2416 |
Flag to enable Supervisor Mode Access Prevention |
| 2417 |
Use `smap=hvm` to allow SMAP use by HVM guests only. |
| 2418 |
|
| 2419 |
In PV shim mode on AMD or Hygon hardware due to significant performance impact |
| 2420 |
in some cases and generally lower security risk the option defaults to false. |
| 2421 |
|
| 2422 |
### smep (x86) |
| 2423 |
> `= <boolean> | hvm` |
| 2424 |
|
| 2425 |
> Default: `true` unless running in pv-shim mode on AMD or Hygon hardware |
| 2426 |
|
| 2427 |
Flag to enable Supervisor Mode Execution Protection |
| 2428 |
Use `smep=hvm` to allow SMEP use by HVM guests only. |
| 2429 |
|
| 2430 |
In PV shim mode on AMD or Hygon hardware due to significant performance impact |
| 2431 |
in some cases and generally lower security risk the option defaults to false. |
| 2432 |
|
| 2433 |
### smt (x86) |
| 2434 |
> `= <boolean>` |
| 2435 |
|
| 2436 |
Default: `true` |
| 2437 |
|
| 2438 |
Control bring up of multiple hyper-threads per CPU core. |
| 2439 |
|
| 2440 |
### snb_igd_quirk |
| 2441 |
> `= <boolean> | cap | <integer>` |
| 2442 |
|
| 2443 |
A true boolean value enables legacy behavior (1s timeout), while `cap` |
| 2444 |
enforces the maximum theoretically necessary timeout of 670ms. Any number |
| 2445 |
is being interpreted as a custom timeout in milliseconds. Zero or boolean |
| 2446 |
false disable the quirk workaround, which is also the default. |
| 2447 |
|
| 2448 |
### spec-ctrl (Arm) |
| 2449 |
> `= List of [ ssbd=force-disable|runtime|force-enable ]` |
| 2450 |
|
| 2451 |
Controls for speculative execution sidechannel mitigations. |
| 2452 |
|
| 2453 |
The option `ssbd=` is used to control the state of Speculative Store |
| 2454 |
Bypass Disable (SSBD) mitigation. |
| 2455 |
|
| 2456 |
* `ssbd=force-disable` will keep the mitigation permanently off. The guest |
| 2457 |
will not be able to control the state of the mitigation. |
| 2458 |
* `ssbd=runtime` will always turn on the mitigation when running in the |
| 2459 |
hypervisor context. The guest will be to turn on/off the mitigation for |
| 2460 |
itself by using the firmware interface `ARCH_WORKAROUND_2`. |
| 2461 |
* `ssbd=force-enable` will keep the mitigation permanently on. The guest will |
| 2462 |
not be able to control the state of the mitigation. |
| 2463 |
|
| 2464 |
By default SSBD will be mitigated at runtime (i.e `ssbd=runtime`). |
| 2465 |
|
| 2466 |
### spec-ctrl (x86) |
| 2467 |
> `= List of [ <bool>, xen=<bool>, {pv,hvm}=<bool>, |
| 2468 |
> {msr-sc,rsb,verw,{ibpb,bhb}-entry}=<bool>|{pv,hvm}=<bool>, |
| 2469 |
> bti-thunk=retpoline|lfence|jmp,bhb-seq=short|tsx|long, |
| 2470 |
> {ibrs,ibpb,ssbd,psfd, |
| 2471 |
> eager-fpu,l1d-flush,branch-harden,srb-lock, |
| 2472 |
> unpriv-mmio,gds-mit,div-scrub,lock-harden, |
| 2473 |
> bhi-dis-s,bp-spec-reduce,ibpb-alt}=<bool> ]` |
| 2474 |
|
| 2475 |
Controls for speculative execution sidechannel mitigations. By default, Xen |
| 2476 |
will pick the most appropriate mitigations based on compiled in support, |
| 2477 |
loaded microcode, and hardware details, and will virtualise appropriate |
| 2478 |
mitigations for guests to use. |
| 2479 |
|
| 2480 |
**WARNING: Any use of this option may interfere with heuristics. Use with |
| 2481 |
extreme care.** |
| 2482 |
|
| 2483 |
An overall boolean value, `spec-ctrl=no`, can be specified to turn off all |
| 2484 |
mitigations, including pieces of infrastructure used to virtualise certain |
| 2485 |
mitigation features for guests. This also includes settings which `xpti`, |
| 2486 |
`smt`, `pv-l1tf`, `tsx` control, unless the respective option(s) have been |
| 2487 |
specified earlier on the command line. |
| 2488 |
|
| 2489 |
Alternatively, a slightly more restricted `spec-ctrl=no-xen` can be used to |
| 2490 |
turn off all of Xen's mitigations, while leaving the virtualisation support |
| 2491 |
in place for guests to use. |
| 2492 |
|
| 2493 |
Use of a positive boolean value for either of these options is invalid. |
| 2494 |
|
| 2495 |
The `pv=`, `hvm=`, `msr-sc=`, `rsb=`, `verw=`, `ibpb-entry=` and `bhb-entry=` |
| 2496 |
options offer fine grained control over the primitives by Xen. These impact |
| 2497 |
Xen's ability to protect itself, and/or Xen's ability to virtualise support |
| 2498 |
for guests to use. |
| 2499 |
|
| 2500 |
* `pv=` and `hvm=` offer control over all suboptions for PV and HVM guests |
| 2501 |
respectively. |
| 2502 |
* Each other option can be used either as a plain boolean |
| 2503 |
(e.g. `spec-ctrl=rsb` to control both the PV and HVM sub-options), or with |
| 2504 |
`pv=` or `hvm=` subsuboptions (e.g. `spec-ctrl=rsb=no-hvm` to disable HVM |
| 2505 |
RSB only). |
| 2506 |
|
| 2507 |
* `msr-sc=` offers control over Xen's support for manipulating `MSR_SPEC_CTRL` |
| 2508 |
on entry and exit. These blocks are necessary to virtualise support for |
| 2509 |
guests and if disabled, guests will be unable to use IBRS/STIBP/SSBD/etc. |
| 2510 |
* `rsb=` offers control over whether to overwrite the Return Stack Buffer / |
| 2511 |
Return Address Stack on entry to Xen and on idle. |
| 2512 |
* `verw=` offers control over whether to use VERW for its scrubbing side |
| 2513 |
effects at appropriate privilege transitions. The exact side effects are |
| 2514 |
microarchitecture and microcode specific. *Note: `md-clear=` is accepted as |
| 2515 |
a deprecated alias. For compatibility with development versions of XSA-297, |
| 2516 |
`mds=` is also accepted on Xen 4.12 and earlier as an alias. Consult vendor |
| 2517 |
documentation in preference to here.* |
| 2518 |
* `ibpb-entry=` offers control over whether IBPB (Indirect Branch Prediction |
| 2519 |
Barrier) is used on entry to Xen. This is used by default on hardware |
| 2520 |
vulnerable to Branch Type Confusion, and hardware vulnerable to Speculative |
| 2521 |
Return Stack Overflow if appropriate microcode has been loaded, but for |
| 2522 |
performance reasons dom0 is unprotected by default. If it is necessary to |
| 2523 |
protect dom0 too, boot with `spec-ctrl=ibpb-entry`. |
| 2524 |
* `bhb-entry=` offers control over whether BHB-clearing (Branch History |
| 2525 |
Buffer) sequences are used on entry to Xen. This is used by default on |
| 2526 |
hardware vulnerable to Branch History Injection, when the BHI_DIS_S control |
| 2527 |
is not available (see `bhi-dis-s`). The choice of scrubbing sequence can be |
| 2528 |
selected using the `bhb-seq=` option. If it is necessary to protect dom0 |
| 2529 |
too, boot with `spec-ctrl=bhb-entry`. |
| 2530 |
|
| 2531 |
If Xen was compiled with `CONFIG_INDIRECT_THUNK` support, `bti-thunk=` can be |
| 2532 |
used to select which of the thunks gets patched into the |
| 2533 |
`__x86_indirect_thunk_%reg` locations. The default thunk is `retpoline` |
| 2534 |
(generally preferred), with the alternatives being `jmp` (a `jmp *%reg` gadget, |
| 2535 |
minimal overhead), and `lfence` (an `lfence; jmp *%reg` gadget). |
| 2536 |
|
| 2537 |
On all hardware, `bhb-seq=` can be used to select which of the BHB-clearing |
| 2538 |
sequences gets used. This interacts with the `bhb-entry=` and `bhi-dis-s=` |
| 2539 |
options in order to mitigate Branch History Injection on affected hardware. |
| 2540 |
The default sequence is `short`, with `tsx` as an alternative available |
| 2541 |
capable hardware, and `long` that can be opted in to. |
| 2542 |
|
| 2543 |
On hardware supporting IBRS (Indirect Branch Restricted Speculation), the |
| 2544 |
`ibrs=` option can be used to force or prevent Xen using the feature itself. |
| 2545 |
If Xen is not using IBRS itself, functionality is still set up so IBRS can be |
| 2546 |
virtualised for guests. |
| 2547 |
|
| 2548 |
On hardware supporting STIBP (Single Thread Indirect Branch Predictors), the |
| 2549 |
`stibp=` option can be used to force or prevent Xen using the feature itself. |
| 2550 |
By default, Xen will use STIBP when IBRS is in use (IBRS implies STIBP), and |
| 2551 |
when hardware hints recommend using it as a blanket setting. |
| 2552 |
|
| 2553 |
On hardware supporting SSBD (Speculative Store Bypass Disable), the `ssbd=` |
| 2554 |
option can be used to force or prevent Xen using the feature itself. The |
| 2555 |
feature is virtualised for guests, independently of Xen's choice of setting. |
| 2556 |
On AMD hardware, disabling Xen SSBD usage on the command line (`ssbd=0` which |
| 2557 |
is the default value) can lead to Xen running with the guest SSBD selection |
| 2558 |
depending on hardware support, on the same hardware setting `ssbd=1` will |
| 2559 |
result in SSBD always being enabled, regardless of guest choice. |
| 2560 |
|
| 2561 |
On hardware supporting PSFD (Predictive Store Forwarding Disable), the `psfd=` |
| 2562 |
option can be used to force or prevent Xen using the feature itself. By |
| 2563 |
default, Xen will not use PSFD. PSFD is implied by SSBD, and SSBD is off by |
| 2564 |
default. |
| 2565 |
|
| 2566 |
On hardware supporting BHI_DIS_S (Branch History Injection Disable |
| 2567 |
Supervisor), the `bhi-dis-s=` option can be used to force or prevent Xen using |
| 2568 |
the feature itself. By default Xen will use BHI_DIS_S on hardware susceptible |
| 2569 |
to Branch History Injection. |
| 2570 |
|
| 2571 |
On hardware supporting IBPB (Indirect Branch Prediction Barrier), the `ibpb=` |
| 2572 |
option can be used to force (the default) or prevent Xen from issuing branch |
| 2573 |
prediction barriers on vcpu context switches. |
| 2574 |
|
| 2575 |
On all hardware, the `eager-fpu=` option can be used to force or prevent Xen |
| 2576 |
from using fully eager FPU context switches. This is currently implemented as |
| 2577 |
a global control. By default, Xen will choose to use fully eager context |
| 2578 |
switches on hardware believed to speculate past #NM exceptions. |
| 2579 |
|
| 2580 |
On hardware supporting L1D_FLUSH, the `l1d-flush=` option can be used to force |
| 2581 |
or prevent Xen from issuing an L1 data cache flush on each VMEntry. |
| 2582 |
Irrespective of Xen's setting, the feature is virtualised for HVM guests to |
| 2583 |
use. By default, Xen will enable this mitigation on hardware believed to be |
| 2584 |
vulnerable to L1TF. |
| 2585 |
|
| 2586 |
If Xen is compiled with `CONFIG_SPECULATIVE_HARDEN_BRANCH`, the |
| 2587 |
`branch-harden=` boolean can be used to force or prevent Xen from using |
| 2588 |
speculation barriers to protect selected conditional branches. By default, |
| 2589 |
Xen will enable this mitigation. |
| 2590 |
|
| 2591 |
On hardware supporting SRBDS_CTRL, the `srb-lock=` option can be used to force |
| 2592 |
or prevent Xen from protect the Special Register Buffer from leaking stale |
| 2593 |
data. By default, Xen will enable this mitigation, except on parts where MDS |
| 2594 |
is fixed and TAA is fixed/mitigated and there are no unprivileged MMIO |
| 2595 |
mappings (in which case, there is believed to be no way for an attacker to |
| 2596 |
obtain stale data). |
| 2597 |
|
| 2598 |
The `unpriv-mmio=` boolean indicates whether the system has (or will have) |
| 2599 |
less than fully privileged domains granted access to MMIO devices. By |
| 2600 |
default, this option is disabled. If enabled, Xen will use the `FB_CLEAR` |
| 2601 |
and/or `SRBDS_CTRL` functionality available in the Intel May 2022 microcode |
| 2602 |
release to mitigate cross-domain leakage of data via the MMIO Stale Data |
| 2603 |
vulnerabilities. |
| 2604 |
|
| 2605 |
On all hardware, the `gds-mit=` option can be used to force or prevent Xen |
| 2606 |
from mitigating the GDS (Gather Data Sampling) vulnerability. By default, Xen |
| 2607 |
will mitigate GDS on hardware believed to be vulnerable. On hardware |
| 2608 |
supporting GDS_CTRL (requires the August 2023 microcode), and where firmware |
| 2609 |
has elected not to lock the configuration, Xen will use GDS_CTRL to mitigate |
| 2610 |
GDS with. Otherwise, Xen will mitigate by disabling AVX, which blocks the use |
| 2611 |
of the AVX2 Gather instructions. |
| 2612 |
|
| 2613 |
On all hardware, the `div-scrub=` option can be used to force or prevent Xen |
| 2614 |
from mitigating the DIV-leakage vulnerability. By default, Xen will mitigate |
| 2615 |
DIV-leakage on hardware believed to be vulnerable. |
| 2616 |
|
| 2617 |
If Xen is compiled with `CONFIG_SPECULATIVE_HARDEN_LOCK`, the `lock-harden=` |
| 2618 |
boolean can be used to force or prevent Xen from using speculation barriers to |
| 2619 |
protect lock critical regions. This mitigation won't be engaged by default, |
| 2620 |
and needs to be explicitly enabled on the command line. |
| 2621 |
|
| 2622 |
On hardware supporting SRSO_MSR_FIX, the `bp-spec-reduce=` option can be used |
| 2623 |
to force or prevent Xen from using MSR_BP_CFG.BP_SPEC_REDUCE to mitigate the |
| 2624 |
SRSO (Speculative Return Stack Overflow) vulnerability. Xen will use |
| 2625 |
bp-spec-reduce when available, as it is preferable to using `ibpb-entry=hvm` |
| 2626 |
to mitigate SRSO for HVM guests, and because it is a prerequisite to advertise |
| 2627 |
SRSO_U/S_NO to PV guests. |
| 2628 |
|
| 2629 |
On Sappire and Emerald Rapids CPUs with May 2025 microcode or later, the |
| 2630 |
`ibpb-alt=` option can be used to switch to the alternative mitigation for |
| 2631 |
Intel SA-00982. Intel suggest that some workloads will benefit from this. |
| 2632 |
|
| 2633 |
### sync_console |
| 2634 |
> `= <boolean>` |
| 2635 |
|
| 2636 |
> Default: `false` |
| 2637 |
|
| 2638 |
Flag to force synchronous console output. Useful for debugging, but |
| 2639 |
not suitable for production environments due to incurred overhead. |
| 2640 |
|
| 2641 |
### tboot (x86) |
| 2642 |
> `= 0x<phys_addr>` |
| 2643 |
|
| 2644 |
Specify the physical address of the trusted boot shared page. |
| 2645 |
|
| 2646 |
### tbuf_size |
| 2647 |
> `= <integer>` |
| 2648 |
|
| 2649 |
Specify the per-cpu trace buffer size in pages. |
| 2650 |
|
| 2651 |
### tdt (x86) |
| 2652 |
> `= <boolean>` |
| 2653 |
|
| 2654 |
> Default: `true` |
| 2655 |
|
| 2656 |
Flag to enable TSC deadline as the APIC timer mode. |
| 2657 |
|
| 2658 |
### tevt_mask |
| 2659 |
> `= <integer>` |
| 2660 |
|
| 2661 |
Specify a mask for Xen event tracing. This allows Xen tracing to be |
| 2662 |
enabled at boot. Refer to the xentrace(8) documentation for a list of |
| 2663 |
valid event mask values. In order to enable tracing, a buffer size (in |
| 2664 |
pages) must also be specified via the tbuf_size parameter. |
| 2665 |
|
| 2666 |
### tickle_one_idle_cpu |
| 2667 |
> `= <boolean>` |
| 2668 |
|
| 2669 |
### timer_slop |
| 2670 |
> `= <integer>` |
| 2671 |
|
| 2672 |
### tsc (x86) |
| 2673 |
> `= unstable | skewed | stable:socket` |
| 2674 |
|
| 2675 |
### tsx |
| 2676 |
= <bool> |
| 2677 |
|
| 2678 |
Applicability: x86 with CONFIG_INTEL active |
| 2679 |
Default: false on parts vulnerable to TAA, true otherwise |
| 2680 |
|
| 2681 |
Controls for the use of Transactional Synchronization eXtensions. |
| 2682 |
|
| 2683 |
Several microcode updates are relevant: |
| 2684 |
|
| 2685 |
* March 2019, fixing the TSX memory ordering errata on all TSX-enabled CPUs |
| 2686 |
to date. Introduced MSR_TSX_FORCE_ABORT on SKL/SKX/KBL/WHL/CFL parts. The |
| 2687 |
errata workaround uses Performance Counter 3, so the user can select |
| 2688 |
between working TSX and working perfcounters. |
| 2689 |
|
| 2690 |
* November 2019, fixing the TSX Async Abort speculative vulnerability. |
| 2691 |
Introduced MSR_TSX_CTRL on all TSX-enabled MDS_NO parts to date, |
| 2692 |
CLX/WHL-R/CFL-R, with the controls becoming architectural moving forward |
| 2693 |
and formally retiring HLE from the architecture. The user can disable TSX |
| 2694 |
to mitigate TAA, and elect to hide the HLE/RTM CPUID bits. Also causes |
| 2695 |
VERW to once-again flush the microarchiectural buffers in case a TAA |
| 2696 |
mitigation is wanted along with TSX being enabled. |
| 2697 |
|
| 2698 |
* June 2021, removing the workaround for March 2019 on client CPUs and |
| 2699 |
formally de-featured TSX on SKL/KBL/WHL/CFL (Note: SKX still retains the |
| 2700 |
March 2019 fix). Introduced the ability to hide the HLE/RTM CPUID bits. |
| 2701 |
PCR3 works fine, and TSX is disabled by default, but the user can re-enable |
| 2702 |
TSX at their own risk, accepting that the memory order erratum is unfixed. |
| 2703 |
|
| 2704 |
* February 2022, removing the VERW flushing workaround from November 2019 on |
| 2705 |
client CPUs and formally de-featuring TSX on WHL-R/CFL-R (Note: CLX still |
| 2706 |
retains the VERW flushing workaround). TSX defaults to disabled, and is |
| 2707 |
locked off when SGX is enabled in the BIOS. When SGX is not enabled, TSX |
| 2708 |
can be re-enabled at the users own risk, as it reintroduces the TSX Async |
| 2709 |
Abort speculative vulnerability. |
| 2710 |
|
| 2711 |
On systems with the ability to configure TSX, this boolean offers system wide |
| 2712 |
control of whether TSX is enabled or disabled. |
| 2713 |
|
| 2714 |
When TSX is disabled, transactions unconditionally abort. This is compatible |
| 2715 |
with the TSX spec, which requires software to have a non-transactional path as |
| 2716 |
a fallback. The RTM and HLE CPUID bits are hidden from VMs by default, but |
| 2717 |
can be re-enabled if required. This allows VMs which previously saw RTM/HLE |
| 2718 |
to be migrated in, although any TSX-enabled software will run with reduced |
| 2719 |
performance. |
| 2720 |
|
| 2721 |
* When TSX is locked off by firmware, `tsx=` is ignored and treated as |
| 2722 |
`false`. |
| 2723 |
|
| 2724 |
* An explicit `tsx=` choice is honoured, even if it is `true` and would |
| 2725 |
result in a vulnerable system. |
| 2726 |
|
| 2727 |
* When no explicit `tsx=` choice is given, parts vulnerable to TAA will be |
| 2728 |
mitigated by disabling TSX, as this is the lowest overhead option. |
| 2729 |
|
| 2730 |
* When no explicit `tsx=` option is given, parts susceptible to the memory |
| 2731 |
ordering errata default to `true` to enable working TSX. Alternatively, |
| 2732 |
selecting `tsx=0` will disable TSX and restore PCR3 to a working state. |
| 2733 |
|
| 2734 |
SKX and SKL/KBL/WHL/CFL on pre-June 2021 microcode default to `true`. |
| 2735 |
Alternatively, selecting `tsx=0` will disable TSX and restore PCR3 to a |
| 2736 |
working state. |
| 2737 |
|
| 2738 |
SKL/KBL/WHL/CFL on the June 2021 microcode or later default to `false`. |
| 2739 |
Alternatively, selecting `tsx=1` will re-enable TSX at the users own risk. |
| 2740 |
|
| 2741 |
### ucode |
| 2742 |
> `= List of [ <integer> | scan=<bool>, nmi=<bool>, digest-check=<bool> ]` |
| 2743 |
|
| 2744 |
Applicability: x86 |
| 2745 |
Default: `nmi,digest-check` |
| 2746 |
|
| 2747 |
Controls for CPU microcode loading. For early loading, this parameter can |
| 2748 |
specify how and where to find the microcode update blob. For late loading, |
| 2749 |
this parameter specifies if the update happens within a NMI handler. |
| 2750 |
|
| 2751 |
'integer' specifies the CPU microcode update blob module index. When positive, |
| 2752 |
this specifies the n-th module (in the GrUB entry, zero based) to be used |
| 2753 |
for updating CPU micrcode. When negative, counting starts at the end of |
| 2754 |
the modules in the GrUB entry (so with the blob commonly being last, |
| 2755 |
one could specify `ucode=-1`). Note that the value of zero is not valid |
| 2756 |
here (entry zero, i.e. the first module, is always the Dom0 kernel |
| 2757 |
image). Note further that use of this option has an unspecified effect |
| 2758 |
when used with xen.efi (there the concept of modules doesn't exist, and |
| 2759 |
the blob gets specified via the `ucode=<filename>` config file/section |
| 2760 |
entry; see [EFI configuration file description](efi.html)). |
| 2761 |
|
| 2762 |
'scan' instructs the hypervisor to scan the multiboot images for an cpio |
| 2763 |
image that contains microcode. Depending on the platform the blob with the |
| 2764 |
microcode in the cpio name space must be: |
| 2765 |
- on Intel: kernel/x86/microcode/GenuineIntel.bin |
| 2766 |
- on AMD : kernel/x86/microcode/AuthenticAMD.bin |
| 2767 |
When using xen.efi, the `ucode=<filename>` config file setting takes |
| 2768 |
precedence over `scan`. |
| 2769 |
|
| 2770 |
'nmi' determines late loading is performed in NMI handler or just in |
| 2771 |
stop_machine context. In NMI handler, even NMIs are blocked, which is |
| 2772 |
considered safer. The default value is `true`. |
| 2773 |
|
| 2774 |
The `digest-check=` option is active by default and controls whether to |
| 2775 |
perform additional authenticity checks. The Entrysign vulnerability (AMD |
| 2776 |
SB-7033, CVE-2024-36347) on Zen1-5 processors allows forging the signature on |
| 2777 |
arbitrary microcode such that it is accepted by the CPU. Xen contains a table |
| 2778 |
of digests of microcode patches with known-good provenance, and will block |
| 2779 |
loading of patches that do not match. |
| 2780 |
|
| 2781 |
### unrestricted_guest (Intel) |
| 2782 |
> `= <boolean>` |
| 2783 |
|
| 2784 |
### vcpu_migration_delay |
| 2785 |
> `= <integer>` |
| 2786 |
|
| 2787 |
> Default: `0` |
| 2788 |
|
| 2789 |
Specify a delay, in microseconds, between migrations of a VCPU between |
| 2790 |
PCPUs when using the credit1 scheduler. This prevents rapid fluttering |
| 2791 |
of a VCPU between CPUs, and reduces the implicit overheads such as |
| 2792 |
cache-warming. 1ms (1000) has been measured as a good value. |
| 2793 |
|
| 2794 |
### vesa-ram |
| 2795 |
> `= <integer>` |
| 2796 |
|
| 2797 |
> Default: `0` |
| 2798 |
|
| 2799 |
This allows to override the amount of video RAM, in MiB, determined to be |
| 2800 |
present. |
| 2801 |
|
| 2802 |
### vga |
| 2803 |
> `= ( ask | current | text-80x<rows> | gfx-<width>x<height>x<depth> | mode-<mode> )[,keep]` |
| 2804 |
|
| 2805 |
`ask` causes Xen to display a menu of available modes and request the |
| 2806 |
user to choose one of them. |
| 2807 |
|
| 2808 |
`current` causes Xen to use the graphics adapter in its current state, |
| 2809 |
without further setup. |
| 2810 |
|
| 2811 |
`text-80x<rows>` instructs Xen to set up text mode. Valid values for |
| 2812 |
`<rows>` are `25, 28, 30, 34, 43, 50, 80` |
| 2813 |
|
| 2814 |
`gfx-<width>x<height>x<depth>` instructs Xen to set up graphics mode |
| 2815 |
with the specified width, height and depth. |
| 2816 |
|
| 2817 |
`mode-<mode>` instructs Xen to use a specific mode, as shown with the |
| 2818 |
`ask` option. (N.B menu modes are displayed in hex, so `<mode>` |
| 2819 |
should be a hexadecimal number) |
| 2820 |
|
| 2821 |
The optional `keep` parameter causes Xen to continue using the vga |
| 2822 |
console even after dom0 has been started. The default behaviour is to |
| 2823 |
relinquish control to dom0. |
| 2824 |
|
| 2825 |
### viridian-spinlock-retry-count (x86) |
| 2826 |
> `= <integer>` |
| 2827 |
|
| 2828 |
> Default: `2047` |
| 2829 |
|
| 2830 |
Specify the maximum number of retries before an enlightened Windows |
| 2831 |
guest will notify Xen that it has failed to acquire a spinlock. |
| 2832 |
|
| 2833 |
### viridian-version (x86) |
| 2834 |
> `= [<major>],[<minor>],[<build>]` |
| 2835 |
|
| 2836 |
> Default: `6,0,0x1772` |
| 2837 |
|
| 2838 |
<major>, <minor> and <build> must be integers. The values will be |
| 2839 |
encoded in guest CPUID 0x40000002 if viridian enlightenments are enabled. |
| 2840 |
|
| 2841 |
### vm-notify-window (Intel) |
| 2842 |
> `= <integer>` |
| 2843 |
|
| 2844 |
> Default: `0` |
| 2845 |
|
| 2846 |
Specify the value of the VM Notify window used to detect locked VMs. Set to -1 |
| 2847 |
to disable the feature. Value is in units of crystal clock cycles. |
| 2848 |
|
| 2849 |
Note the hardware might add a threshold to the provided value in order to make |
| 2850 |
it safe, and hence using 0 is fine. |
| 2851 |
|
| 2852 |
### vpid (Intel) |
| 2853 |
> `= <boolean>` |
| 2854 |
|
| 2855 |
> Default: `true` |
| 2856 |
|
| 2857 |
Use Virtual Processor ID support if available. This prevents the need for TLB |
| 2858 |
flushes on VM entry and exit, increasing performance. |
| 2859 |
|
| 2860 |
### vpmu (x86) |
| 2861 |
= List of [ <bool>, bts, ipc, arch, rtm-abort=<bool> ] |
| 2862 |
|
| 2863 |
Applicability: x86. Default: false |
| 2864 |
|
| 2865 |
Controls for Performance Monitoring Unit virtualisation. |
| 2866 |
|
| 2867 |
Performance monitoring facilities tend to be very hardware specific, and |
| 2868 |
provide access to a wealth of low level processor information. |
| 2869 |
|
| 2870 |
* An overall boolean can be used to enable or disable vPMU support. vPMU is |
| 2871 |
disabled by default. |
| 2872 |
|
| 2873 |
When enabled, guests have full access to all performance counter settings, |
| 2874 |
including model specific functionality. This is a superset of the |
| 2875 |
functionality offered by `ipc` and/or `arch`, but a subset of the |
| 2876 |
functionality offered by `bts`. |
| 2877 |
|
| 2878 |
Xen's watchdog functionality is implemented using performance counters. |
| 2879 |
As a result, use of the **watchdog** option will override and disable |
| 2880 |
vPMU. |
| 2881 |
|
| 2882 |
* The `bts` option enables performance monitoring, and permits additional |
| 2883 |
access to the Branch Trace Store controls. BTS is an Intel feature where |
| 2884 |
the processor can write data into a buffer whenever a branch occurs. |
| 2885 |
However, as this feature isn't virtualised, a misconfiguration by the |
| 2886 |
guest can lock the entire system up. |
| 2887 |
|
| 2888 |
* The `ipc` option allows access to the most minimal set of counters |
| 2889 |
possible: instructions, cycles, and reference cycles. These can be used |
| 2890 |
to calculate instructions per cycle (IPC). |
| 2891 |
|
| 2892 |
* The `arch` option allows access to the pre-defined architectural events. |
| 2893 |
|
| 2894 |
* The `rtm-abort` boolean has been superseded. Use `tsx=0` instead. |
| 2895 |
|
| 2896 |
*Warning:* |
| 2897 |
As the virtualisation is not 100% safe, don't use the vpmu flag on |
| 2898 |
production systems (see https://xenbits.xen.org/xsa/advisory-163.html)! |
| 2899 |
|
| 2900 |
### vwfi (arm) |
| 2901 |
> `= trap | native` |
| 2902 |
|
| 2903 |
> Default: `trap` |
| 2904 |
|
| 2905 |
WFI is the ARM instruction to "wait for interrupt". WFE is similar and |
| 2906 |
means "wait for event". This option, which is ARM specific, changes the |
| 2907 |
way guest WFI and WFE are implemented in Xen. By default, Xen traps both |
| 2908 |
instructions. In the case of WFI, Xen blocks the guest vcpu; in the case |
| 2909 |
of WFE, Xen yield the guest vcpu. When setting vwfi to `native`, Xen |
| 2910 |
doesn't trap either instruction, running them in guest context. Setting |
| 2911 |
vwfi to `native` reduces irq latency significantly. It can also lead to |
| 2912 |
suboptimal scheduling decisions, but only when the system is |
| 2913 |
oversubscribed (i.e., in total there are more vCPUs than pCPUs). |
| 2914 |
|
| 2915 |
### wallclock (x86) |
| 2916 |
> `= auto | xen | cmos | efi` |
| 2917 |
|
| 2918 |
> Default: `auto` |
| 2919 |
|
| 2920 |
Allow forcing the usage of a specific wallclock source. |
| 2921 |
|
| 2922 |
* `auto` let the hypervisor select the clocksource based on internal |
| 2923 |
heuristics. |
| 2924 |
|
| 2925 |
* `xen` force usage of the Xen shared_info wallclock when booted as a Xen |
| 2926 |
guest. This option is only available if the hypervisor was compiled with |
| 2927 |
`CONFIG_XEN_GUEST` enabled. |
| 2928 |
|
| 2929 |
* `cmos` force usage of the CMOS RTC wallclock. |
| 2930 |
|
| 2931 |
* `efi` force usage of the EFI_GET_TIME run-time method when booted from EFI |
| 2932 |
firmware. |
| 2933 |
|
| 2934 |
If the selected option is invalid or not available Xen will default to `auto`. |
| 2935 |
|
| 2936 |
### watchdog (x86) |
| 2937 |
> `= force | <boolean>` |
| 2938 |
|
| 2939 |
> Default: `false` |
| 2940 |
|
| 2941 |
Run an NMI watchdog on each processor. If a processor is stuck for |
| 2942 |
longer than the **watchdog_timeout**, a panic occurs. When `force` is |
| 2943 |
specified, in addition to running an NMI watchdog on each processor, |
| 2944 |
unknown NMIs will still be processed. |
| 2945 |
|
| 2946 |
### watchdog_timeout (x86) |
| 2947 |
> `= <integer>` |
| 2948 |
|
| 2949 |
> Default: `5` |
| 2950 |
|
| 2951 |
Set the NMI watchdog timeout in seconds. Specifying `0` will turn off |
| 2952 |
the watchdog. |
| 2953 |
|
| 2954 |
### x2apic (x86) |
| 2955 |
> `= <boolean>` |
| 2956 |
|
| 2957 |
> Default: `true` |
| 2958 |
|
| 2959 |
Permit use of x2apic setup for SMP environments. |
| 2960 |
|
| 2961 |
### x2apic-mode (x86) |
| 2962 |
> `= physical | mixed` |
| 2963 |
|
| 2964 |
> Default: `physical` if **FADT** mandates physical mode, otherwise set at |
| 2965 |
> build time by CONFIG_X2APIC_{PHYSICAL,MIXED}. |
| 2966 |
|
| 2967 |
In the case that x2apic is in use, this option switches between modes to |
| 2968 |
address APICs in the system as interrupt destinations. |
| 2969 |
|
| 2970 |
### x2apic_phys (x86) |
| 2971 |
> `= <boolean>` |
| 2972 |
|
| 2973 |
> Default: `true` if **FADT** mandates physical mode or if interrupt remapping |
| 2974 |
> is not available, `false` otherwise. |
| 2975 |
|
| 2976 |
In the case that x2apic is in use, this option switches between physical and |
| 2977 |
clustered mode. The default, given no hint from the **FADT**, is cluster |
| 2978 |
mode. |
| 2979 |
|
| 2980 |
**WARNING: `x2apic_phys` is deprecated and superseded by `x2apic-mode`. |
| 2981 |
The latter takes precedence if both are set.** |
| 2982 |
|
| 2983 |
### xen-llc-colors (arm64) |
| 2984 |
> `= List of [ <integer> | <integer>-<integer> ]` |
| 2985 |
|
| 2986 |
> Default: `0: the lowermost color` |
| 2987 |
|
| 2988 |
Specify Xen LLC color configuration. This options is available only when |
| 2989 |
`CONFIG_LLC_COLORING` is enabled. |
| 2990 |
Two colors are most likely needed on platforms where private caches are |
| 2991 |
physically indexed, e.g. the L1 instruction cache of the Arm Cortex-A57. |
| 2992 |
|
| 2993 |
### xenheap_megabytes (arm32) |
| 2994 |
> `= <size>` |
| 2995 |
|
| 2996 |
> Default: `0` (1/32 of RAM) |
| 2997 |
|
| 2998 |
Amount of RAM to set aside for the Xenheap. Must be an integer multiple of 32. |
| 2999 |
|
| 3000 |
By default will use 1/32 of the RAM up to a maximum of 1GB and with a |
| 3001 |
minimum of 32M, subject to a suitably aligned and sized contiguous |
| 3002 |
region of memory being available. |
| 3003 |
|
| 3004 |
### xpti (x86) |
| 3005 |
> `= List of [ default | <boolean> | dom0=<bool> | domu=<bool> ]` |
| 3006 |
|
| 3007 |
> Default: `false` on hardware known not to be vulnerable to Meltdown (e.g. AMD) |
| 3008 |
> Default: `true` everywhere else |
| 3009 |
|
| 3010 |
Override default selection of whether to isolate 64-bit PV guest page |
| 3011 |
tables. |
| 3012 |
|
| 3013 |
`true` activates page table isolation even on hardware not vulnerable by |
| 3014 |
Meltdown for all domains. |
| 3015 |
|
| 3016 |
`false` deactivates page table isolation on all systems for all domains. |
| 3017 |
|
| 3018 |
`default` sets the default behaviour. |
| 3019 |
|
| 3020 |
With `dom0` and `domu` it is possible to control page table isolation |
| 3021 |
for dom0 or guest domains only. |
| 3022 |
|
| 3023 |
### xsave (x86) |
| 3024 |
> `= <boolean>` |
| 3025 |
|
| 3026 |
> Default: `true` |
| 3027 |
|
| 3028 |
Permit use of the `xsave/xrstor` instructions. |
| 3029 |
|
| 3030 |
### xsm |
| 3031 |
> `= dummy | flask | silo` |
| 3032 |
|
| 3033 |
> Default: selectable via Kconfig. Depends on enabled XSM modules. |
| 3034 |
|
| 3035 |
Specify which XSM module should be enabled. This option is only available if |
| 3036 |
the hypervisor was compiled with `CONFIG_XSM` enabled. |
| 3037 |
|
| 3038 |
* `dummy`: this is the default choice. Basic restriction for common deployment |
| 3039 |
(the dummy module) will be applied. It's also used when XSM is compiled out. |
| 3040 |
* `flask`: this is the policy based access control. To choose this, the |
| 3041 |
separated option in kconfig must also be enabled. |
| 3042 |
* `silo`: this will deny any unmediated communication channels between |
| 3043 |
unprivileged VMs. To choose this, the separated option in kconfig must also |
| 3044 |
be enabled. |