mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +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:
@@ -14,7 +14,7 @@ use crate::config::ConsoleOutputMode;
|
|||||||
use crate::config::DeviceConfig;
|
use crate::config::DeviceConfig;
|
||||||
use crate::config::{DiskConfig, FsConfig, NetConfig, PmemConfig, VmConfig, VsockConfig};
|
use crate::config::{DiskConfig, FsConfig, NetConfig, PmemConfig, VmConfig, VsockConfig};
|
||||||
use crate::device_tree::{DeviceNode, DeviceTree};
|
use crate::device_tree::{DeviceNode, DeviceTree};
|
||||||
use crate::interrupt::{KvmLegacyUserspaceInterruptManager, KvmMsiInterruptManager};
|
use crate::interrupt::{KvmMsiInterruptManager, LegacyUserspaceInterruptManager};
|
||||||
use crate::memory_manager::{Error as MemoryManagerError, MemoryManager};
|
use crate::memory_manager::{Error as MemoryManagerError, MemoryManager};
|
||||||
#[cfg(feature = "pci_support")]
|
#[cfg(feature = "pci_support")]
|
||||||
use crate::PciDeviceInfo;
|
use crate::PciDeviceInfo;
|
||||||
@@ -865,7 +865,7 @@ impl DeviceManager {
|
|||||||
// formed IOAPIC device.
|
// formed IOAPIC device.
|
||||||
let legacy_interrupt_manager: Arc<
|
let legacy_interrupt_manager: Arc<
|
||||||
dyn InterruptManager<GroupConfig = LegacyIrqGroupConfig>,
|
dyn InterruptManager<GroupConfig = LegacyIrqGroupConfig>,
|
||||||
> = Arc::new(KvmLegacyUserspaceInterruptManager::new(Arc::clone(
|
> = Arc::new(LegacyUserspaceInterruptManager::new(Arc::clone(
|
||||||
&interrupt_controller,
|
&interrupt_controller,
|
||||||
)));
|
)));
|
||||||
|
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ impl InterruptSourceGroup for LegacyUserspaceInterruptGroup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct KvmLegacyUserspaceInterruptManager {
|
pub struct LegacyUserspaceInterruptManager {
|
||||||
ioapic: Arc<Mutex<dyn InterruptController>>,
|
ioapic: Arc<Mutex<dyn InterruptController>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -320,9 +320,9 @@ pub struct KvmMsiInterruptManager {
|
|||||||
gsi_msi_routes: Arc<Mutex<HashMap<u32, KvmRoutingEntry>>>,
|
gsi_msi_routes: Arc<Mutex<HashMap<u32, KvmRoutingEntry>>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl KvmLegacyUserspaceInterruptManager {
|
impl LegacyUserspaceInterruptManager {
|
||||||
pub fn new(ioapic: Arc<Mutex<dyn InterruptController>>) -> Self {
|
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;
|
type GroupConfig = LegacyIrqGroupConfig;
|
||||||
|
|
||||||
fn create_group(
|
fn create_group(
|
||||||
|
|||||||
Reference in New Issue
Block a user