From nobody Mon Feb 9 10:32:43 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=1768612754; cv=none; d=zohomail.com; s=zohoarc; b=L5sXC3ZZYJEQkHWq5f87jvXrB+st0Xac6lRXc1nRU4p4oW08bRkYmfcehfNtP879igo0wcY/tgQOMioJw3yGeumHawB6zWn3epVCUFeYR/gp1hIGDvPCXOMnD54nUxpD+ReAE2AVtKI39ocmo8W2o6tdQCFY7V3nmbCdKPfPGyU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768612754; 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=KD2Ixxok2eOedty/KqJEB70kdO5HPgHKpgT0RK+fk+4=; b=Sc7WCtHFIAp71gPbCBa2rypOZ5s8pl8pIYkuKAIp7SluO5j2/gDOVxa1yZbcVfYvszJ5oGz4GXy/FrqATwJG1MBpk57pWwq59AOSCkElASh9XUz4EkTA8wW19Yx3AQuxuxq3sXbav7MgBK4SBa/ozQMXBKe8Vkd0JJAHR0kwj5U= 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 176861275487035.34046104070546; Fri, 16 Jan 2026 17:19:14 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vguxK-0004oF-QB; Fri, 16 Jan 2026 20:18:22 -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 1vguxF-0004nH-Mw for qemu-devel@nongnu.org; Fri, 16 Jan 2026 20:18:18 -0500 Received: from mgamail.intel.com ([192.198.163.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vguxE-00077n-3l for qemu-devel@nongnu.org; Fri, 16 Jan 2026 20:18:17 -0500 Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2026 17:18:09 -0800 Received: from 9cc2c43eec6b.jf.intel.com ([10.54.77.43]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2026 17:18:09 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1768612696; x=1800148696; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2R2pFzeaXsFhmsgZPzDgKDW8nxLi3n1LYVYLNZ0AwJ8=; b=F90M5TVI/kqWpE0Spk4okwIz70pQsebQUGye7q8oJFMChkofZeoD5A1C M2pF4DQ1e+au1ycndm4SrPJPoqZtLwp6JhGyfspTIxIg2zVqqkyPfAJmr Ct1FBXBiNenPU3Gml7hWqOq3gOgqwMEy8OrepUsBQ0fueAnh2xDGYXkFt pmv+4J+s5QA+oYsWZy1t0c4cMmUH4sjN9JFrSVODVE1L0PXRAG3pN42vV 57GeI4DA0gRZh9BCE1nuLD65wAjav2NS+QN/y6RcL7KSFw8wHh8oW2Owb 7qwcY1tBnJYpo4q4R4Nzu72kwst9WHTfJaUuX7JcI3As3YQL+RztQh6I2 Q==; X-CSE-ConnectionGUID: 3gCf3/5rQLKXfmdegZvD0w== X-CSE-MsgGUID: dscpg8Q0TtCpIYegZjNVUQ== X-IronPort-AV: E=McAfee;i="6800,10657,11673"; a="69131173" X-IronPort-AV: E=Sophos;i="6.21,232,1763452800"; d="scan'208";a="69131173" X-CSE-ConnectionGUID: BTMa7AWnQjGZUDSRdc2D5Q== X-CSE-MsgGUID: ycrDxFSbRPaAZpXUWTRNtg== X-ExtLoop1: 1 From: Zide Chen To: qemu-devel@nongnu.org, kvm@vger.kernel.org, Paolo Bonzini , Zhao Liu , Peter Xu , Fabiano Rosas Cc: xiaoyao.li@intel.com, Dongli Zhang , Dapeng Mi , Zide Chen Subject: [PATCH 6/7] target/i386: Make some PEBS features user-visible Date: Fri, 16 Jan 2026 17:10:52 -0800 Message-ID: <20260117011053.80723-7-zide.chen@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260117011053.80723-1-zide.chen@intel.com> References: <20260117011053.80723-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 (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.18; 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: 1768612756521158500 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 intentionally not exposed. They are not meaningful as user-visible features, and QEMU registers CPU features as boolean QOM properties, which makes them unsuitable for representing and checking numeric capabilities. Co-developed-by: Dapeng Mi Signed-off-by: Dapeng Mi Signed-off-by: Zide Chen --- 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 f1ac98970d3e..fc6a64287415 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