Contents

hv_vcpu_set_vtimer_offset(_:_:)

Sets the vTimer offset to a value that you provide.

Declaration

func hv_vcpu_set_vtimer_offset(_ vcpu: hv_vcpu_t, _ vtimer_offset: UInt64) -> hv_return_t

Parameters

  • vcpu:

    The ID of the vCPU instance.

  • vtimer_offset:

    The new vTimer offset.

Return Value

0 on success, or an error code of the type hv_return_t.

Discussion

This corresponds to the value of the CNTVOFF_EL2 register.

See Also

Timer functions