]> xenbits.xensource.com Git - xen.git/commit
cmdline: document and enforce "extra_guest_irqs" upper bounds
authorJan Beulich <jbeulich@suse.com>
Tue, 2 Jul 2024 10:00:27 +0000 (12:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Jul 2024 10:00:27 +0000 (12:00 +0200)
commit17f6d398f76597f8009ec0530842fb8705ece7ba
tree0db3a3f228a42ed7ddb7f5d5198c1e8e95ed9475
parenta2ff677852f0ce05fa335e8e5682bf2ae0c916ee
cmdline: document and enforce "extra_guest_irqs" upper bounds

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 on x86. Document this upper
bound.

To also enforce the limit, (ab)use both arch_hwdom_irqs() (changing its
parameter type) and setup_system_domains(). This is primarily to avoid
exposing the two static variables or introducing yet further arch hooks.

While touching arch_hwdom_irqs() also mark it hwdom-init.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
docs/misc/xen-command-line.pandoc
xen/arch/x86/io_apic.c
xen/common/domain.c
xen/include/xen/irq.h