hv_vm_create

Function hv_vm_create 

Source
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. Pass NULL for the default configuration.

§Return Value

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