cmdline: document "extra_guest_irqs" upper bound
PATCH 1/1 cmdline: document "extra_guest_irqs" upper bound
PHYSDEVOP_pirq_eoi_gmfn_v<N> accepting just a single GFN implies that no more than 32k pIRQ-s can be used by a domain. Document this upper bound.
---
I was uncertain about also introducing a bounds check in code: We don't check for bogus / abusive values elsewhere either.
docs/misc/xen-command-line.pandoc +2 -1
@@ -1130,7 +1130,8 @@ common for all domUs, while the optional is for dom0. Changing the setting for domU has no impact on dom0 and vice versa. For example to change dom0 without changing domU, use `extra_guest_irqs=,512`. The default value for Dom0 and an eventual separate -hardware domain is architecture dependent. +hardware domain is architecture dependent. The upper limit for both values is +32768. Note that specifying zero as domU value means zero, while for dom0 it means to use the default.
Quoted 4 lines · Jan Beulich
PHYSDEVOP_pirq_eoi_gmfn_v<N> accepting just a single GFN implies that no more than 32k pIRQ-s can be used by a domain. Document this upper bound.
Signed-off-by Jan Beulich <[email protected]>
Quoted 3 lines
---
I was uncertain about also introducing a bounds check in code: We don't check for bogus / abusive values elsewhere either.
Normally not, but in this case I suspect it's worth it. Without a bounds check, don't we risk wandering off the page?
Quoted 7 lines · Andrew Cooper
Quoted 4 lines · Jan Beulich
PHYSDEVOP_pirq_eoi_gmfn_v<N> accepting just a single GFN implies that no more than 32k pIRQ-s can be used by a domain. Document this upper bound.
Signed-off-by Jan Beulich <[email protected]>Acked-by Andrew Cooper <[email protected]>
Thanks, but because of the below I guess I'll make a v2.
Quoted 6 lines
Quoted 3 lines
---
I was uncertain about also introducing a bounds check in code: We don't check for bogus / abusive values elsewhere either.Normally not, but in this case I suspect it's worth it. Without a bounds check, don't we risk wandering off the page?
Indeed we do; in debug builds we hit assertions.
Jan