Contents

hv_vcpu_get_sme_state(_:_:)

Gets the current Scalable Matrix Extension (SME) state.

Declaration

func hv_vcpu_get_sme_state(_ vcpu: hv_vcpu_t, _ sme_state: UnsafeMutablePointer<hv_vcpu_sme_state_t>) -> hv_return_t

Parameters

  • vcpu:

    The vcpu ID of the vCPU instance.

  • sme_state:

    A pointer to the SME state.

Return Value

HV_SUCCESS on success, HV_UNSUPPORTED if SME is not supported on the platform, an error code otherwise.

Discussion

This SME state consists of the streaming Scalable Vector Extension (SVE) mode (PSTATE.SM) and ZA storage enable (PSTATE.ZA). In streaming SVE mode, the system aliases the SIMD Q registers to the bottom 128 bits of the corresponding Z register, and any modification reflects on the Z register state.

See Also

Functions