Contents

hv_vcpu_read_register(_:_:_:)

Returns, by reference, the current value of an architectural x86 register of a vCPU.

Declaration

func hv_vcpu_read_register(_ vcpu: hv_vcpuid_t, _ reg: hv_x86_reg_t, _ value: UnsafeMutablePointer<UInt64>) -> hv_return_t

Parameters

  • vcpu:

    The instance of the vCPU.

  • reg:

    The ID of the register. For possible values, see Hv_x86_reg_t.

  • 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

CPU Registers