Contents

hv_vcpu_set_sme_z_reg(_:_:_:_:)

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

Declaration

func hv_vcpu_set_sme_z_reg(_ vcpu: hv_vcpu_t, _ reg: hv_sme_z_reg_t, _ value: UnsafePointer<UInt8>, _ length: Int) -> hv_return_t

Parameters

  • vcpu:

    The ID of the vCPU instance.

  • reg:

    The ID of the Z vector register.

  • value:

    The pointer to the register value to set.

  • length:

    The length of the Z register value, in bytes.

Return Value

HV_SUCCESS on success, an error code otherwise.

Discussion

Returns an error if not in streaming SVE mode (for example, when streaming_sve_mode_enabled is false), or if the provided value storage isn’t the maximum of SVL / 8 bytes.

See Also

Functions