mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Previously, GSIs were eagerly allocated for all MSI-X vectors a device advertises (i.e. the maximum the device can support). This can easily exhaust KVM_MAX_IRQ_ROUTES (4096) with modern NVMe devices that support up to 2048 MSI-X vectors. Defer GSI allocation to the first time an interrupt vector is unmasked. The EventFd is still created eagerly since external components (e.g. VFIO) need it at device init time. Signed-off-by: Bo Chen <bchen@crusoe.ai>