From nobody Fri Dec 12 14:09:25 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=1764693773; cv=none; d=zohomail.com; s=zohoarc; b=KOpt15tGu1n3IDGP1aTMcW1XSUBpcTNER8JGsJnYFFrU0+OT+4Ci5rEl+cgne75/Hh6EvjY5xRRUR2BNPtwM6NCgFVojno5+1WkzPFj292gw9TkIp3IAzUwejkXKdttqS9XX0U3q+E/yBYhY/7xGXShPz8WvtIP3+sClW2GVtq0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764693773; 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=j2Dl3ZFleMpK0KGWOYyH5tffmUFMS5bPvoYA1UGH3W4=; b=g4O9YaiE0TcNSL9MtrJwp6rbFBwpK1eHOJSvxQfIIp6gSMFv4Wg3va/ZJu1Bmwsqn7tbATNSeMtNI3GCKQeTm2jBmtRo+El4GlFHTGdyhr+sNIb/jVGlreNSOyqnJIQ9GUp6fV+3xJMvmodPO0vxvD0MKDTon/XGwHlong16eGY= 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 1764693773075327.898963047939; Tue, 2 Dec 2025 08:42:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vQTRA-0001Sd-Hj; Tue, 02 Dec 2025 11:41:12 -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 1vQTR0-0001Ak-Ew for qemu-devel@nongnu.org; Tue, 02 Dec 2025 11:41:03 -0500 Received: from mgamail.intel.com ([192.198.163.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vQTQy-0002FS-9d for qemu-devel@nongnu.org; Tue, 02 Dec 2025 11:41:02 -0500 Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2025 08:40:58 -0800 Received: from liuzhao-optiplex-7080.sh.intel.com ([10.239.160.39]) by orviesa001.jf.intel.com with ESMTP; 02 Dec 2025 08:40:55 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1764693660; x=1796229660; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UDxIzRjac8HAVpNVM7Gth/kx7qmxF7rXuv/fqinoc9M=; b=kldSoRgMFkZAp9eRcpyliIG7Hn6H75TU+/W1dkfxF/l5gbqDfTvcI3Sg Z3Nl5wGnMWhH7Uef/4wIbDw4ETg6Bo7JdJInDrevPCDbilfNoABM0yrIi fcJei6b0fWsemuX2d4SG1p9RrMak9qcmvsB/ifHWNa6r8m4KKV+x3pdpw tgxS7PjqRV/8VWRqdP2qHs8P0EVnQq8HiZCzKMMICB06Df+ex7BZ8X/dq FqMyR9vjY1O2XZ7nL683b1Y9DfaMOsvmSPgGyAGZmSSQ9d5WlkO2487Rv Jv5vDOR1dlRJ8iHFH24RdtxR8KzuDu+8mmySmMPyQqpIk37DEjt4F2yaJ w==; X-CSE-ConnectionGUID: Lqgpphw+RquYERFWzOrpNg== X-CSE-MsgGUID: sYwrfgPYTcWGThkqvdW8dQ== X-IronPort-AV: E=McAfee;i="6800,10657,11630"; a="66555403" X-IronPort-AV: E=Sophos;i="6.20,243,1758610800"; d="scan'208";a="66555403" X-CSE-ConnectionGUID: LB7quNABQlSgELC2e530Kg== X-CSE-MsgGUID: +8Z4E16GSoqlahrS++earA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,243,1758610800"; d="scan'208";a="231751422" From: Zhao Liu To: Paolo Bonzini , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Eduardo Habkost , Markus Armbruster , Thomas Huth , Igor Mammedov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Cc: qemu-devel@nongnu.org, Peter Maydell , "Michael S . Tsirkin" , BALATON Zoltan , Mark Cave-Ayland , devel@lists.libvirt.org, Zhao Liu Subject: [RFC 09/10] target/i386: Deprecate cpuid-0xb property Date: Wed, 3 Dec 2025 01:05:01 +0800 Message-Id: <20251202170502.3228625-10-zhao1.liu@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251202170502.3228625-1-zhao1.liu@intel.com> References: <20251202170502.3228625-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.17; 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_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 @intel.com) X-ZM-MESSAGEID: 1764693775159019200 Content-Type: text/plain; charset="utf-8" "cpuid-0xb" was previously disabled only on PC-Q35-2.6 and PC-I440FX-2.6 machines, but PC v2.6 machines have been removed. Considerring it may have external use, so deprecate it before removal. Signed-off-by: Zhao Liu --- docs/about/deprecated.rst | 10 ++++++++++ target/i386/cpu.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index c60924b4f313..741c1a71728b 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -495,6 +495,16 @@ The ``fill-mtrr-mask=3Dtrue`` fill the bits between 51= ..number-of-physical-address false only on PC-Q35-2.6 and PC-I440FX-2.6 machines, but PC v2.6 machines = have been removed. Deprecate this property to stop external use. =20 +``cpuid-0xb`` on x86 (since 11.0) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The ``cpuid-0xb`` is used to control whether to encode CPUID 0xB leaf or n= ot. +Only legacy x86 CPUs didn't have 0xB leaf, and the ```level``` property can +control whether CPUID exposes the 0xB leaf and emulate legacy CPUs. This +property was previously set to false only on PC-Q35-2.6 and PC-I440FX-2.6 +machines, but PC v2.6 machines have been removed. Deprecate this property = to +stop external use. + ``pmu-num=3Dn`` on RISC-V CPUs (since 8.2) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ =20 diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 1f0a8cb6cec1..ef1ffc4d3d4f 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -10009,7 +10009,7 @@ static const Property x86_cpu_properties[] =3D { DEFINE_PROP_UINT8("avx10-version", X86CPU, env.avx10_version, 0), DEFINE_PROP_UINT64("ucode-rev", X86CPU, ucode_rev, 0), DEFINE_PROP_STRING("hv-vendor-id", X86CPU, hyperv_vendor), - DEFINE_PROP_BOOL("cpuid-0xb", X86CPU, enable_cpuid_0xb, true), + DEFINE_PROP_BOOL_DEPRECATED("cpuid-0xb", X86CPU, enable_cpuid_0xb, tru= e), DEFINE_PROP_BOOL("x-vendor-cpuid-only", X86CPU, vendor_cpuid_only, tru= e), DEFINE_PROP_BOOL("x-vendor-cpuid-only-v2", X86CPU, vendor_cpuid_only_v= 2, true), DEFINE_PROP_BOOL("x-amd-topoext-features-only", X86CPU, amd_topoext_fe= atures_only, true), --=20 2.34.1