From nobody Sat Nov 23 20:47:32 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1730795372; cv=none; d=zohomail.com; s=zohoarc; b=Qp7EIOVIdHWOyGB5MBQNV53bFYOc9W29luaQb+se0mAU4XLyydfC/JehMJE+PPcLRNdAoVzWs9YCM5MFqZvrFHHj7aP8al98oeTBBsqI6tr5GJBwtKjksj7KEK/Y0tE/sNq1x7R3iCyqcW2O7r15Iw80hifx5AeL/+4MrCm/Ztc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1730795372; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2UOZcrVgXPkwDZNLiPo4ketdNOaWW/W0xEwr7eJy4zc=; b=Z1gcU+PUFYY4LQ3nSeAFe+80HE/jebmKbMNq2FQhR5qBxdzTQ+8Y+4XnJw8KBpMvTOzTq+fDbwbLdmt6E78h+WK7dYl8JqEI0KGOieK32V4KHdWUoEBpTpFbgKLeFSQGxlJI813j830lo+Nvz1T4B7Ye8pKtdboclpx9JX/I89w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1730795372000970.3175318574346; Tue, 5 Nov 2024 00:29:32 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8Evt-00035G-MY; Tue, 05 Nov 2024 03:29:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8Evr-00034r-Oy for qemu-devel@nongnu.org; Tue, 05 Nov 2024 03:28:59 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8Evp-0006Bz-B4 for qemu-devel@nongnu.org; Tue, 05 Nov 2024 03:28:59 -0500 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-76-vJhadsUBMm2I0M1C7n9-jw-1; Tue, 05 Nov 2024 03:28:53 -0500 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-37d531a19a9so2764724f8f.1 for ; Tue, 05 Nov 2024 00:28:52 -0800 (PST) Received: from [192.168.10.3] ([151.49.226.83]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c10d414csm15267093f8f.26.2024.11.05.00.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 00:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1730795335; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2UOZcrVgXPkwDZNLiPo4ketdNOaWW/W0xEwr7eJy4zc=; b=is721H08SJftVpE+SvMs/BqIDLazxkn4dFxJlQHa/HkcT7glnjZbE+yWGp+ugqOgDgU+kR x5phGnoayRQphYejbi/4bl39x3e4BVNa7Qt56XvtUv4ISUkkJG0dTALCy484M1/5DWBAww uzezWLkI5MvB3tG+PPZMx/+cJjWTij0= X-MC-Unique: vJhadsUBMm2I0M1C7n9-jw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730795331; x=1731400131; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2UOZcrVgXPkwDZNLiPo4ketdNOaWW/W0xEwr7eJy4zc=; b=L+0Oe+zSrKRYf3tVwl7dTKTX1HsgN7gyyB92xupae3Air7I5CPxWFKalW+iA5RpWEv ns0Qla4J7mWizxKy+rI1xXCxdWwkNUlSVpZUkAIw+ICM9WY17TVdauE73IIcQkTm9zeG Dh9myKLDEV28M8t3d5ICZmtU7Da2CXPwklOwGpr7XgkNd5W9v8XbVLRWSTSDVa9+8oeh +vzML4C3lv+KwVQt3swCj1bdNu0T+0pGaT5Ku8PwpkxtGTVocxfFbHvYHtXZ06NeXxAm d3ZugX1kNYVcnZf/GjcvKa9qk5Rt3+njeEtbr9WpfxAKxobTU3he+0qxXCzijyFkJUaG luag== X-Gm-Message-State: AOJu0YyemdYw560GfD3/BlVndxv5tCP4T2hELFQ/n9GglyIY1IcWJr70 J4ETdehBfGPgFuSvIi9iK/BekfKSS22EFomiSndOV6J1IbTCQlg4qBdFQn81VQhFbLzxBnD+Hpz tHcEmAP9CSmoRydMdL94XfEsufOMtxuV543r728wBlkw260fKB0R637ghNuMqsKfLZExUYXMLSs WjAtMtoZqEiLpJOorGJwPA/CDkzZkenOkmuMcN7pw= X-Received: by 2002:a05:6000:2c5:b0:37e:c4e3:f130 with SMTP id ffacd0b85a97d-381be907327mr16551548f8f.41.1730795331085; Tue, 05 Nov 2024 00:28:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGegtoYcVs3YZ/j7f3JPQXN9ZIISl6XoIIFjDr6opABqxJ4GZXZgGdAqL06ENyM+zTG7gBOxA== X-Received: by 2002:a05:6000:2c5:b0:37e:c4e3:f130 with SMTP id ffacd0b85a97d-381be907327mr16551526f8f.41.1730795330593; Tue, 05 Nov 2024 00:28:50 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: tao1.su@linux.intel.com Subject: [PATCH] target/i386: add avx-vnni-int16 feature Date: Tue, 5 Nov 2024 09:28:48 +0100 Message-ID: <20241105082848.230020-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.34, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1730795374149116600 Content-Type: text/plain; charset="utf-8" SHA512, SM3, SM4 (CPUID[EAX=3D7,ECX=3D1).EAX bits 0 to 2) is supported by Clearwater Forest processor, add it to QEMU as it does not need any specific enablement. See https://lore.kernel.org/kvm/20241105054825.870939-1-tao1.su@linux.intel= .com/ for reference. Signed-off-by: Paolo Bonzini Reviewed-by: Tao Su --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 3baa95481fb..ae5b85f4e8e 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1113,7 +1113,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] =3D { [FEAT_7_1_EAX] =3D { .type =3D CPUID_FEATURE_WORD, .feat_names =3D { - NULL, NULL, NULL, NULL, + "sha512", "sm3", "sm4", NULL, "avx-vnni", "avx512-bf16", NULL, "cmpccxadd", NULL, NULL, "fzrm", "fsrs", "fsrc", NULL, NULL, NULL, --=20 2.47.0