vmm: Add an identifier to the virtio-iommu 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:
Sebastien Boeuf 2020-04-27 14:44:16 +02:00 committed by Rob Bradford
parent 75ddd2a244
commit e4386c8bb7

View File

@ -82,6 +82,9 @@ const PMEM_DEVICE_NAME_PREFIX: &str = "pmem";
const RNG_DEVICE_NAME: &str = "rng";
const VSOCK_DEVICE_NAME_PREFIX: &str = "vsock";
#[cfg(feature = "pci_support")]
const IOMMU_DEVICE_NAME: &str = "iommu";
/// Errors associated with device manager
#[derive(Debug)]
pub enum DeviceManagerError {
@ -839,7 +842,7 @@ impl DeviceManager {
&mut pci_bus,
&None,
&interrupt_manager,
None,
Some(String::from(IOMMU_DEVICE_NAME)),
)?;
}