Function

hv_vm_unmap(_:_:)

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

Declaration

func hv_vm_unmap(_ gpa: hv_gpaddr_t, _ size: Int) -> hv_return_t

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

func hv_vm_map(hv_uvaddr_t!, hv_gpaddr_t, Int, hv_memory_flags_t) -> hv_return_t

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

func hv_vm_protect(hv_gpaddr_t, Int, hv_memory_flags_t) -> hv_return_t

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