From 439823e7ea6a0cc7df58aec04ecd68a4d762e730 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 20 Jun 2022 14:56:37 +0000 Subject: [PATCH] virtio-devices: drop Send+Sync bounds for DmaRemapping Signed-off-by: Wei Liu --- virtio-devices/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtio-devices/src/device.rs b/virtio-devices/src/device.rs index 911ab9311..2cf54ba56 100644 --- a/virtio-devices/src/device.rs +++ b/virtio-devices/src/device.rs @@ -206,7 +206,7 @@ pub trait VirtioDevice: Send { /// 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 /// emulating the IOMMU for the guest. -pub trait DmaRemapping: Send + Sync { +pub trait DmaRemapping { /// Provide a way to translate GVA address ranges into GPAs. fn translate_gva(&self, id: u32, addr: u64) -> std::result::Result; /// Provide a way to translate GPA address ranges into GVAs.