From a64bdcf3f5c8c08507b247d88f3766b6c1f782f2 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 20 Jun 2022 15:06:34 +0000 Subject: [PATCH] hypervisor: drop Send+Sync bounds for PlatformEmulator Signed-off-by: Wei Liu --- hypervisor/src/arch/emulator/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/src/arch/emulator/mod.rs b/hypervisor/src/arch/emulator/mod.rs index 078f65525..507918c95 100644 --- a/hypervisor/src/arch/emulator/mod.rs +++ b/hypervisor/src/arch/emulator/mod.rs @@ -99,7 +99,7 @@ pub enum EmulationError { /// A CpuState is an architecture specific type, representing a CPU state. /// The emulator and its instruction handlers modify a given CPU state and /// eventually ask the platform to commit it back through `set_cpu_state`. -pub trait PlatformEmulator: Send + Sync { +pub trait PlatformEmulator { type CpuState: Clone; /// Read guest memory into a u8 slice.