From 4cc37d7b9a350d878cf57df22db4b376755d6391 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Tue, 23 Jun 2020 19:50:58 +0000 Subject: [PATCH] vmm: interrupt: drop a few pub keywords Those items are not used elsewhere. Restrict their scope. Signed-off-by: Wei Liu --- vmm/src/interrupt.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,