Trait virt::VtlMemoryProtection

source ·
pub trait VtlMemoryProtection {
    // Required method
    fn modify_vtl_page_setting(
        &self,
        pfn: u64,
        flags: HvMapGpaFlags,
    ) -> Result<()>;
}
Expand description

Change memory protections for lower VTLs. This can be used to share memory with a lower VTL or make memory accesses trigger an intercept. This is intended for dynamic state as initial memory protections are applied at VM start.

Required Methods§

source

fn modify_vtl_page_setting(&self, pfn: u64, flags: HvMapGpaFlags) -> Result<()>

Sets lower VTL permissions on a physical page.

TODO: To remain generic may want to replace hvdef::HvMapGpaFlags with something else.

Implementors§