Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D2411C433F5 for ; Wed, 23 Mar 2022 16:48:54 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.293964.499589 (Exim 4.92) (envelope-from ) id 1nX49s-0007rW-7T; Wed, 23 Mar 2022 16:48:28 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 293964.499589; Wed, 23 Mar 2022 16:48:28 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nX49s-0007rP-4b; Wed, 23 Mar 2022 16:48:28 +0000 Received: by outflank-mailman (input) for mailman id 293964; Wed, 23 Mar 2022 16:48:27 +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 1nX49r-0007rJ-Af for xen-devel@lists.xenproject.org; Wed, 23 Mar 2022 16:48:27 +0000 Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 0d9a2a9f-aac9-11ec-a405-831a346695d4; Wed, 23 Mar 2022 17:48:24 +0100 (CET) Received: from m5p.com (mailhost.m5p.com [IPv6:2001:470:1f07:15ff:0:0:0:f7]) by mailhost.m5p.com (8.16.1/8.15.2) with ESMTPS id 22NGUsfg024825 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 23 Mar 2022 12:31:00 -0400 (EDT) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.16.1/8.15.2/Submit) id 22NGUsfg024824; Wed, 23 Mar 2022 09:30:54 -0700 (PDT) (envelope-from ehem) 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: 0d9a2a9f-aac9-11ec-a405-831a346695d4 Date: Wed, 23 Mar 2022 09:30:54 -0700 From: Elliott Mitchell To: Roger Pau Monn?? Cc: xen-devel@lists.xenproject.org, Jan Beulich , Andrew Cooper , Wei Liu Subject: Re: Questions about Cx and Px state uploading from dom0 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Mar 23, 2022 at 09:54:24AM +0100, Roger Pau Monn?? wrote: > > 2. When uploading Px states, what's the meaning of the shared_type > field in xen_processor_performance? I've looked at the usage of the > field by Xen, and first of all it seems to be a layering violation > because the values set in the field (CPUFREQ_SHARED_TYPE_*) are not > exposed as part of the public interface. This all works for Linux > because the same values are used by Xen and the Linux kernel. > Secondly, this is not part of the data fetched from ACPI AFAICT, so > I'm unsure how the value should be calculated. I also wonder whether > this couldn't be done by Xen itself from the uploaded Px data (but > without knowing exactly how the value should be calculated it's hard > to tell). This would account for some of the behavior with Xen and Linux. The Xen C-state support doesn't seem to be in a stable state. I've seen the level of functionality vary by version of Xen and Linux. In particular C-states appear to be a problem. Enabling C-states besides C0 appears to require a corresponding Domain 0 vCPU. If Domain 0 has fewer vCPUs than physical cores, C2 will be unavailable on some cores. Also, C2 is only available with some combinations of Xen and Linux. This isn't an issue for datacenters where idle processors are wasted money, but for smaller systems reduced power consumption is a good thing. Hypervisors are moving onto smaller and smaller systems, so power consumption is a bigger issue now. -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | ehem+sigmsg@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445