diff --git a/vmm/src/interrupt.rs b/vmm/src/interrupt.rs index 554024f04..6a505aa5d 100644 --- a/vmm/src/interrupt.rs +++ b/vmm/src/interrupt.rs @@ -44,13 +44,13 @@ fn vec_with_size_in_bytes(size_in_bytes: usize) -> Vec { // for `Foo`, a `Vec` is created. Only the first element of `Vec` would actually be used // as a `Foo`. The remaining memory in the `Vec` is for `entries`, which must be contiguous // with `Foo`. This function is used to make the `Vec` with enough space for `count` entries. -pub fn vec_with_array_field(count: usize) -> Vec { +fn vec_with_array_field(count: usize) -> Vec { let element_space = count * size_of::(); let vec_size_bytes = size_of::() + element_space; vec_with_size_in_bytes(vec_size_bytes) } -pub struct InterruptRoute { +struct InterruptRoute { pub gsi: u32, pub irq_fd: EventFd, registered: AtomicBool, @@ -108,7 +108,7 @@ pub struct KvmRoutingEntry { masked: bool, } -pub struct KvmMsiInterruptGroup { +struct KvmMsiInterruptGroup { vm_fd: Arc, gsi_msi_routes: Arc>>, irq_routes: HashMap,