<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Hypervisor",
  "identifier" : "/documentation/Hypervisor/hv_vm_space_create(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Hypervisor"
    ],
    "preciseIdentifier" : "c:@F@hv_vm_space_create"
  },
  "title" : "hv_vm_space_create(_:)"
}
-->

# hv_vm_space_create(_:)

Creates an additional guest address space for the current task.

```
func hv_vm_space_create(_ asid: UnsafeMutablePointer<hv_vm_space_t>) -> hv_return_t
```

## Parameters

`asid`

Pointer to the addresss space ID that Hypervisor writes on success.

## Return Value

[`HV_SUCCESS`](/documentation/Hypervisor/HV_SUCCESS) if the operation was successful, otherwise an error code specified in [`hv_return_t`](/documentation/Hypervisor/hv_return_t).

## Discussion

The guest address space has the maximum allowable size, with a base IPA of 0 and a 4096-byte page size.

---

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)