pub unsafe extern "C" fn hv_vm_create(
    config: hv_vm_config_t
) -> hv_return_t
Expand description

Creates a VM instance for the current process.

Parameters

  • config: The configuration of the vCPU, which must be nil.

Return Value

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