hv_vcpu_set_sme_za_reg(_:_:_:)
Sets the value of the vCPU ZA matrix register in streaming Scalable Vector Extension (SVE) mode.
Declaration
func hv_vcpu_set_sme_za_reg(_ vcpu: hv_vcpu_t, _ value: UnsafePointer<UInt8>, _ length: Int) -> hv_return_tParameters
- vcpu:
The ID of the vCPU instance.
- value:
A pointer to the register value to set.
- length:
The length of the provided ZA 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 value length isn’t the range of [maximum of SVL bytes * maximum SVL bytes].
This methods doesn’t require streaming SVE mode to be in an enabled state.
See Also
Functions
hv_sme_config_get_max_svl_bytes(_:)hv_vcpu_apic_ctrl(_:_:)hv_vcpu_apic_get_state(_:_:)hv_vcpu_apic_lsc_enter_imm32(_:_:_:_:_:_:_:)hv_vcpu_apic_lsc_enter_r32(_:_:_:_:_:_:_:_:)hv_vcpu_apic_lsc_invalidate(_:)hv_vcpu_apic_put_state(_:_:)hv_vcpu_apic_read(_:_:_:)hv_vcpu_apic_trigger_lvt(_:_:)hv_vcpu_apic_write(_:_:_:_:)hv_vcpu_exit_apic_access_read(_:_:)hv_vcpu_exit_info(_:_:)hv_vcpu_exit_init_ap(_:_:_:)hv_vcpu_exit_inject_excp(_:_:_:_:_:)hv_vcpu_exit_ioapic_eoi(_:_:)