diff --git a/vmm/src/interrupt.rs b/vmm/src/interrupt.rs index a8e9082d7..04852dfa1 100644 --- a/vmm/src/interrupt.rs +++ b/vmm/src/interrupt.rs @@ -115,14 +115,6 @@ impl MsiInterruptGroup { } } -pub trait RoutingEntryExt { - fn make_entry( - vm: &Arc, - gsi: u32, - config: &InterruptSourceConfig, - ) -> Result>; -} - impl MsiInterruptGroup { fn new( vm: Arc, @@ -349,8 +341,8 @@ pub mod kvm { type KvmRoutingEntry = RoutingEntry; pub type KvmMsiInterruptManager = MsiInterruptManager; - impl RoutingEntryExt for KvmRoutingEntry { - fn make_entry( + impl KvmRoutingEntry { + pub fn make_entry( vm: &Arc, gsi: u32, config: &InterruptSourceConfig, @@ -409,8 +401,8 @@ pub mod mshv { type MshvRoutingEntry = RoutingEntry; pub type MshvMsiInterruptManager = MsiInterruptManager; - impl RoutingEntryExt for MshvRoutingEntry { - fn make_entry( + impl MshvRoutingEntry { + pub fn make_entry( _vm: &Arc, gsi: u32, config: &InterruptSourceConfig,