Contents

hv_vm_protect_space(_:_:_:_:)

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

Declaration

func hv_vm_protect_space(_ asid: hv_vm_space_t, _ gpa: hv_gpaddr_t, _ size: Int, _ flags: hv_memory_flags_t) -> hv_return_t

Parameters

  • asid:

    The address space ID.

  • gpa:

    The page aligned address in the guest physical address space.

  • size:

    The size in bytes of the region to unmap.

  • flags:

    The new READ, WRITE and EXECUTE permissions of the region.

Return Value

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

See Also

Functions