Function

hv_vm_unmap

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

Declaration

hv_return_t hv_vm_unmap(hv_gpaddr_t gpa, size_t size);

Parameters

gpa

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

size

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

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_protect

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