diff --git a/vmm/src/interrupt.rs b/vmm/src/interrupt.rs index 7ae2272ca..84dac1538 100644 --- a/vmm/src/interrupt.rs +++ b/vmm/src/interrupt.rs @@ -133,7 +133,7 @@ impl MsiInterruptGroup { type KvmMsiInterruptGroup = MsiInterruptGroup; impl KvmMsiInterruptGroup { - fn set_kvm_gsi_routes(&self) -> Result<()> { + fn set_gsi_routes(&self) -> Result<()> { let gsi_msi_routes = self.gsi_msi_routes.lock().unwrap(); let mut entry_vec: Vec = Vec::new(); for (_, entry) in gsi_msi_routes.iter() { @@ -229,7 +229,7 @@ impl InterruptSourceGroup for KvmMsiInterruptGroup { )); } - return self.set_kvm_gsi_routes(); + return self.set_gsi_routes(); } Err(io::Error::new( @@ -249,9 +249,9 @@ impl InterruptSourceGroup for KvmMsiInterruptGroup { format!("mask: No existing route for interrupt index {}", index), )); } - // Drop the guard because set_kvm_gsi_routes will try to take the lock again. + // Drop the guard because set_gsi_routes will try to take the lock again. drop(gsi_msi_routes); - self.set_kvm_gsi_routes()?; + self.set_gsi_routes()?; return route.disable(&self.vm_fd); } @@ -272,9 +272,9 @@ impl InterruptSourceGroup for KvmMsiInterruptGroup { format!("mask: No existing route for interrupt index {}", index), )); } - // Drop the guard because set_kvm_gsi_routes will try to take the lock again. + // Drop the guard because set_gsi_routes will try to take the lock again. drop(gsi_msi_routes); - self.set_kvm_gsi_routes()?; + self.set_gsi_routes()?; return route.enable(&self.vm_fd); }