mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-01 02:55:45 +00:00
vmm: interrupt: drop Kvm prefix from KvmLegacyUserspaceInterruptManager
This data structure doesn't contain KVM specific stuff. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
574cab6990
commit
637f58bcd9
@ -14,7 +14,7 @@ use crate::config::ConsoleOutputMode;
|
||||
use crate::config::DeviceConfig;
|
||||
use crate::config::{DiskConfig, FsConfig, NetConfig, PmemConfig, VmConfig, VsockConfig};
|
||||
use crate::device_tree::{DeviceNode, DeviceTree};
|
||||
use crate::interrupt::{KvmLegacyUserspaceInterruptManager, KvmMsiInterruptManager};
|
||||
use crate::interrupt::{KvmMsiInterruptManager, LegacyUserspaceInterruptManager};
|
||||
use crate::memory_manager::{Error as MemoryManagerError, MemoryManager};
|
||||
#[cfg(feature = "pci_support")]
|
||||
use crate::PciDeviceInfo;
|
||||
@ -865,7 +865,7 @@ impl DeviceManager {
|
||||
// formed IOAPIC device.
|
||||
let legacy_interrupt_manager: Arc<
|
||||
dyn InterruptManager<GroupConfig = LegacyIrqGroupConfig>,
|
||||
> = Arc::new(KvmLegacyUserspaceInterruptManager::new(Arc::clone(
|
||||
> = Arc::new(LegacyUserspaceInterruptManager::new(Arc::clone(
|
||||
&interrupt_controller,
|
||||
)));
|
||||
|
||||
|
@ -310,7 +310,7 @@ impl InterruptSourceGroup for LegacyUserspaceInterruptGroup {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct KvmLegacyUserspaceInterruptManager {
|
||||
pub struct LegacyUserspaceInterruptManager {
|
||||
ioapic: Arc<Mutex<dyn InterruptController>>,
|
||||
}
|
||||
|
||||
@ -320,9 +320,9 @@ pub struct KvmMsiInterruptManager {
|
||||
gsi_msi_routes: Arc<Mutex<HashMap<u32, KvmRoutingEntry>>>,
|
||||
}
|
||||
|
||||
impl KvmLegacyUserspaceInterruptManager {
|
||||
impl LegacyUserspaceInterruptManager {
|
||||
pub fn new(ioapic: Arc<Mutex<dyn InterruptController>>) -> Self {
|
||||
KvmLegacyUserspaceInterruptManager { ioapic }
|
||||
LegacyUserspaceInterruptManager { ioapic }
|
||||
}
|
||||
}
|
||||
|
||||
@ -342,7 +342,7 @@ impl KvmMsiInterruptManager {
|
||||
}
|
||||
}
|
||||
|
||||
impl InterruptManager for KvmLegacyUserspaceInterruptManager {
|
||||
impl InterruptManager for LegacyUserspaceInterruptManager {
|
||||
type GroupConfig = LegacyIrqGroupConfig;
|
||||
|
||||
fn create_group(
|
||||
|
Loading…
Reference in New Issue
Block a user