Function

hv_vm_create(_:)

Creates a VM instance for the current task.

Declaration

func hv_vm_create(_ flags: hv_vm_options_t) -> hv_return_t

Parameters

flags

Reserved. Pass HV_VM_DEFAULT to this argument.

Return Value

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

See Also

Creating and Destroying VM Instances

func hv_vm_destroy() -> hv_return_t

Destroys the VM instance associated with the current task.