Skip to content

Conversation

@agicy
Copy link
Contributor

@agicy agicy commented Nov 23, 2025

The hardcoded CONFIG_MAX_INTERRUPTS limit of 32 was a significant limitation, preventing the system from booting on complex SoCs with a large number of interrupt sources.

To address this, this commit introduces two key changes:

  1. The CONFIG_MAX_INTERRUPTS limit is increased to 1024. This value is a power of two that accommodates a wide range of current and future hardware.
  2. The underlying data structure for tracking interrupt status has been refactored to use a u32 bitmap. This ensures that managing the larger interrupt space remains memory-efficient and performant.

This enhancement improves the overall hardware compatibility of hvisor.

Closes: #213

@github-actions github-actions bot added loongarch64 x86_64 feature New feature or request labels Nov 23, 2025
@agicy agicy added bug Something isn't working and removed loongarch64 x86_64 labels Nov 23, 2025
The hardcoded `CONFIG_MAX_INTERRUPTS` limit of 32 was a significant
limitation, preventing the system from booting on complex SoCs with a
large number of interrupt sources.

To address this, this commit introduces two key changes:
1.  The `CONFIG_MAX_INTERRUPTS` limit is increased to 1024. This value
    is a power of two that accommodates a wide range of current and
    future hardware.
2.  The underlying data structure for tracking interrupt status has been
    refactored to use a `u32` bitmap. This ensures that managing the
    larger interrupt space remains memory-efficient and performant.

This enhancement improves the overall hardware compatibility of hvisor.

Closes: syswonder#213
@agicy
Copy link
Contributor Author

agicy commented Nov 23, 2025

The system test failed because this pull request changes the CONFIG_MAGIC_VERSION from 0x03 to 0x04. This pull request should be re-tested after hvisor-tool/pull/54 is merged.

Refs: hvisor-tool/pull/54

@Inquisitor-201 Inquisitor-201 merged commit dfb1593 into syswonder:dev Nov 27, 2025
35 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature New feature or request loongarch64 x86_64

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants