Skip to main content

ostd/arch/x86/vm/
mod.rs

1// SPDX-License-Identifier: MPL-2.0
2
3//! Hardware virtualization support for x86.
4
5mod context;
6pub(crate) mod ept;
7mod exit;
8pub(crate) mod guest_mode;
9mod types;
10mod vmcs;
11pub(crate) mod vmx;
12mod x86;
13
14/// Initializes hardware-virtualization state on the current CPU.
15pub(super) fn init() {
16    vmx::init_feature_control();
17}
18
19pub use self::{
20    context::{GuestContext, VcpuArchState},
21    exit::{GuestExitInfo, VmxExitReason},
22    types::{
23        GuestInterrupt, GuestTimerInstant, VcpuDescTable, VcpuMsrs, VcpuRegs, VcpuSegment,
24        VcpuSregs,
25    },
26};