docs: Fix IOMMU command line docs some more
PATCH 1/1 docs: Fix IOMMU command line docs some more
Make the command line docs match the actual implementation, and state that the default behaviour is selected at compile time.
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Henry Wang <[email protected]>
--- docs/misc/xen-command-line.pandoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
docs/misc/xen-command-line.pandoc +4 -2
@@ -1480,7 +1480,8 @@ detection of systems known to misbehave upon accesses to that port. > Default: `new` unless directed-EOI is supported ### iommu - = List of [ <bool>, verbose, debug, force, required, quarantine[=scratch-page], + = List of [ <bool>, verbose, debug, force, required, + quarantine=<bool>|scratch-page, sharept, superpages, intremap, intpost, crash-disable, snoop, qinval, igfx, amd-iommu-perdev-intremap, dom0-{passthrough,strict} ]
@@ -1519,7 +1520,8 @@ boolean (e.g. `iommu=no`) can override this and leave the IOMMUs disabled. successfully. * The `quarantine` option can be used to control Xen's behavior when - de-assigning devices from guests. + de-assigning devices from guests. The default behaviour is chosen at + compile time, and is one of `CONFIG_IOMMU_QUARANTINE_{NONE,BASIC,SCRATCH_PAGE}`. When a PCI device is assigned to an untrusted domain, it is possible for that domain to program the device to DMA to an arbitrary address.
base-commit: 9659b2a6d73b14620e187f9c626a09323853c459
Signature · 1 line
2.30.2
Quoted 20 lines · Andrew Cooper
Make the command line docs match the actual implementation, and state that the default behaviour is selected at compile time.
Fixes 980d6acf1517 ("IOMMU: make DMA containment of quarantined devices optional")Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Henry Wang <[email protected]>--- docs/misc/xen-command-line.pandoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)docs/misc/xen-command-line.pandoc +0
-0
docs/misc/xen-command-line.pandoc detection of systems known to misbehave upon accesses to that port. · line 1484
Quoted 6 lines
docs/misc/xen-command-line.pandoc +2
-1@@ -1480,7 +1480,8 @@ detection of systems known to misbehave upon accesses to that port. > Default: `new` unless directed-EOI is supported ### iommu - = List of [ <bool>, verbose, debug, force, required, quarantine[=scratch-page], + = List of [ <bool>, verbose, debug, force, required, + quarantine=<bool>|scratch-page,
I think this should be quarantine=[<bool>|scratch-page], as just using iommu=quarantine is a valid syntax and will enable basic quarantine.
IOW: the bool or scratch-page parameters are optional.
docs/misc/xen-command-line.pandoc boolean (e.g. `iommu=no`) can override this and leave the IOMMUs disabled. · line 1524
Quoted 10 lines
docs/misc/xen-command-line.pandoc +2
-1sharept, superpages, intremap, intpost, crash-disable, snoop, qinval, igfx, amd-iommu-perdev-intremap, dom0-{passthrough,strict} ]@@ -1519,7 +1520,8 @@ boolean (e.g. `iommu=no`) can override this and leave the IOMMUs disabled. successfully. * The `quarantine` option can be used to control Xen's behavior when - de-assigning devices from guests. + de-assigning devices from guests. The default behaviour is chosen at + compile time, and is one of `CONFIG_IOMMU_QUARANTINE_{NONE,BASIC,SCRATCH_PAGE}`.
Do we also want to state that the current build time default is BASIC if the user hasn't selected otherwise?
It's kind of problematic though, as distros might select a different build time default and then the documentation would be out of sync.
Thanks, Roger.
Quoted 23 lines · Roger Pau Monné
Quoted 22 lines · Andrew Cooper
Make the command line docs match the actual implementation, and state that the default behaviour is selected at compile time.
Fixes 980d6acf1517 ("IOMMU: make DMA containment of quarantined devices optional")Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Henry Wang <[email protected]>--- docs/misc/xen-command-line.pandoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)docs/misc/xen-command-line.pandoc +0
-0@@ -1480,7 +1480,8 @@ detection of systems known to misbehave upon accesses to that port. > Default: `new` unless directed-EOI is supported
Quoted 7 lines
docs/misc/xen-command-line.pandoc detection of systems known to misbehave upon accesses to that port. · line 1484
Quoted 4 lines
docs/misc/xen-command-line.pandoc +2
-1### iommu - = List of [ <bool>, verbose, debug, force, required, quarantine[=scratch-page], + = List of [ <bool>, verbose, debug, force, required, + quarantine=<bool>|scratch-page,I think this should be quarantine=[<bool>|scratch-page], as just using iommu=quarantine is a valid syntax and will enable basic quarantine.
IOW: the bool or scratch-page parameters are optional.
=<bool> already has that meaning, and this is the form we use elsewhere.
Quoted 7 lines
Quoted 7 lines
docs/misc/xen-command-line.pandoc +0
-0sharept, superpages, intremap, intpost, crash-disable, snoop, qinval, igfx, amd-iommu-perdev-intremap, dom0-{passthrough,strict} ]@@ -1519,7 +1520,8 @@ boolean (e.g. `iommu=no`) can override this and leave the IOMMUs disabled. successfully.
Quoted 6 lines
docs/misc/xen-command-line.pandoc boolean (e.g. `iommu=no`) can override this and leave the IOMMUs disabled. · line 1524
Quoted 4 lines
docs/misc/xen-command-line.pandoc +2
-1* The `quarantine` option can be used to control Xen's behavior when - de-assigning devices from guests. + de-assigning devices from guests. The default behaviour is chosen at + compile time, and is one of `CONFIG_IOMMU_QUARANTINE_{NONE,BASIC,SCRATCH_PAGE}`.Do we also want to state that the current build time default is BASIC if the user hasn't selected otherwise?
This is an instruction to look at the .config file and see which it is.
The exceptional case of someone doing a build from clean isn't particularly interesting. Not least because they will be prompted for it and given the choices.
~Andrew
Roger Pau Monné
Reviewed-byQuoted 7 lines · Andrew Cooper
Quoted 6 lines · Roger Pau Monné
Quoted 5 lines · Andrew Cooper
Make the command line docs match the actual implementation, and state that the default behaviour is selected at compile time.
Fixes 980d6acf1517 ("IOMMU: make DMA containment of quarantined devices optional")Signed-off-by Andrew Cooper <[email protected]>
Quoted 25 lines
Quoted 17 lines
Quoted 17 lines
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Henry Wang <[email protected]>--- docs/misc/xen-command-line.pandoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)docs/misc/xen-command-line.pandoc +0
-0@@ -1480,7 +1480,8 @@ detection of systems known to misbehave upon accesses to that port. > Default: `new` unless directed-EOI is supportedQuoted 7 lines
docs/misc/xen-command-line.pandoc detection of systems known to misbehave upon accesses to that port. · line 1484
Quoted 4 lines
docs/misc/xen-command-line.pandoc +2
-1### iommu - = List of [ <bool>, verbose, debug, force, required, quarantine[=scratch-page], + = List of [ <bool>, verbose, debug, force, required, + quarantine=<bool>|scratch-page,I think this should be quarantine=[<bool>|scratch-page], as just using iommu=quarantine is a valid syntax and will enable basic quarantine.
IOW: the bool or scratch-page parameters are optional.
Quoted 1 line
=<bool> already has that meaning, and this is the form we use elsewhere.
I guess I got confused by some other options using [ ] to denote optional parameters, but I see it's not used by all of them.
Thanks, Roger.
Quoted 9 lines · Roger Pau Monné
Quoted 7 lines · Andrew Cooper
Quoted 6 lines · Roger Pau Monné
Quoted 5 lines · Andrew Cooper
Make the command line docs match the actual implementation, and state that the default behaviour is selected at compile time.
Fixes 980d6acf1517 ("IOMMU: make DMA containment of quarantined devices optional")Signed-off-by Andrew Cooper <[email protected]>Reviewed-by Roger Pau Monné <[email protected]>
Thanks.
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 16 lines
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Henry Wang <[email protected]>--- docs/misc/xen-command-line.pandoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)docs/misc/xen-command-line.pandoc +0
-0docs/misc/xen-command-line.pandoc detection of systems known to misbehave upon accesses to that port. · line 1484
Quoted 6 lines
docs/misc/xen-command-line.pandoc +2
-1@@ -1480,7 +1480,8 @@ detection of systems known to misbehave upon accesses to that port. > Default: `new` unless directed-EOI is supported ### iommu - = List of [ <bool>, verbose, debug, force, required, quarantine[=scratch-page], + = List of [ <bool>, verbose, debug, force, required, + quarantine=<bool>|scratch-page,I think this should be quarantine=[<bool>|scratch-page], as just using iommu=quarantine is a valid syntax and will enable basic quarantine.
IOW: the bool or scratch-page parameters are optional.
Quoted 3 lines
Quoted 1 line
=<bool> already has that meaning, and this is the form we use elsewhere.
I guess I got confused by some other options using
[ ]to denote optional parameters, but I see it's not used by all of them.
Yeah, it's a mess, sadly. One of many things I've not had time to fix, but at least this is closer to the normal syntax than before.
~Andrew
Hi Andrew,
Quoted 7 lines · Andrew Cooper
Make the command line docs match the actual implementation, and state that the default behaviour is selected at compile time.
Fixes 980d6acf1517 ("IOMMU: make DMA containment of quarantined devices optional")Signed-off-by Andrew Cooper <[email protected]>
Kind regards,
Henry