struct World {Show 20 fields
record: WorldRecord,
memory: Option<WorldMemory>,
vcpus: Vec<VcpuSlot>,
exits: ExitQueue,
closing: bool,
paused: bool,
machine: Machine,
stats: WorldStats,
timing: WorldTiming,
handler_timing: ExitLatencyHistogram,
pending_console_input: Vec<u8>,
console_output: Vec<u8>,
pending_frames: Vec<Vec<u8>>,
network_output: Vec<Vec<u8>>,
network_output_bytes: usize,
modules: Vec<GuestModule>,
cmdline: [u8; 256],
cmdline_len: usize,
iommu: IommuModel,
iommu_domain: Option<DomainId>,
}Expand description
Registered world: public record + lazy guest memory + logical vCPUs.
Fields§
§record: WorldRecord§memory: Option<WorldMemory>§vcpus: Vec<VcpuSlot>§exits: ExitQueue§closing: boolDestruction in progress: any new operation is refused and the vCPU tasks are stopped before the memory is freed.
paused: boolPaused world: RUNs are refused (Paused) until resumed.
machine: MachineGuest chipset devices (8259A pair, I/O APIC) and the kernel bridge that replays their accesses without leaving the kernel.
stats: WorldStatsCumulative execution counters (diagnostics).
timing: WorldTimingCumulative exit-latency aggregates, per exit class (diagnostics).
Taken out of the registry while a vCPU of the world runs, with the same
take/put pattern as stats, so that the running guest never takes the
registry lock and the exit path never allocates.
handler_timing: ExitLatencyHistogramCumulative latency of the in-kernel device-model replay (fast-path
exits), in time-stamp counter cycles. Same lifetime and take/put rules
as timing.
pending_console_input: Vec<u8>Console input queued by the user side, delivered at the next RUN.
console_output: Vec<u8>Console output produced by the guest, drained by the user side.
pending_frames: Vec<Vec<u8>>Frames queued for the guest network device, delivered at the next
RUN.
network_output: Vec<Vec<u8>>Frames transmitted by the guest, waiting for the network front-end.
network_output_bytes: usizeOctets currently queued in network_output (bounded).
modules: Vec<GuestModule>Guest modules/initrd ranges (bounded, insertion order).
cmdline: [u8; 256]Guest command line (NUL padded; cmdline_len is authoritative).
cmdline_len: usizeNumber of valid bytes in cmdline.
iommu: IommuModelDevice translation model of this world (IOMMU).
The model is pure and owns no frame: it maps device-visible addresses
to host frames already owned by memory. It is empty until the first
SYS_VMM_MAP_IOMMU call, which lazily allocates the domain.
iommu_domain: Option<DomainId>Address space allocated in iommu, if any.
Auto Trait Implementations§
impl !RefUnwindSafe for World
impl !UnwindSafe for World
impl Forget for World
impl Freeze for World
impl Move for World
impl Send for World
impl Sync for World
impl Unpin for World
impl UnsafeUnpin for World
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more