mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vm-device: trim qualified paths
Import the std modules used in the crate instead of spelling the full paths at every use site. Signed-off-by: Henry Hrvoje Tonkovac <htonkovac@gmail.com> Assisted-by: Claude:Opus-4.8
This commit is contained in:
committed by
Rob Bradford
parent
11bacdee46
commit
88baef1449
@@ -2,6 +2,8 @@
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
|
||||
|
||||
use std::io;
|
||||
|
||||
/// Trait to trigger DMA mapping updates for devices managed by virtio-iommu
|
||||
///
|
||||
/// Trait meant for triggering the DMA mapping update related to an external
|
||||
@@ -10,8 +12,8 @@
|
||||
/// guest.
|
||||
pub trait ExternalDmaMapping: Send + Sync {
|
||||
/// Map a memory range
|
||||
fn map(&self, iova: u64, gpa: u64, size: u64) -> std::result::Result<(), std::io::Error>;
|
||||
fn map(&self, iova: u64, gpa: u64, size: u64) -> io::Result<()>;
|
||||
|
||||
/// Unmap a memory range
|
||||
fn unmap(&self, iova: u64, size: u64) -> std::result::Result<(), std::io::Error>;
|
||||
fn unmap(&self, iova: u64, size: u64) -> io::Result<()>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user