Contents

hv_vcpu_get_sys_reg(_:_:_:)

Gets the current value of a vCPU system register.

Declaration

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

Parameters

  • vcpu:

    The instance of the vCPU.

  • reg:

    The ID of the system 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

System registers