Skip to main content

enable_virtualization

Function enable_virtualization 

Source
unsafe fn enable_virtualization(region_phys: u64) -> bool
Expand description

Executes the hardware activation (vmxon) on a pre-initialized region.

ยงSafety

  • the CPU must advertise VT-x and CR4.VMXE must be set;
  • region_phys must be a 4 KiB-aligned frame, initialized with the revision identifier, exclusively reserved;
  • local interrupts must be disabled.