Skip to main content

primary_controls

Function primary_controls 

Source
fn primary_controls(caps: &HwCaps, window_exiting: bool) -> u32
Expand description

Primary processor-based controls of a vCPU.

PROC_ACTIVATE_SECONDARY is not optional: without it EPT is disabled and the guest addresses host-physical memory, which triple-faults it at the first instruction. Every rewrite of the primary controls must go through this helper so the invariant cannot be lost.