mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: drop Send+Sync bounds for DmaRemapping
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -206,7 +206,7 @@ pub trait VirtioDevice: Send {
|
|||||||
/// address translation before they try to read from the guest physical address.
|
/// address translation before they try to read from the guest physical address.
|
||||||
/// On the other side, the implementation itself should be provided by the code
|
/// On the other side, the implementation itself should be provided by the code
|
||||||
/// emulating the IOMMU for the guest.
|
/// emulating the IOMMU for the guest.
|
||||||
pub trait DmaRemapping: Send + Sync {
|
pub trait DmaRemapping {
|
||||||
/// Provide a way to translate GVA address ranges into GPAs.
|
/// Provide a way to translate GVA address ranges into GPAs.
|
||||||
fn translate_gva(&self, id: u32, addr: u64) -> std::result::Result<u64, std::io::Error>;
|
fn translate_gva(&self, id: u32, addr: u64) -> std::result::Result<u64, std::io::Error>;
|
||||||
/// Provide a way to translate GPA address ranges into GVAs.
|
/// Provide a way to translate GPA address ranges into GVAs.
|
||||||
|
|||||||
Reference in New Issue
Block a user