diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 7d7af79dc..b7c00e452 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -458,6 +458,7 @@ impl DeviceManager { address_manager.allocator.clone(), vm_info.vm_fd.clone(), kvm_gsi_msi_routes, + ioapic.clone(), )); let console = DeviceManager::add_console_device( diff --git a/vmm/src/interrupt.rs b/vmm/src/interrupt.rs index 51a72f813..afc3e2607 100644 --- a/vmm/src/interrupt.rs +++ b/vmm/src/interrupt.rs @@ -3,6 +3,7 @@ // SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause // +use devices::ioapic; use kvm_bindings::{kvm_irq_routing, kvm_irq_routing_entry, KVM_IRQ_ROUTING_MSI}; use kvm_ioctls::VmFd; use std::collections::HashMap; @@ -263,6 +264,7 @@ pub struct KvmInterruptManager { allocator: Arc>, vm_fd: Arc, gsi_msi_routes: Arc>>, + _ioapic: Arc>, } impl KvmInterruptManager { @@ -270,11 +272,13 @@ impl KvmInterruptManager { allocator: Arc>, vm_fd: Arc, gsi_msi_routes: Arc>>, + ioapic: Arc>, ) -> Self { KvmInterruptManager { allocator, vm_fd, gsi_msi_routes, + _ioapic: ioapic, } } }