hv_vm_create(_:)
Creates a VM instance for the current process.
Declaration
func hv_vm_create(_ config: hv_vm_config_t?) -> hv_return_tParameters
- config:
The configuration of the vCPU, which must be
nil.Apple silicon only.
Return Value
HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.
Discussion
Intel-based Mac computers have different parameters:
flagsReserved. Pass HV_VM_DEFAULT to this argument.