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 68321C3ABC9 for ; Fri, 16 May 2025 10:42:07 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.986934.1372450 (Exim 4.92) (envelope-from ) id 1uFsVl-0001q4-8N; Fri, 16 May 2025 10:41:53 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 986934.1372450; Fri, 16 May 2025 10:41:53 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uFsVl-0001px-4O; Fri, 16 May 2025 10:41:53 +0000 Received: by outflank-mailman (input) for mailman id 986934; Fri, 16 May 2025 10:41:52 +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 1uFsVk-0001pr-IE for xen-devel@lists.xenproject.org; Fri, 16 May 2025 10:41:52 +0000 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [2a00:1450:4864:20::52b]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 60551822-3242-11f0-9eb6-5ba50f476ded; Fri, 16 May 2025 12:41:51 +0200 (CEST) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-600dbfe7b37so1232477a12.2 for ; Fri, 16 May 2025 03:41:51 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad52d2779efsm136249566b.77.2025.05.16.03.41.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 May 2025 03:41:50 -0700 (PDT) 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: 60551822-3242-11f0-9eb6-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1747392111; x=1747996911; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=SbAH3afseT0IFEIiUqd5KdjnhZsxM22cO8YrFfFbM0o=; b=ECt/wjzCtAVW2LUrNblc7duJ0nbD2xxNp1DfMxGDUeALEX5VItMntxhhISE56W0BCh RWgaYH+71zbed4L+2KvbpUC8+MuCULzalRMhw5lUbSvINgG7EuKTL+wx6AuA9+PV/a5D 6Pz0/xs9L4aX+BXjTi0Mu1HF1l8wBAhp32VGDxiAzdYsbSmOIVmsfmaxyMjbk+49B3VV +NB2ybMunqSgxCFhFUjeM75sJcTXUO0v9VsT7BCCGsrSSw+jOIKMVHhMuQGH9VQcU6Sx e7nQMRu/oCANwSGi0V+jWSOaEfmHsfr13bYjZAdk756Izth1z1kBWBACL/pU6Y1mbkeo YqDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747392111; x=1747996911; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SbAH3afseT0IFEIiUqd5KdjnhZsxM22cO8YrFfFbM0o=; b=OumqwxozNEQbWnSAnRtrf/JlTVWAAFIfpiPRLW3tS69VDjSYuvETjhjHmntD0UvmA/ m2CtVFEiOifmQgBPFwoxBZ/AY5ZbkEnYzCngzAmEljRjNgKmG7GbzZTXsOu/aQnVO4Jq NNU6pUP0DoTy0r5vKJPpfTjC+2ZSAt6iy2veKxWAZmF/oV5xsppAchxU4THCfH2DFo69 yHMWuDQxa8P9SN35iEkMLA5lZOBo0PCY/wEUoJ0Kxeteid35smzA2r/xYFWD2NY6E/19 ICVkrY+C0t47eM+qXfPxqDEZVNXwVYTZwunQPxP/ECdt0gYkmrvyX0GAMibkqKKHIqeK Qmpg== X-Forwarded-Encrypted: i=1; AJvYcCUgBFhJc2pk77ODQHI/sslBbX76wgN6INpA+uFuXMXF6ZDCB3IsYn9ay/bikFevXPSBuaOjiA312jg=@lists.xenproject.org X-Gm-Message-State: AOJu0YzGuaBJ2Vrn4w0qPPTaYCf/Nq9qjJA8rzXuL8kGFHZPCJFPEiDc utBfgvlrxummQfMTxJbxwQOPXXvFnGuwQCqwuDK1B2TYCZ9PWdqWqJPCQVVqwxFn1A== X-Gm-Gg: ASbGncv7VLBTYotTBTkcTizY3Zduy0UwEclmJpQI784XNCFePuBnAaNzutKXF4xguiS 2ygtpKnEkh0TZPIfse+mKvn5HpPhkkK5zOTo7KxCyQ3RKQR4QMLWfp6KaKoR2jFluq4DfPMfBsP gJPNVS62DpBUh8phgwmd7p2MsNq6WjZ/kTFEmaPudUO7zVlYnzuJn7a+ZmLY2xJ8v5hkLCI08PV 1qX5+39rCyD9ef/NkjVyj2oc1sfQTvT4OamM5To/Ws4EqAaXJjtPBRFZ5+/TOpWmtphLvVtayeB QtefNUTP5zrCdi0GUlmWi0yJv6HHs1e5LX9LBtje6NLduIEH1axS2GLGHq56NPgiuj7kDw1sJfE YAjRv/YCoLTuWGoTnpOp+kmg3f26rLM7j+U1Y X-Google-Smtp-Source: AGHT+IH6332YGZqxLMj0Loh9plsmr2aqO4CvcfVfZA1bmA/ntNN1fVgIvXfT5ZGqdRUuv1Iqb5oDaQ== X-Received: by 2002:a17:906:c105:b0:ad2:2d84:ab80 with SMTP id a640c23a62f3a-ad52d65f554mr280206866b.58.1747392110962; Fri, 16 May 2025 03:41:50 -0700 (PDT) Message-ID: <5d928ec5-b423-46d7-a8df-7be37b38b6d8@suse.com> Date: Fri, 16 May 2025 12:41:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 03/15] xen/x86: introduce new sub-hypercall to propagate CPPC data To: "Penny, Zheng" Cc: "Huang, Ray" , Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Anthony PERARD , "Orzel, Michal" , Julien Grall , Stefano Stabellini , "xen-devel@lists.xenproject.org" References: <20250414074056.3696888-1-Penny.Zheng@amd.com> <20250414074056.3696888-4-Penny.Zheng@amd.com> <2e1de23f-cc79-4d37-8667-0afd07736db3@suse.com> Content-Language: en-US From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16.05.2025 12:35, Penny, Zheng wrote: >> -----Original Message----- >> From: Jan Beulich >> Sent: Monday, April 28, 2025 11:57 PM >> >> On 14.04.2025 09:40, Penny Zheng wrote: >>> @@ -459,6 +464,26 @@ struct xen_processor_performance { typedef >>> struct xen_processor_performance xen_processor_performance_t; >>> DEFINE_XEN_GUEST_HANDLE(xen_processor_performance_t); >>> >>> +struct xen_processor_cppc { >>> + uint8_t flags; /* flag for CPPC sub info type */ >>> + /* >>> + * Subset _CPC fields useful for CPPC-compatible cpufreq >>> + * driver's initialization >>> + */ >>> + struct { >>> + uint32_t highest_perf; >>> + uint32_t nominal_perf; >>> + uint32_t lowest_nonlinear_perf; >>> + uint32_t lowest_perf; >>> + uint32_t lowest_mhz; >>> + uint32_t nominal_mhz; >>> + } cpc; >>> + struct xen_psd_package domain_info; /* _PSD */ >> >> This being a member of the new type, ... >> >>> --- a/xen/include/xlat.lst >>> +++ b/xen/include/xlat.lst >>> @@ -168,6 +168,7 @@ >>> ! processor_performance platform.h >>> ! processor_power platform.h >>> ? processor_px platform.h >>> +? processor_cppc platform.h >> >> ... how can it be ? here when it's ... >> >>> ! psd_package platform.h >> >> ... ! here? And with it being ?, you're lacking a place where you invoke the resulting >> checking macro (which I assume would cause a build failure). I guess this wasn't clear enough then: Aiui you cannot "check" these, because the native and compat ones are going to be different. You'll need to use ! here, and then use the respective XLAT_* macro(s). IOW ... > Understood, I see it automatically generates CHECK_psd_package. I shall change psd_package with ? too > In order to avoid causing build failure, I add "typedef struct xen_psd_package xen_psd_package_t;" > I'm not familiar with the compat framework, if it isn't the right way to fix, plz let me know ... I expect this isn't the correct way of dealing with it. Jan