Function

hv_vm_protect

Modifies the permissions of a region in the guest physical address space of the VM.

Declaration

hv_return_t hv_vm_protect(hv_gpaddr_t gpa, size_t size, hv_memory_flags_t flags);

Parameters

gpa

The page-aligned address in the guest physical address space.

size

The size in bytes of the region to be protected, in bytes.

flags

The permissions for the protected region. For a list of valid options, see hv_memory_flags_t.

Return Value

HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.

See Also

Managing Memory Regions

hv_vm_map

Maps a region in the virtual address space of the current task into the guest physical address space of the VM.

hv_vm_unmap

Unmaps a region in the guest physical address space of the VM.