hv_vcpu_set_reg(_:_:_:)
Sets the value of a vCPU register.
Declaration
func hv_vcpu_set_reg(_ vcpu: hv_vcpu_t, _ reg: hv_reg_t, _ value: UInt64) -> hv_return_tParameters
- vcpu:
The vCPU instance.
- reg:
The ID of the general register.
- value:
The new value of the register.
Return Value
HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.