From 81831413994437553a3c9374ed9746525d7b55b5 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 28 Apr 2020 15:22:38 +0200 Subject: [PATCH] vmm: Add an identifier to the ioapic 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 --- vmm/src/device_manager.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 790a28251..b09945a27 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -73,6 +73,8 @@ const MMIO_LEN: u64 = 0x1000; #[cfg(feature = "pci_support")] const VFIO_DEVICE_NAME_PREFIX: &str = "vfio"; +const IOAPIC_DEVICE_NAME: &str = "ioapic"; + const CONSOLE_DEVICE_NAME: &str = "console"; const DISK_DEVICE_NAME_PREFIX: &str = "disk"; const FS_DEVICE_NAME_PREFIX: &str = "fs"; @@ -902,6 +904,8 @@ impl DeviceManager { address_manager: &Arc, interrupt_manager: Arc>, ) -> DeviceManagerResult>> { + let _id = String::from(IOAPIC_DEVICE_NAME); + // Create IOAPIC let ioapic = Arc::new(Mutex::new( ioapic::Ioapic::new(APIC_START, interrupt_manager)