From nobody Wed Sep 3 03:48:17 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1750925503; cv=none; d=zohomail.com; s=zohoarc; b=iBnEXZihF+VDKXyeP5MNGW/O9pr8xcNJNukbo4DrTL3jiLV/Rp2cM9opnah88J++vanddHkmv6oun0t8yI9Y201y+yhgHSSw5Nqwkgg+f6Ij8KhxY4dJOU5bKhBqE/K+Uu4zd+nnOemuPVFeK+iYok0kUd6c343p4yLdCKklg9E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1750925503; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=EqyZ/lq3XVyjZ1U3OdJ4hxF33CMw5lSYsZmJiYSLuEU=; b=SK6v5VBTP6vEZU6zy1MR1lkQYlXX0IKFeiRxgOsxXnqGuaX+QaA2gpFICnyrXxrJC3BQtzP3xRdrB1dmxVgibKryA6OAOU5zFxJ1R6GfXS26Uxt+k9kChikNxhDS0hP2N1uW4PPxjpGH6+IRPpGGn+ructuDH/t9uXYU0P1XWw0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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 1750925503045491.43131252611533; Thu, 26 Jun 2025 01:11:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uUhgg-0002E1-Bg; Thu, 26 Jun 2025 04:10:26 -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 1uUhge-0002DU-KG for qemu-devel@nongnu.org; Thu, 26 Jun 2025 04:10:24 -0400 Received: from mgamail.intel.com ([192.198.163.9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uUhgb-0006eP-HS for qemu-devel@nongnu.org; Thu, 26 Jun 2025 04:10:24 -0400 Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2025 01:10:19 -0700 Received: from liuzhao-optiplex-7080.sh.intel.com ([10.239.160.39]) by orviesa008.jf.intel.com with ESMTP; 26 Jun 2025 01:10:16 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1750925421; x=1782461421; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=C0a6tqpkzpJUuOzvfvUQv/qlyuviRct/mBcEnu+0pwg=; b=DZiJKHrfgkkUylFaeLz816WEhlW5BUIK2Tr0TNfR9w94iOhntc2N6WWB 0sROAo0eqSxTVEMhKE6xxIjsavOwD66dWl17A5L6qqJe5nAACapMfYYqx YLhAusUcHGLtxYNSE/zlEGxG5uBXWSvQ8Db+qMR0myHPc7LibXDu3z5L+ MTqN8F+DJWIQGfOKhV0f2v70bhM1UuyMZyKOSY0OBzLvSmJ7hyOq752km NXyPu+XSiOezPkQ4ywYFWcD0THuh2RVlVq+krsKLgOszDxiJajWEdpz0I nnj6bRqStsbs4aQgkHykmUw2ygc4QBQohNWrRTJMzRXhg9d4I3hwXGhSZ g==; X-CSE-ConnectionGUID: apn4QYGfTC6J5pX35/+w4Q== X-CSE-MsgGUID: UwC9/M6QSDONL851X2JCGQ== X-IronPort-AV: E=McAfee;i="6800,10657,11475"; a="63902150" X-IronPort-AV: E=Sophos;i="6.16,267,1744095600"; d="scan'208";a="63902150" X-CSE-ConnectionGUID: HXD0UqQfQHKiUrlCQzsr7Q== X-CSE-MsgGUID: /ht8Eg/3Q7ifDlkDjtyzBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,267,1744095600"; d="scan'208";a="152950038" From: Zhao Liu To: Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Igor Mammedov , Eduardo Habkost Cc: Ewan Hai , Jason Zeng , Xiaoyao Li , Tao Su , Yi Lai , Dapeng Mi , Tejus GK , Manish Mishra , qemu-devel@nongnu.org, Zhao Liu Subject: [PATCH 7/8] i386/cpu: Enable 0x1f leaf for GraniteRapids by default Date: Thu, 26 Jun 2025 16:31:04 +0800 Message-Id: <20250626083105.2581859-8-zhao1.liu@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250626083105.2581859-1-zhao1.liu@intel.com> References: <20250626083105.2581859-1-zhao1.liu@intel.com> 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=192.198.163.9; envelope-from=zhao1.liu@intel.com; helo=mgamail.intel.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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 @intel.com) X-ZM-MESSAGEID: 1750925505014116600 Content-Type: text/plain; charset="utf-8" Host GraniteRapids CPU has 0x1f leaf by default, so that enable it for Guest CPU by default as well. Suggested-by: Igor Mammedov Signed-off-by: Zhao Liu Reviewed-by: Dapeng Mi --- Changes since RFC: * Rename the property to "x-force-cpuid-0x1f". (Igor) --- target/i386/cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 70f8fc37f8e0..acf7e0de184d 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -5242,8 +5242,11 @@ static const X86CPUDefinition builtin_x86_defs[] =3D= { }, { .version =3D 3, - .note =3D "with gnr-sp cache model", + .note =3D "with gnr-sp cache model and 0x1f leaf", .cache_info =3D &xeon_gnr_cache_info, + .props =3D (PropValue[]) { + { "x-force-cpuid-0x1f", "on" }, + } }, { /* end of list */ }, }, --=20 2.34.1