From 79a5a58e74e28c175ee836bda60090cf511f893d Mon Sep 17 00:00:00 2001 From: Wei Gao Date: Wed, 18 Aug 2021 15:30:33 +0800 Subject: [PATCH 3/8] migration: fix an errors during the PL011 device state restore. This bug is leaded by commit d24f510cf271f144084266ff292db7e94c004b53. Add the function to register device again. Signed-off-by: Wei Gao --- devices/src/legacy/pl011.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/devices/src/legacy/pl011.rs b/devices/src/legacy/pl011.rs index 133487e..65bf64b 100644 --- a/devices/src/legacy/pl011.rs +++ b/devices/src/legacy/pl011.rs @@ -172,6 +172,7 @@ impl PL011 { param_type: "earlycon".to_string(), value: format!("pl011,mmio,0x{:08x}", region_base), }); + MigrationManager::register_device_instance_mutex(PL011State::descriptor(), dev.clone()); let locked_dev = dev.lock().unwrap(); locked_dev.chardev.lock().unwrap().set_input_callback(&dev); EventLoop::update_event( -- 2.25.1