Struct arch::RunnableLinuxVm

source ·
pub struct RunnableLinuxVm<V: VmArch, Vcpu: VcpuArch> {
Show 22 fields pub bat_control: Option<BatControl>, pub delay_rt: bool, pub devices_thread: Option<JoinHandle<()>>, pub gdb: Option<(u32, Tube)>, pub hotplug_bus: BTreeMap<u8, Arc<Mutex<dyn HotPlugBus>>>, pub io_bus: Arc<Bus>, pub irq_chip: Box<dyn IrqChipArch>, pub mmio_bus: Arc<Bus>, pub no_smt: bool, pub pid_debug_label_map: BTreeMap<u32, String>, pub platform_devices: Vec<Arc<Mutex<dyn BusDevice>>>, pub pm: Option<Arc<Mutex<dyn PmResource + Send>>>, pub resume_notify_devices: Vec<Arc<Mutex<dyn BusResumeDevice>>>, pub root_config: Arc<Mutex<PciRoot>>, pub rt_cpus: CpuSet, pub suspend_evt: Event, pub vcpu_affinity: Option<VcpuAffinity>, pub vcpu_count: usize, pub vcpu_init: Vec<VcpuInitArch>, pub vcpus: Option<Vec<Vcpu>>, pub vm: V, pub vm_request_tube: Option<Tube>,
}
Expand description

Holds the elements needed to run a Linux VM. Created by build_vm.

Fields§

§bat_control: Option<BatControl>§delay_rt: bool§devices_thread: Option<JoinHandle<()>>§gdb: Option<(u32, Tube)>§hotplug_bus: BTreeMap<u8, Arc<Mutex<dyn HotPlugBus>>>§io_bus: Arc<Bus>§irq_chip: Box<dyn IrqChipArch>§mmio_bus: Arc<Bus>§no_smt: bool§pid_debug_label_map: BTreeMap<u32, String>§platform_devices: Vec<Arc<Mutex<dyn BusDevice>>>§pm: Option<Arc<Mutex<dyn PmResource + Send>>>§resume_notify_devices: Vec<Arc<Mutex<dyn BusResumeDevice>>>

Devices to be notified before the system resumes from the S3 suspended state.

§root_config: Arc<Mutex<PciRoot>>§rt_cpus: CpuSet§suspend_evt: Event§vcpu_affinity: Option<VcpuAffinity>§vcpu_count: usize§vcpu_init: Vec<VcpuInitArch>§vcpus: Option<Vec<Vcpu>>

If vcpus is None, then it’s the responsibility of the vcpu thread to create vcpus. If it’s Some, then build_vm already created the vcpus.

§vm: V§vm_request_tube: Option<Tube>

Auto Trait Implementations§

§

impl<V, Vcpu> !RefUnwindSafe for RunnableLinuxVm<V, Vcpu>

§

impl<V, Vcpu> Send for RunnableLinuxVm<V, Vcpu>

§

impl<V, Vcpu> !Sync for RunnableLinuxVm<V, Vcpu>

§

impl<V, Vcpu> Unpin for RunnableLinuxVm<V, Vcpu>where V: Unpin, Vcpu: Unpin,

§

impl<V, Vcpu> !UnwindSafe for RunnableLinuxVm<V, Vcpu>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

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, Global>) -> Rc<dyn Any, Global>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for Twhere T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T, Global>) -> Arc<dyn Any + Sync + Send, Global>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V