struct ControlLoopState<'a, V: VmArch, Vcpu: VcpuArch> {Show 22 fields
linux: &'a mut RunnableLinuxVm<V, Vcpu>,
cfg: &'a Config,
sys_allocator: &'a Arc<Mutex<SystemAllocator>>,
control_tubes: &'a BTreeMap<usize, TaggedControlTube>,
disk_host_tubes: &'a [Tube],
gpu_control_tube: &'a Tube,
usb_control_tube: &'a Tube,
iommu_host_tube: &'a Option<Arc<Mutex<Tube>>>,
hp_control_tube: &'a Sender<PciRootCommand>,
guest_suspended_cvar: &'a Option<Arc<(Mutex<bool>, Condvar)>>,
hotplug_manager: &'a mut Option<PciHotPlugManager>,
swap_controller: &'a mut Option<SwapController>,
vcpu_handles: &'a [(JoinHandle<()>, Sender<VcpuControl>)],
balloon_tube: Option<&'a mut BalloonTube>,
device_ctrl_tube: &'a Tube,
irq_handler_control: &'a Tube,
vm_memory_handler_control: &'a Tube,
registered_evt_tubes: &'a mut HashMap<RegisteredEvent, HashSet<AddressedProtoTube>>,
pvclock_host_tube: Option<Arc<Tube>>,
vfio_container_manager: &'a mut VfioContainerManager,
suspended_pvclock_state: &'a mut Option<ClockState>,
vcpus_pid_tid: &'a BTreeMap<usize, (u32, u32)>,
}
Fields§
§linux: &'a mut RunnableLinuxVm<V, Vcpu>
§cfg: &'a Config
§sys_allocator: &'a Arc<Mutex<SystemAllocator>>
§control_tubes: &'a BTreeMap<usize, TaggedControlTube>
§disk_host_tubes: &'a [Tube]
§gpu_control_tube: &'a Tube
§usb_control_tube: &'a Tube
§iommu_host_tube: &'a Option<Arc<Mutex<Tube>>>
§hp_control_tube: &'a Sender<PciRootCommand>
§guest_suspended_cvar: &'a Option<Arc<(Mutex<bool>, Condvar)>>
§hotplug_manager: &'a mut Option<PciHotPlugManager>
§swap_controller: &'a mut Option<SwapController>
§vcpu_handles: &'a [(JoinHandle<()>, Sender<VcpuControl>)]
§balloon_tube: Option<&'a mut BalloonTube>
§device_ctrl_tube: &'a Tube
§irq_handler_control: &'a Tube
§vm_memory_handler_control: &'a Tube
§registered_evt_tubes: &'a mut HashMap<RegisteredEvent, HashSet<AddressedProtoTube>>
§pvclock_host_tube: Option<Arc<Tube>>
§vfio_container_manager: &'a mut VfioContainerManager
§suspended_pvclock_state: &'a mut Option<ClockState>
§vcpus_pid_tid: &'a BTreeMap<usize, (u32, u32)>
Auto Trait Implementations§
impl<'a, V, Vcpu> !RefUnwindSafe for ControlLoopState<'a, V, Vcpu>
impl<'a, V, Vcpu> !Send for ControlLoopState<'a, V, Vcpu>
impl<'a, V, Vcpu> !Sync for ControlLoopState<'a, V, Vcpu>
impl<'a, V, Vcpu> Unpin for ControlLoopState<'a, V, Vcpu>
impl<'a, V, Vcpu> !UnwindSafe for ControlLoopState<'a, V, Vcpu>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.