virtio: fix dev_id initialization for virtio-pci and vfio device on aarch64 platform vfio: fix the problem of dma mapping failed syscall: add syscall "newfstatat" in x86_64-unknown-linux-gnu target kernel_config: update kernel config 5.10 on aarch64 platform machine/standard_vm: fix inappropriate file open permissions migration: fix an errors during the PL011 device state restore migration: fix an error during migration interface on aarch64 fix spelling errors in project (cherry picked from commit a12a13829fa5d788667e11b886c254760e6a4579)
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 79a5a58e74e28c175ee836bda60090cf511f893d Mon Sep 17 00:00:00 2001
|
|
From: Wei Gao <gaowei66@huawei.com>
|
|
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 <gaowei66@huawei.com>
|
|
---
|
|
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
|
|
|