Contents

hv_vcpu_set_sme_zt0_reg(_:_:)

Sets the value of the vCPU ZT0 register in streaming Scalable Vector Extension (SVE) mode.

Declaration

func hv_vcpu_set_sme_zt0_reg(_ vcpu: hv_vcpu_t, _ value: UnsafePointer<hv_sme_zt0_uchar64_t>) -> hv_return_t

Parameters

  • vcpu:

    The ID of the vCPU instance.

  • value:

    A pointer to the register value to set.

Return Value

HV_SUCCESS on success, an error code otherwise.

Discussion

This method returns an error if PSTATE.ZA is 0 (For example, if za_storage_enabled is false).

This methods doesn’t require streaming SVE mode to be in an enabled state.

See Also

Functions