mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-23 11:52:21 +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")]
|
#[cfg(feature = "pci_support")]
|
||||||
const VFIO_DEVICE_NAME_PREFIX: &str = "vfio";
|
const VFIO_DEVICE_NAME_PREFIX: &str = "vfio";
|
||||||
|
|
||||||
|
const CONSOLE_DEVICE_NAME: &str = "console";
|
||||||
const DISK_DEVICE_NAME_PREFIX: &str = "disk";
|
const DISK_DEVICE_NAME_PREFIX: &str = "disk";
|
||||||
const FS_DEVICE_NAME_PREFIX: &str = "fs";
|
const FS_DEVICE_NAME_PREFIX: &str = "fs";
|
||||||
const MEM_DEVICE_NAME: &str = "mem";
|
const MEM_DEVICE_NAME: &str = "mem";
|
||||||
@ -1100,7 +1101,7 @@ impl DeviceManager {
|
|||||||
virtio_devices.push((
|
virtio_devices.push((
|
||||||
Arc::new(Mutex::new(virtio_console_device)) as VirtioDeviceArc,
|
Arc::new(Mutex::new(virtio_console_device)) as VirtioDeviceArc,
|
||||||
console_config.iommu,
|
console_config.iommu,
|
||||||
None,
|
Some(String::from(CONSOLE_DEVICE_NAME)),
|
||||||
));
|
));
|
||||||
Some(console_input)
|
Some(console_input)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user