Contents

hv_vcpu_set_sme_p_reg(_:_:_:_:)

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

Declaration

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

Parameters

  • vcpu:

    The ID of the vCPU instance.

  • reg:

    The ID of the P predicate register.

  • value:

    The pointer to the register value to set.

  • length:

    The length of the P register value., in bytes.

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), or if the provided value storage isn’t [maximum SVL bytes x maximum SVL bytes].

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

See Also

Functions