mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 00:11:16 +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
|
/// # Arguments
|
||||||
///
|
///
|
||||||
/// * `vm` - The KVM VM file descriptor. It is used to set the VFIO MMIO regions
|
/// * `vm` - The VM object. It is used to set the VFIO MMIO regions
|
||||||
/// as KVM user memory regions.
|
/// as user memory regions.
|
||||||
/// * `mem_slot` - The KVM memory slot to set the user memopry regions.
|
/// * `mem_slot` - The closure to return a memory slot.
|
||||||
/// # Return value
|
|
||||||
///
|
|
||||||
/// This function returns the updated KVM memory slot id.
|
|
||||||
pub fn map_mmio_regions<F>(&mut self, vm: &Arc<dyn hypervisor::Vm>, mem_slot: F) -> Result<()>
|
pub fn map_mmio_regions<F>(&mut self, vm: &Arc<dyn hypervisor::Vm>, mem_slot: F) -> Result<()>
|
||||||
where
|
where
|
||||||
F: Fn() -> u32,
|
F: Fn() -> u32,
|
||||||
|
Loading…
Reference in New Issue
Block a user