tdcall

Function tdcall_map_gpa

Source
pub fn tdcall_map_gpa(
    call: &mut impl Tdcall,
    range: MemoryRange,
    host_visible: bool,
) -> Result<(), TdVmCallR10Result>
Expand description

Issue a map gpa call to change page visibility for accepted pages via a TDG.VP.VMCALL.

gpa should specify the gpa for the address to change visibility for. The shared gpa boundary will be added or masked off as required.

len should specify the length of the region in bytes to change visibility for.

host_visible should specify whether the region should be host visible or private.