hv_vcpu_set_sys_reg

Function hv_vcpu_set_sys_reg 

Source
pub unsafe extern "C" fn hv_vcpu_set_sys_reg(
    vcpu: hv_vcpu_t,
    reg: hv_sys_reg_t,
    value: u64,
) -> hv_return_t
Expand description

Sets the value of a vCPU system register.

§Parameters

  • vcpu: The vCPU instance.
  • reg: The ID of the system 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.