<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Hypervisor",
  "identifier" : "/documentation/Hypervisor/hv_memory_flags_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Hypervisor"
    ],
    "preciseIdentifier" : "c:@T@hv_memory_flags_t"
  },
  "title" : "hv_memory_flags_t"
}
-->

# hv_memory_flags_t

The permissions for guest physical memory regions.

```
typealias hv_memory_flags_t = UInt64
```

## Discussion

Set with the [`hv_vm_map(_:_:_:_:)`](/documentation/Hypervisor/hv_vm_map(_:_:_:_:)) and [`hv_vm_protect(_:_:_:)`](/documentation/Hypervisor/hv_vm_protect(_:_:_:)) functions.

## Topics

### Permissions

[`HV_MEMORY_READ`](/documentation/Hypervisor/HV_MEMORY_READ)

The value that represents the memory-read permission.

[`HV_MEMORY_WRITE`](/documentation/Hypervisor/HV_MEMORY_WRITE)

The value that represents the memory-write permission.

[`HV_MEMORY_EXEC`](/documentation/Hypervisor/HV_MEMORY_EXEC)

The value that represents the memory-execute permission.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)