vm-allocator: introduce bitmap-backed InterruptAllocator

This introduces a bitmap-backed interrupt number allocator. The type is
not yet used but will be in the next commit and enable graceful
releasing of allocated interrupt numbers (GSIs).

Co-authored-by: Sebastian Eydam <sebastian.eydam@cyberus-technology.de>
On-behalf-of: SAP sebastian.eydam@sap.com
Signed-off-by: Sebastian Eydam <sebastian.eydam@cyberus-technology.de>

On-behalf-of: Philipp Schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-05-07 14:19:36 +02:00
committed by Rob Bradford
parent 90859452ab
commit 7c4fa04ea3
3 changed files with 246 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ kvm = ["arch/kvm"]
[dependencies]
libc = { workspace = true }
thiserror = { workspace = true }
vm-memory = { workspace = true }
[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies]