[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 03/16] x86emul: support AVX10.1


  • To: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 21 Apr 2026 09:38:16 +0200
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=suse.com header.i="@suse.com" header.h="Content-Transfer-Encoding:In-Reply-To:Autocrypt:From:Content-Language:References:Cc:To:Subject:User-Agent:MIME-Version:Date:Message-ID"
  • Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Community Manager <community.manager@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 21 Apr 2026 07:38:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 21.04.2026 09:32, Oleksii Kurochko wrote:
> 
> 
> On 4/9/26 5:03 PM, Jan Beulich wrote:
>> This requires relaxing various pre-existing AVX512* checks, as AVX10.1
>> covers all AVX512* except PF, ER, 4FMAPS, 4VNNIW (support for all of
>> which was removed meanwhile anyway), and VP2INTERSECT. At the same time
>> all vector widths are always supported.
>>
>> Note that visa_check(), replacing host_and_vcpu_must_have() uses, checks
>> only the guest capability: We wouldn't expose AVX512* (nor AVX10)
>> without the hardware supporting it. Similarly in avx512_vlen_check() the
>> original host_and_vcpu_must_have() is reduced just vcpu_must_have().
>> This also simplifies (resulting) code in the test and fuzzing harnesses,
>> as there the XCR0 checks that are part of cpu_has_avx512* are only
>> needed in local code, not in the emulator itself (where respective
>> checking occurs elsewhere anyway, utilizing emul_test_read_xcr()).
>>
>> While in most cases the changes to x86_emulate() are entirely
>> mechanical, for opmask insns earlier unconditional AVX512F checks are
>> converted into "else" clauses to existing if/else-if ones.
>>
>> To be certain that no uses remain, also drop respective cpu_has_avx512*
>> (except in the test harness) and vcpu_has_avx512*().
>>
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>> ---
>> Probably avx512_vlen_check() should have the avx512_ prefix dropped, now
>> that it also covers AVX10. But if so that wants to be either a prereq or
>> a follow-on patch.
>>
>> visa_check() won't cover AVX10.2 and higher, but probably we will want
>> independent checking logic for that anyway.
>>
>> Spec version 2 still leaves unclear what the xstate components are which
>> would need enabling for AVX10/256. x86emul_get_fpu() is therefore
>> untouched for now.
>>
>> Since it'll be reducing code size, we may want to further convert
>> host_and_vcpu_must_have() to just vcpu_must_have() where appropriate
>> (should be [almost?] everywhere).
>> ---
>> v4: Switch to using fallthrough pseudo-keyword. Drop new _vlen_check()
>>      helper again. Re-base.
>> v3: Add ChangeLog entry.
>> v2: Drop use of vsz128 field. Re-base, in particular over dropping of
>>      Xeon Phi support.
>>
>> --- a/CHANGELOG.md
>> +++ b/CHANGELOG.md
>> @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog
>>        mitigate (by rate-limiting) the system wide impact of an HVM guest
>>        misusing atomic instructions.
>>      - Support for CPIO microcode in discrete multiboot modules.
>> +   - Support for AVX10.1. (Experimental)
> 
> Acked-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>.

Thanks.

> What should be done else to have not experimental support of AVX10.1?

Someone to actually try it out on real hardware. All my testing was with
Intel's SDE.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.