mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-02 09:55:21 +00:00
vmm: Add virtio-console to the list of Migratable devices
The virtio-console was not added to the list of Migratable devices, which is fixed from this patch. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
9ab4bb1ae2
commit
aaba6e777f
@ -1114,11 +1114,15 @@ impl DeviceManager {
|
||||
let (virtio_console_device, console_input) =
|
||||
vm_virtio::Console::new(id.clone(), writer, col, row, console_config.iommu)
|
||||
.map_err(DeviceManagerError::CreateVirtioConsole)?;
|
||||
let virtio_console_device = Arc::new(Mutex::new(virtio_console_device));
|
||||
virtio_devices.push((
|
||||
Arc::new(Mutex::new(virtio_console_device)) as VirtioDeviceArc,
|
||||
Arc::clone(&virtio_console_device) as VirtioDeviceArc,
|
||||
console_config.iommu,
|
||||
id,
|
||||
));
|
||||
|
||||
self.add_migratable_device(virtio_console_device as Arc<Mutex<dyn Migratable>>);
|
||||
|
||||
Some(console_input)
|
||||
} else {
|
||||
None
|
||||
|
Loading…
x
Reference in New Issue
Block a user