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.gnu.org (lists.gnu.org [209.51.188.17]) (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 3A1F8C4332F for ; Wed, 2 Nov 2022 08:55:44 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oq9Wl-0006KR-H8; Wed, 02 Nov 2022 04:55:19 -0400 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 1oq9Wa-00065p-FK for qemu-devel@nongnu.org; Wed, 02 Nov 2022 04:55:05 -0400 Received: from mga17.intel.com ([192.55.52.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oq9WL-0000rr-QO for qemu-devel@nongnu.org; Wed, 02 Nov 2022 04:54:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667379289; x=1698915289; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=M8oPNuCCdS3znGtahnUT/oBX7sj0FzS5TaxGMa+FpRs=; b=jKPi9m8TUh4unvQ6JWpJGwfSbdZ37hmx7ESgHCx15oY+mW3PDdlM72gV t3tiF9Ol2np82T3KaegJ3a6/VaLjQWAN6v5IlRzOztn6OdrVCf0rtn434 1faPn46ghTaE31pSnwBID+uscZ+WFdd3nu86FnoaSGo/gEXy7NgHxTFBk wr4JFM0X4KOnINOp+4UYKxMCHOGxpqLiHo4/wHUnrPphDuzO4Ica7EEgx NMILC0BX9vmEUvRzprrXZLBhtTW/29WFBBD/ZDj97UdcbrhhBL55GxUoV Yki/pG4IUV5qWqgo97+z4++VhlMbes45dKJRKZiJR7Ms16rOQmHUVHBxW Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="289739303" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="289739303" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2022 01:54:48 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="776815426" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="776815426" Received: from b49691a74b20.jf.intel.com ([10.45.76.123]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2022 01:54:48 -0700 From: "Wang, Lei" To: pbonzini@redhat.com Cc: qemu-devel@nongnu.org, dgilbert@redhat.com, berrange@redhat.com, xiaoyao.li@intel.com, yang.zhong@linux.intel.com Subject: [PATCH v2 0/6] Support for new CPU model SapphireRapids Date: Wed, 2 Nov 2022 01:54:41 -0700 Message-Id: <20221102085447.81228-1-lei4.wang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.55.52.151; envelope-from=lei4.wang@intel.com; helo=mga17.intel.com X-Spam_score_int: -54 X-Spam_score: -5.5 X-Spam_bar: ----- X-Spam_report: (-5.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.051, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This series aims to add a new CPU model SapphireRapids, and tries to address the problem stated in https://lore.kernel.org/all/20220812055751.14553-1-lei4.wang@intel.com/T/#mcf67dbd1ad37c65d7988c36a2b267be9afd2fb30, so that named CPU model can define its own AMX values, and QEMU won't pass the wrong AMX values to KVM in future platforms if they have different values supported. The original patch is https://lore.kernel.org/all/20220812055751.14553-1-lei4.wang@intel.com/T/#u. --- Changelog: v2: - Fix when passing all zeros of AMX-related CPUID, QEMU will warn unsupported. - Remove unnecessary function definition and make code cleaner. - Fix some typos. - v1: https://lore.kernel.org/qemu-devel/20221027020036.373140-1-lei4.wang@intel.com/T/#t Wang, Lei (6): i386: Introduce FeatureWordInfo for AMX CPUID leaf 0x1D and 0x1E i386: Remove unused parameter "uint32_t bit" in feature_word_description() i386: Introduce new struct "MultiBitFeatureInfo" for multi-bit features i386: Mask and report unavailable multi-bit feature values i386: Initialize AMX CPUID leaves with corresponding env->features[] leaves i386: Add new CPU model SapphireRapids target/i386/cpu-internal.h | 11 ++ target/i386/cpu.c | 311 +++++++++++++++++++++++++++++++++++-- target/i386/cpu.h | 16 ++ 3 files changed, 322 insertions(+), 16 deletions(-) -- 2.34.1