Contents

hv_vcpu_get_sme_za_reg(_:_:_:)

Returns the value of the vCPU ZA matrix register in streaming Scalable Vector Extension (SVE) mode.

Declaration

func hv_vcpu_get_sme_za_reg(_ vcpu: hv_vcpu_t, _ value: UnsafeMutablePointer<UInt8>, _ length: Int) -> hv_return_t

Parameters

  • vcpu:

    The ID of the vCPU instance.

  • value:

    The pointer to the retrieved register value.

  • length:

    The length of the provided value storage, in bytes.

Return Value

HV_SUCCESS on success, an error code otherwise

Discussion

This methods returns an error if PSTATE.ZA is 0 (for example, when. za_storage_enabled is false), or if the provided value storage isn’t in the range of [maximum SVL bytes x maximum SVL bytes].

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

See Also

Functions