Contents

hv_vcpu_get_reg(_:_:_:)

Gets the current value of a vCPU register.

Declaration

func hv_vcpu_get_reg(_ vcpu: hv_vcpu_t, _ reg: hv_reg_t, _ value: UnsafeMutablePointer<UInt64>) -> hv_return_t

Parameters

  • vcpu:

    The vCPU instance.

  • reg:

    The ID of the general register.

  • value:

    The value of the register reg on output.

Return Value

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

Discussion

See Also

General registers