Contents

hv_vcpu_interrupt(_:_:)

Forces the vCPU instances you provide to immediately exit the VM.

Declaration

func hv_vcpu_interrupt(_ vcpus: UnsafeMutablePointer<hv_vcpuid_t>, _ vcpu_count: UInt32) -> hv_return_t

Parameters

  • vcpus:

    A pointer to an array of instances of vCPU.

  • vcpu_count:

    The number of vCPU IDs specified by vcpus.

Return Value

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

See Also

Runtime