Skip to main content

activate_current_cpu

Function activate_current_cpu 

Source
pub fn activate_current_cpu() -> Result<(), InitError>
Expand description

Attempts to activate VT-x on the current CPU.

This function is idempotent: an already activated CPU returns Ok(()). It allocates an activation region (a 4 KiB frame) that remains reserved for the entire lifetime of the CPU.