mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
vfio: fix comment for map_mmio_regions
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
57ff608be9
commit
571c368528
@ -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<F>(&mut self, vm: &Arc<dyn hypervisor::Vm>, mem_slot: F) -> Result<()>
|
||||
where
|
||||
F: Fn() -> u32,
|
||||
|
Loading…
Reference in New Issue
Block a user