From nobody Sat Dec 13 06:18:20 2025 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=reject dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1765300774; cv=none; d=zohomail.com; s=zohoarc; b=AC/cWvBgoP2tIXedbbJjPz4gPf3KWYbUmXHbf4dUXKt3i7yAha/E3Igk3CaAaezMFz4afWV6DC+yUiBCdwkPd9MHQDUK2zBRnnKhCh4ozipzpdriBkZWvTvEPpNVeYFVS0foSLz5ZgN3fhn/dCVY0ZHxo14SBcdzI8+7SBZ33+M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1765300774; 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=zb7G5zIrK8ZCQZTkyb087CIMe6mjbmKnl+xgf9D+q6E=; b=N3Z6Isi/EV7EjvLnoRXa9OM4GyA/ADJPVcbtmCs3c+S6uCtYWjWZNhDW2PAw3k50DHVv10zHbWDxCW5FWUbtUozcdGzbuj6TOqswoDRIypV3CLguNsNRaOvFqDskMXIqlElQ+E5XrhGmdiKTZCfw/F6XB5miW46pvl+KZSU8Uxw= 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=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1765300774131840.8800404971433; Tue, 9 Dec 2025 09:19:34 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1182035.1504974 (Exim 4.92) (envelope-from ) id 1vT1Ml-0005cV-Lf; Tue, 09 Dec 2025 17:19:11 +0000 Received: by outflank-mailman (output) from mailman id 1182035.1504974; Tue, 09 Dec 2025 17:19:11 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vT1Ml-0005cN-II; Tue, 09 Dec 2025 17:19:11 +0000 Received: by outflank-mailman (input) for mailman id 1182035; Tue, 09 Dec 2025 17:19:10 +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 1vT1Mk-0005c7-AC for xen-devel@lists.xenproject.org; Tue, 09 Dec 2025 17:19:10 +0000 Received: from mail187-28.suw11.mandrillapp.com (mail187-28.suw11.mandrillapp.com [198.2.187.28]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 2b7099d3-d523-11f0-b15b-2bf370ae4941; Tue, 09 Dec 2025 18:19:08 +0100 (CET) Received: from pmta09.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail187-28.suw11.mandrillapp.com (Mailchimp) with ESMTP id 4dQlvH0WMTzMQxgGn for ; Tue, 9 Dec 2025 17:19:07 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 1005dcf71bf14d459bc070e2aa73c258; Tue, 09 Dec 2025 17:19:07 +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: 2b7099d3-d523-11f0-b15b-2bf370ae4941 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1765300747; x=1765570747; bh=zb7G5zIrK8ZCQZTkyb087CIMe6mjbmKnl+xgf9D+q6E=; 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=G89TV/4FcDCDatAVS6dkUS+8RvWPXiw3Wmb8RlhcEFEm390eQXyGlsOysrsbc83Oq 6fRnmahPqykuxYerWemjO5nSmbgTb9Ul9Zx2qgaOQQyaTFLn5iQCKj9QIn9P8ew9CB rNFFAZ8BA3XyEN3jxLIjOPXpffoNrW6NR38y/GZF20D645zlFS4JTJIF0hPl/xf+Iv aJXkFgp7eE2kISfX3ubHlfYax09vrhT4KY35Cc7uJBDZa5xHHtNckozWp3Ohz3/9TF 8S97UktcLP+E4nGahwyoyQoWarzzboZ0c1hMG/SufYavuf+k9HJ0RfjbEXj4YdEmD8 D98BrmCrpl7pw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1765300747; x=1765561247; i=teddy.astie@vates.tech; bh=zb7G5zIrK8ZCQZTkyb087CIMe6mjbmKnl+xgf9D+q6E=; 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=gQg0wgiVVTh53uodaTza/Uf2EnvQVbuGtBHczxZ8RcYbxOHi3A8io2z4ArQEBxJsr 6Pnxa05jUXMvDOK/lwgoV/eAvyKOG+p8pCA9g/5/aiNCNFMFwC8ilmVTCn28gXLBVL cdpo1GwQhw2GwG4Yzz6ttzm0KS/lMFgLM0SldTq9Rxne6g15EwbqcfYFvI+Mb8jg4f ydvDngw1Ear5OABu41Ppx4eY57NieV7VHBfa8ShXNhauG9u66ZhLH3dovEhCXGMOCm XHAYP/GXoPJmfhU+xYtbuin/Pqlks+UDoQJZ3IHpekNK8bsp2+HmWvnlbgvDuC+Rpr bxwuLlEi/Y1Qw== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH=20v3=201/3]=20x86/cpu-policy:=20Infrastructure=20for=20CPUID=20leaf=200x6?= X-Mailer: git-send-email 2.51.2 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1765300746124 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" Message-Id: 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.1005dcf71bf14d459bc070e2aa73c258?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20251209:md Date: Tue, 09 Dec 2025 17:19:07 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity teddy.astie@vates.tech) (identity @mandrillapp.com) X-ZM-MESSAGEID: 1765301698143158501 Content-Type: text/plain; charset="utf-8" From: Jan Beulich Signed-off-by: Jan Beulich Signed-off-by: Teddy Astie --- xen/include/xen/lib/x86/cpu-policy.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/xen/include/xen/lib/x86/cpu-policy.h b/xen/include/xen/lib/x86= /cpu-policy.h index f94f23e159..c721c986cc 100644 --- a/xen/include/xen/lib/x86/cpu-policy.h +++ b/xen/include/xen/lib/x86/cpu-policy.h @@ -121,7 +121,32 @@ struct cpu_policy uint64_t :64, :64; /* Leaf 0x3 - PSN. */ uint64_t :64, :64; /* Leaf 0x4 - Structured Cache. */ uint64_t :64, :64; /* Leaf 0x5 - MONITOR. */ - uint64_t :64, :64; /* Leaf 0x6 - Therm/Perf. */ + + /* Leaf 0x6 - Therm/Perf. */ + struct { + uint32_t /* a */ + dts:1, + turbo:1, + arat:1, + :4, + hwp:1, + hwp_notification:1, + hwp_activity_window:1, + hwp_epp:1, + hwp_plr:1, + :1, + hdc:1, + :2, + hwp_peci:1, + :2, + hw_feedback:1, + :12; + uint32_t /* b */:32; + uint32_t /* c */ aperfmperf:1,=20 + :31; + uint32_t /* d */:32; + } pm; + uint64_t :64, :64; /* Leaf 0x7 - Structured Features. */ uint64_t :64, :64; /* Leaf 0x8 - rsvd */ uint64_t :64, :64; /* Leaf 0x9 - DCA */ --=20 2.51.2 -- Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech