mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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> amend 'cmdline: document and enforce "extra_guest_irqs" upper bounds' Address late review comments for what is now commit17f6d398f7: - bound max_irqs right away against nr_irqs - introduce a #define for a constant used twice Requested-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com> master commit:17f6d398f7master date: 2024-07-02 12:00:27 +0200 master commit:1f56accba3master date: 2024-07-03 14:03:27 +0200