From nobody Mon Feb 9 17:23:26 2026 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=1769642382; cv=none; d=zohomail.com; s=zohoarc; b=dlte1r8fg5HVmJIBiQZQdLNwagDQGP+6cVRMV50E/HL5YIG2dz1IWkVZUHVwcjN2Aj2AlPGcqCZwPo+Y+P257Zhp6yJUV3xMYq/oDLsyLLPlCFJQQVNsjIULSWBS3+H5xpT1o134yXoSXK5ESKAcCBcI+kj4ZoDFNeXsf0mcCyk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769642382; 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=/yS61kxXBtgDn4im2mJhcFev4vajd2A7TxtuJ+KvdIo=; b=m87OirvxRASGxcfwP7Lon3WZi/2sa4TTRbkyAjvfM2rI0Bu1FNdZa5xH6w0kWhMD0LuHnjWJoZMe5BRufcP/oHdJCZZYvMLah7BJeNo5Ew7d/magFEdAtAYK6ot8Wk20uXMCVWJRwyFvl6lANVVbnwfOowtDL0zCJdqLEsQ3hlM= 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 1769642382148747.8521215267042; Wed, 28 Jan 2026 15:19:42 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vlEnH-0008TH-BX; Wed, 28 Jan 2026 18:17:51 -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 1vlEnE-0008PO-PU for qemu-devel@nongnu.org; Wed, 28 Jan 2026 18:17:48 -0500 Received: from mgamail.intel.com ([192.198.163.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vlEnD-0001ir-Al for qemu-devel@nongnu.org; Wed, 28 Jan 2026 18:17:48 -0500 Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2026 15:17:41 -0800 Received: from 9cc2c43eec6b.jf.intel.com ([10.54.77.43]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2026 15:17:40 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769642267; x=1801178267; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=n4k/dBndX6PazD52gFOh8+8Xc/EV6fspDOZfLr8VGQk=; b=FY/Zj2kXo1ir93e/CPS2xHpjP/9VHu1DcxYpXF7S1iAkNK/cmKEnvagK XYdDy4O3RS+tSJH5VNpa/P8pKfg7bppmev2pyPY3xiM7DyBQ/7WLvEC4h xuMANoktjj8xjup27yYVzcItMHsoT+pVkISSlRGtFyU6w8UvFEAPfJJWZ qiYD5bYbyDnKIbtuercIFLJXKMaZYIm6ENLxVIHD8h8H99L36ujUL/TDu x0xiC9iAxc7TwXDzZmdkyfPqVx9JWccur9puDHDaOaRjING4Md92kED2S fLTuM2Ezi5S0PR13AcBHpY976Isr8Mg3JW13Z0Bu7ip9Vgb3VbCaLPilr g==; X-CSE-ConnectionGUID: 86zV6b3pTduK3xQHlZ2ldg== X-CSE-MsgGUID: cNImTeVgTxGF1CmGbtRx5A== X-IronPort-AV: E=McAfee;i="6800,10657,11685"; a="73462335" X-IronPort-AV: E=Sophos;i="6.21,258,1763452800"; d="scan'208";a="73462335" X-CSE-ConnectionGUID: sjmY/ywyTQucpE4h6sBdAw== X-CSE-MsgGUID: s19KMWBaStm58hq2kDHykw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,258,1763452800"; d="scan'208";a="208001778" From: Zide Chen To: qemu-devel@nongnu.org, kvm@vger.kernel.org, Paolo Bonzini , Zhao Liu , Peter Xu , Fabiano Rosas Cc: Xiaoyao Li , Dongli Zhang , Dapeng Mi , Zide Chen Subject: [PATCH V2 07/11] target/i386: Make some PEBS features user-visible Date: Wed, 28 Jan 2026 15:09:44 -0800 Message-ID: <20260128231003.268981-8-zide.chen@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260128231003.268981-1-zide.chen@intel.com> References: <20260128231003.268981-1-zide.chen@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.13; envelope-from=zide.chen@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: qemu development 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: 1769642383076158500 Content-Type: text/plain; charset="utf-8" Populate selected PEBS feature names in FEAT_PERF_CAPABILITIES to make the corresponding bits user-visible CPU feature knobs, allowing them to be explicitly enabled or disabled via -cpu +/-. Once named, these bits become part of the guest CPU configuration contract. If a VM is configured with such a feature enabled, migration to a destination that does not support the feature may fail, as the destination cannot honor the guest-visible CPU model. The PEBS_FMT bits are not exposed, as target/i386 currently does not support multi-bit CPU properties. Co-developed-by: Dapeng Mi Signed-off-by: Dapeng Mi Signed-off-by: Zide Chen --- V2: - Add the missing comma after "pebs-arch-reg". - Simplify the PEBS_FMT description in the commit message. target/i386/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index d3e9d3c40b0a..f2c83b4f259c 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1618,10 +1618,10 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = =3D { .type =3D MSR_FEATURE_WORD, .feat_names =3D { NULL, NULL, NULL, NULL, + NULL, NULL, "pebs-trap", "pebs-arch-reg", NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, - NULL, "full-width-write", NULL, NULL, - NULL, NULL, NULL, NULL, + NULL, "full-width-write", "pebs-baseline", NULL, + NULL, "pebs-timing-info", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, --=20 2.52.0