From 4dbca81b864a5f8c979212b1ed8c2b830282d579 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Sat, 27 Jun 2020 15:38:28 +0000 Subject: [PATCH] vmm: interrupt: rename set_kvm_gsi_routes to set_gsi_routes This function will be used to commit routing information to the hypervisor. Signed-off-by: Wei Liu --- vmm/src/interrupt.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); }