From nobody Wed Apr 8 04:28:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1773161135; cv=none; d=zohomail.com; s=zohoarc; b=flbj2CAreH7hvBMpsRCbQWrYM7rghpBTMY66/ZMqV0AY+A4v+qDB5tyZX44HIc7OOVG+EnuBT/wng0q0D9GklasGke+6AORiSOgqOEDmdObojTozPK/ydmh2vxJXAmok41/k8GsKpc1fcLzaabrZecU7aZTHfjfnCaZsjJRSbzU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773161135; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=1m7dPcMlJIb03kreZNPze6+WVgaHDmdl8ulwk259SZM=; b=HZhVFZUXXUVKV3wWDB/tTqcoehXiDk3jtqUAXByO2I1al/w/wUujLeOGLCAOKIKuTQiCNgk98wd0oCDDBn7U89hdEL3f/SQEHsrKH+ydZwEE4ba7R3wB9jHKHaCZN6sUJIaNeQKlGoF4D1Kn3sIu2zd/5u1C3rAlEMpEL78x3IU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1773161135492824.4756083683109; Tue, 10 Mar 2026 09:45:35 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1250306.1547792 (Exim 4.92) (envelope-from ) id 1w00Ca-0003GR-9s; Tue, 10 Mar 2026 16:45:00 +0000 Received: by outflank-mailman (output) from mailman id 1250306.1547792; Tue, 10 Mar 2026 16:45:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1w00Ca-0003GK-71; Tue, 10 Mar 2026 16:45:00 +0000 Received: by outflank-mailman (input) for mailman id 1250306; Tue, 10 Mar 2026 16:44:59 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1w00CZ-0002px-1I for xen-devel@lists.xenproject.org; Tue, 10 Mar 2026 16:44:59 +0000 Received: from mail132-19.atl131.mandrillapp.com (mail132-19.atl131.mandrillapp.com [198.2.132.19]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 789a7155-1ca0-11f1-b164-2bf370ae4941; Tue, 10 Mar 2026 17:44:57 +0100 (CET) Received: from pmta09.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail132-19.atl131.mandrillapp.com (Mailchimp) with ESMTP id 4fVfqq3K7VzkL for ; Tue, 10 Mar 2026 16:44:55 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 98e738de90924bc686cc968f1472c66f; Tue, 10 Mar 2026 16:44:55 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 789a7155-1ca0-11f1-b164-2bf370ae4941 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1773161095; x=1773431095; bh=1m7dPcMlJIb03kreZNPze6+WVgaHDmdl8ulwk259SZM=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=ale4B8aZNnm+IhxftIYstS2ITGOARPsmP2404cd+PXkOdEHx/ISNUtyLVXqpqa5js D6fegAL8rFFrvB9AjNyWdFAqj8nWm23zC0wJbidc93EOGBiZk2yEObFkQg7mric73F LZD2gCdWuOh3Df4C1Co9LGWFj1zQAHh6v2IB1AlrhB1hz9wTjI77UBYlkMgjH6ru/X tQjTLJSVeMgnFtG38ncAJo72ipNaenbwnbWT6Jj9Hivxlmiy5Hb5pvFcJ746QSVVwL B7ZVQAPsmYxDlnQtEqS/5yVC+9HcqSXK3eaFCF87KtHSUeD3e5+4xvNlHXkh7eDO/6 aoJ5PYpNO4P+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1773161095; x=1773421595; i=teddy.astie@vates.tech; bh=1m7dPcMlJIb03kreZNPze6+WVgaHDmdl8ulwk259SZM=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=fkhdNI1O+TmcQ+LMOmsMhLo9axcKs2ka3+WR1ZwDDfEeKcuV2yStGlmBKRrsc5o62 jLaKyt52PWmITR4fjnhrC5lOsMl6rcxfXP0umPFhzeuo5819lNZkssT3vO4GJZvPg8 ChaCYwMH9fPOBMuJAe4fkn2AulRuIMf0BJYIpAPDEWrvlGRJ/Kp+VkyvumYAhBmnig cePVJDovm3oE8EQ0XuQDRKPr8yf8CjZllJ7rhH+5rd8Jfv+JnjHnWsrZMWgVM9THEI bS5FREaL7yOAd93DDkic/U31afk4YcU7Y71c1j9u88pIk4JX4nuDbV5nVcB/Qcc3Ff suwqk2sA1+snA== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH=206/6]=20x86/vpmu:=20Allow=20PMU=20version=206?= X-Mailer: git-send-email 2.53.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1773161094603 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" Message-Id: <151db665c8e9014f0b09d3fbaed3f60448298f0f.1773160025.git.teddy.astie@vates.tech> In-Reply-To: References: X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.98e738de90924bc686cc968f1472c66f?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20260310:md Date: Tue, 10 Mar 2026 16:44:55 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @mandrillapp.com) (identity teddy.astie@vates.tech) X-ZM-MESSAGEID: 1773161137406158500 Content-Type: text/plain; charset="utf-8" PMU version 6 (notably implemented in Intel Core Ultra) is backward compati= ble with older versions, as we're exposing version 2 to the guest, it is not expected not try using PMU version 6 features. Signed-off-by: Teddy Astie --- I don't have the hardware to test vPMU on Intel Core Ultra, but I guess it's supposed to work, as it only introduces new features and doesn't disable existing ones. That could want a changelog entry regarding vPMU support on Intel Core Ultr= a=20 and alike ? xen/arch/x86/cpu/vpmu_intel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/cpu/vpmu_intel.c b/xen/arch/x86/cpu/vpmu_intel.c index 0871795218..9c8802b285 100644 --- a/xen/arch/x86/cpu/vpmu_intel.c +++ b/xen/arch/x86/cpu/vpmu_intel.c @@ -819,7 +819,7 @@ static int cf_check core2_vpmu_initialise(struct vcpu *= v) static bool ds_warned; =20 if ( v->domain->arch.cpuid->basic.pmu.version <=3D 1 || - v->domain->arch.cpuid->basic.pmu.version >=3D 6 ) + v->domain->arch.cpuid->basic.pmu.version >=3D 7 ) return -EINVAL; =20 if ( (arch_pmc_cnt + fixed_pmc_cnt) =3D=3D 0 ) @@ -904,6 +904,7 @@ const struct arch_vpmu_ops *__init core2_vpmu_init(void) case 3: case 4: case 5: + case 6: printk(XENLOG_INFO "VPMU: PMU version %u is not fully supported. " "Emulating version 2\n", version); /* FALLTHROUGH */ --=20 2.53.0 -- Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech