Skip to main content

diag_init_expected_hashes

Function diag_init_expected_hashes 

Source
fn diag_init_expected_hashes(shim_params: &ShimParams)
Expand description

Cache the loader-emitted per-page expected hashes so diag_record_phase_a can compare each 4 KB page against them. Must be called once, before the acceptance loop in setup_vtl2_memory. If the IGVM doesn’t have the expected-page-hashes region (older loader) or the region magic/version mismatched, per-page compare is left disabled and diag_record_phase_a silently skips the per-page work.