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_tParameters
- vcpu:
The instance of the vCPU.
- reg:
The ID of the system register.
- value:
The value of the register
regon output.
Return Value
HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.