You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Correct GSI numbering for aarch64 to resolve device limit issues
On aarch64, Linux expects device tree interrupts (GSIs) to start at 0,
as it internally adds an offset of 32 for SPIs. Firecracker previously
defined IRQ_BASE as 32, unintentionally causing a double offset and
limiting the maximum number of attachable devices to 64.
This commit introduces new constants, GSI_BASE and GSI_MAX, properly
adjusted for aarch64, with GSIs starting at 1 (since GSI 0 is disallowed
by device_manager/mmio.rs). These changes ensure interrupts are numbered
correctly, resolving the issue and allowing an aarch64 VM to handle
up to 95 devices.
Additional adjustments are made to tests to reflect this correction.
Signed-off-by: Sheng-Wei (Way) Chen <[email protected]>
0 commit comments