mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-10 22:57:43 +00:00
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:
parent
75ddd2a244
commit
e4386c8bb7
@ -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)),
|
||||
)?;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user