mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
vmm: Add an identifier to the --console device
This will be later used to identify each device used by the VM in order to perform introspection and snapshot/restore properly. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
eac350c454
commit
75ddd2a244
@ -73,6 +73,7 @@ const MMIO_LEN: u64 = 0x1000;
|
||||
#[cfg(feature = "pci_support")]
|
||||
const VFIO_DEVICE_NAME_PREFIX: &str = "vfio";
|
||||
|
||||
const CONSOLE_DEVICE_NAME: &str = "console";
|
||||
const DISK_DEVICE_NAME_PREFIX: &str = "disk";
|
||||
const FS_DEVICE_NAME_PREFIX: &str = "fs";
|
||||
const MEM_DEVICE_NAME: &str = "mem";
|
||||
@ -1100,7 +1101,7 @@ impl DeviceManager {
|
||||
virtio_devices.push((
|
||||
Arc::new(Mutex::new(virtio_console_device)) as VirtioDeviceArc,
|
||||
console_config.iommu,
|
||||
None,
|
||||
Some(String::from(CONSOLE_DEVICE_NAME)),
|
||||
));
|
||||
Some(console_input)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user