Trait VtlProtectAccess

Source
pub trait VtlProtectAccess {
    // Required methods
    fn check_modify_and_lock_overlay_page(
        &mut self,
        gpn: u64,
        check_perms: HvMapGpaFlags,
        new_perms: Option<HvMapGpaFlags>,
    ) -> Result<LockedPages, HvError>;
    fn unlock_overlay_page(&mut self, gpn: u64) -> Result<(), HvError>;
}
Expand description

A trait for managing the vtl protections on pages.

Required Methods§

Source

fn check_modify_and_lock_overlay_page( &mut self, gpn: u64, check_perms: HvMapGpaFlags, new_perms: Option<HvMapGpaFlags>, ) -> Result<LockedPages, HvError>

Check if the given GPN has the specified VTL permissions, optionally modify them, then lock them.

Source

fn unlock_overlay_page(&mut self, gpn: u64) -> Result<(), HvError>

Unlocks an overlay page by its GPN, restoring its previous permissions.

Implementors§