diff --git a/pci/src/vfio.rs b/pci/src/vfio.rs index 3538bb61b..2821bc7c2 100644 --- a/pci/src/vfio.rs +++ b/pci/src/vfio.rs @@ -504,12 +504,9 @@ impl VfioPciDevice { /// /// # Arguments /// - /// * `vm` - The KVM VM file descriptor. It is used to set the VFIO MMIO regions - /// as KVM user memory regions. - /// * `mem_slot` - The KVM memory slot to set the user memopry regions. - /// # Return value - /// - /// This function returns the updated KVM memory slot id. + /// * `vm` - The VM object. It is used to set the VFIO MMIO regions + /// as user memory regions. + /// * `mem_slot` - The closure to return a memory slot. pub fn map_mmio_regions(&mut self, vm: &Arc, mem_slot: F) -> Result<()> where F: Fn() -> u32,