diff --git a/bin/propolis-server/src/lib/initializer.rs b/bin/propolis-server/src/lib/initializer.rs index 2bf69b631..060934d74 100644 --- a/bin/propolis-server/src/lib/initializer.rs +++ b/bin/propolis-server/src/lib/initializer.rs @@ -12,7 +12,7 @@ use std::time::{SystemTime, UNIX_EPOCH}; use crate::serial::Serial; use crate::stats::virtual_machine::VirtualMachine; -use crate::vm::{BlockBackendMap, CrucibleBackendMap, LifecycleMap}; +use crate::vm::{BlockBackendMap, CrucibleBackendMap, DeviceMap}; use anyhow::{Context, Result}; use crucible_client_types::VolumeConstructionRequest; pub use nexus_client::Client as NexusClient; @@ -110,7 +110,7 @@ pub struct MachineInitializerState { pub struct MachineInitializer<'a> { pub(crate) log: slog::Logger, pub(crate) machine: &'a Machine, - pub(crate) devices: LifecycleMap, + pub(crate) devices: DeviceMap, pub(crate) block_backends: BlockBackendMap, pub(crate) crucible_backends: CrucibleBackendMap, pub(crate) spec: &'a InstanceSpecV0, diff --git a/bin/propolis-server/src/lib/vm/mod.rs b/bin/propolis-server/src/lib/vm/mod.rs index 78422298d..2d88f7600 100644 --- a/bin/propolis-server/src/lib/vm/mod.rs +++ b/bin/propolis-server/src/lib/vm/mod.rs @@ -106,7 +106,7 @@ mod state_publisher; /// Maps component names to lifecycle trait objects that allow /// components to be started, paused, resumed, and halted. -pub(crate) type LifecycleMap = +pub(crate) type DeviceMap = BTreeMap>; /// Maps component names to block backend trait objects. diff --git a/bin/propolis-server/src/lib/vm/objects.rs b/bin/propolis-server/src/lib/vm/objects.rs index a597ff1d9..4c0100a2c 100644 --- a/bin/propolis-server/src/lib/vm/objects.rs +++ b/bin/propolis-server/src/lib/vm/objects.rs @@ -22,8 +22,7 @@ use tokio::sync::{RwLock, RwLockReadGuard, RwLockWriteGuard}; use crate::{serial::Serial, vcpu_tasks::VcpuTaskController}; use super::{ - state_driver::VmStartReason, BlockBackendMap, CrucibleBackendMap, - LifecycleMap, + state_driver::VmStartReason, BlockBackendMap, CrucibleBackendMap, DeviceMap, }; /// A collection of components that make up a Propolis VM instance. @@ -49,7 +48,7 @@ pub(super) struct InputVmObjects { pub instance_spec: InstanceSpecV0, pub vcpu_tasks: Box, pub machine: Machine, - pub lifecycle_components: LifecycleMap, + pub lifecycle_components: DeviceMap, pub block_backends: BlockBackendMap, pub crucible_backends: CrucibleBackendMap, pub com1: Arc>, @@ -73,7 +72,7 @@ pub(crate) struct VmObjectsLocked { /// Maps from component names to the trait objects that implement lifecycle /// operations (e.g. pause and resume) for eligible components. - lifecycle_components: LifecycleMap, + lifecycle_components: DeviceMap, /// Maps from component names to trait objects that implement the block /// storage backend trait.