hv1_hypercall

Trait ModifyVtlProtectionMask

Source
pub trait ModifyVtlProtectionMask {
    // Required method
    fn modify_vtl_protection_mask(
        &mut self,
        partition_id: u64,
        map_flags: HvMapGpaFlags,
        target_vtl: Option<Vtl>,
        gpa_pages: &[u64],
    ) -> HvRepResult;
}
Expand description

Implements the HvModifyVtlProtectionMask hypercall.

Required Methods§

Source

fn modify_vtl_protection_mask( &mut self, partition_id: u64, map_flags: HvMapGpaFlags, target_vtl: Option<Vtl>, gpa_pages: &[u64], ) -> HvRepResult

Modify the VTL protection mask for the list of pages specified by gpa_pages. map_flags represents the desired permissions for VTLs lower than target_vtl. target_vtl must be lower or equal to the current VTL. It cannot be VTL0.

Implementors§