vm-allocator: Expand the IRQ allocation API to support GSI

GSI (Global System Interrupt) is an extension of just a linear array of
IRQs. It takes IOAPICs into account for example.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-07-11 11:48:14 +02:00
committed by Sebastien Boeuf
parent 96fb38a5aa
commit 0a04a950a1
4 changed files with 105 additions and 13 deletions

View File

@@ -14,7 +14,9 @@ extern crate libc;
extern crate vm_memory;
mod address;
mod gsi;
mod system;
pub use crate::address::AddressAllocator;
pub use crate::gsi::{GsiAllocator, GsiApic};
pub use crate::system::SystemAllocator;