Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2355CF327B5 for ; Tue, 21 Apr 2026 07:38:34 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1288409.1568682 (Exim 4.92) (envelope-from ) id 1wF5ga-0001LE-MR; Tue, 21 Apr 2026 07:38:20 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1288409.1568682; Tue, 21 Apr 2026 07:38:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wF5ga-0001L7-JL; Tue, 21 Apr 2026 07:38:20 +0000 Received: by outflank-mailman (input) for mailman id 1288409; Tue, 21 Apr 2026 07:38:19 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) id 1wF5gZ-0001Ki-3j for xen-devel@lists.xenproject.org; Tue, 21 Apr 2026 07:38:19 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wF5gY-00DTgD-DA for xen-devel@lists.xenproject.org; Tue, 21 Apr 2026 09:38:18 +0200 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 69e72962-bab6-0a2a0a5309dd-0a2a4507d766-42 for ; Tue, 21 Apr 2026 09:38:18 +0200 Received: from [209.85.128.48] (helo=mail-wm1-f48.google.com) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 69e7296a-229c-0a2a45070019-d1558030e9a8-3 for ; Tue, 21 Apr 2026 09:38:18 +0200 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4891d7164ddso11466695e9.3 for ; Tue, 21 Apr 2026 00:38:18 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a5549f582sm13191255e9.33.2026.04.21.00.38.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Apr 2026 00:38:17 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" 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" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1776757098; x=1777361898; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=phBOziqZXh9EE62pJxbxmY03bAYvLJS7cJGH0nUQJLI=; b=KP558vMNMqYpHpjsm7uW6eBnutLcrxTLLIFX64m2ht+KyAcEyvzMFKz42hZQuCUcxr W0UE1EhONjsfZXK/LPdUI8pqTjVh9mzeRHs717oGjupwEt99yYYpvk5L4Px4J6VWX1wa zglciKQIjXeUJdz5kiTPVpGLn93hVwRPHmVlBXqAkeHDsfKjPvuN7Bmjy5A4YUoXCS+r dPku6OFBsopKV+4Q1QFXhTVNDsDLCn9/bKWHJiJuejipXgta2zOGSODCCnFZjMAvTDGb lrN2g4bMvATwQUIbYbP6cSITIzBLLdOUDMTl5MiRjpqwj7XeAsyg/m0i3dBfi4GJ3SAt sf2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776757098; x=1777361898; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=phBOziqZXh9EE62pJxbxmY03bAYvLJS7cJGH0nUQJLI=; b=VMi6l5fxXfzcGmb+Dp+ZSoK09+yIaMuvmBNigaDlPVZpxEMfDjd9iICyAETIq7fw12 QwKRgO8u18rm5pWW5hhu5e1eKEqZLWiWgMz24Z2LVJLwVAnEb20neEKlAPgMMxTTrrku pRmCAFSJvFFE7Oy/zSvHD+zMQdU3TptXTEMK57/QeezevK5jE96zu4qEtJ57Uw0tQL12 OZzAPpTHZnsy6mF9tDK8ta93UxTIuG+pa2lCrbx4pWCw12ShfRqnf49m8IKjg0DEAcUz pUpdh6OTMdaqOQQEIi9F3rAQryfSXSxD87dQlb2P3MDVTkE8IzgC9RwJcgGxyzi+k7aZ 1gkQ== X-Forwarded-Encrypted: i=1; AFNElJ8gG/NhJkxvCXb57v0bVj5QmTmPgojrXpHOkA27SyjzeRooCsKx9KYyLI7ZEK4FRvaCiTv+ews8FbI=@lists.xenproject.org X-Gm-Message-State: AOJu0Yyyy94CICSLjPyvmMtGd7dXe/mYSu7QkWgcpPuQD+U8TF4/o+mP qKjpD1KG6f0wePNzD2bv98Z1q079SX3KGxmFNIUcFoLI4/f3lVqtTiy3WXjXcO9J9A== X-Gm-Gg: AeBDieu22csILXdd0XSVdmB8u4masy5troHqhP2iD/Oa/KL0PwdibireYd0SqEgRtID cGa6+le7J8jbuZ1NtJBNhXgxriLAU8tJd5Dy/JMzCIWXCCrdv6OywFANI/3xdtWZeQD7zIsGSGR xEbLRCPddZ/LRohgWq5Gp9rhp04OUE9YXoNwF4nJR1y2UuvtyZq23+qvwRSkmI09G/yDgrpJ/hC MKjmOge53RDm1LmdmAoAmSJSocl21eE7QV1EfMj5Eq0mih7qu2HMaFh/dbBNhyjAWJtCs4at7sI Lw+GvrgmKrOl6+VoBvjLg14ACQhH/nl5ogqzP3ZnaU/aVIBmoCsNE/rtavdb+xPXTGM0aNZV5wp nZaahUf1wGa0m1sA2z3872kRtfNq2fDuhDFCBblkXjfHNT++PdLlFVWnvFRuzAobbjOMPoyCs6N wAhAyfnLTiTwu7khTKYwpSNF9EdJK0aI16kyLI7PdRHYutQ1FIzTOjaRourAE9qLGNgcITEtaP6 pFGLOD70rdYk55vcOXzucLjWw== X-Received: by 2002:a05:600c:a30b:b0:487:2671:fb8f with SMTP id 5b1f17b1804b1-488fb74dfe5mr165197925e9.8.1776757097708; Tue, 21 Apr 2026 00:38:17 -0700 (PDT) Message-ID: <2c8c5cb9-c5bf-4e79-a390-33b75c5c3423@suse.com> Date: Tue, 21 Apr 2026 09:38:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 03/16] x86emul: support AVX10.1 To: Oleksii Kurochko Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Teddy Astie , Community Manager , "xen-devel@lists.xenproject.org" References: <1e2ff012-b07a-43be-9ba6-290b38d3c97c@suse.com> Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBAC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ACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-purgate-ID: tlsNG-ef75cf/1776757098-AE971C48-7A8C7A27/10/73395122804 X-purgate-type: spam X-purgate-size: 2863 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 >> --- >> 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 . 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