Module partition_unit

Source
Expand description

State unit for managing the VM partition and associated virtual processors.

Structs§

Halt
Tracks whether the VP should halt due to a guest-initiated condition (triple fault, etc.).
HaltReasonReceiver
The halt reason receiver to pass to put in PartitionUnitParams.
PartitionUnit
The control point for managing a partition unit.
PartitionUnitParams
RunCancelled
Error returned when a VP run is cancelled.
RunnerCanceller
An object that can cancel a pending call into VpRunner::run.
StopGuard
VpRunner
An object used to dispatch a virtual processor.

Enums§

Error
Error returned by PartitionUnit::new().
InitialRegError
Error returned by PartitionUnit::set_initial_regs().
InitialVisibilityError
Error returned by PartitionUnit::set_initial_page_visibility().

Traits§

RequestYield
Trait for requesting that a VP yield in its virt::Processor::run_vp call.
VmPartition
Trait with the minimal methods needed to run the partition.

Functions§

block_on_vp
Blocks on a future, where the future may run a VP (and so the associated waker needs to ask the VP to yield).