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 57C74C87FC9 for ; Tue, 29 Jul 2025 13:06:30 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1062653.1428375 (Exim 4.92) (envelope-from ) id 1ugk25-00087w-GF; Tue, 29 Jul 2025 13:06:17 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1062653.1428375; Tue, 29 Jul 2025 13:06:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ugk25-00087p-Cd; Tue, 29 Jul 2025 13:06:17 +0000 Received: by outflank-mailman (input) for mailman id 1062653; Tue, 29 Jul 2025 13:06:15 +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 1ugk23-00087i-RI for xen-devel@lists.xenproject.org; Tue, 29 Jul 2025 13:06:15 +0000 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [2a00:1450:4864:20::436]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id ce958101-6c7c-11f0-a31e-13f23c93f187; Tue, 29 Jul 2025 15:06:14 +0200 (CEST) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3b7825e2775so3275880f8f.2 for ; Tue, 29 Jul 2025 06:06:14 -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 d9443c01a7336-23fdf168907sm69633245ad.90.2025.07.29.06.06.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jul 2025 06:06:13 -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: ce958101-6c7c-11f0-a31e-13f23c93f187 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1753794374; x=1754399174; 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=YdLUdkfRYNTd9jz2d8BhI2Z6jwWIa4eWYIQrr7eUGMs=; b=G5M3zsUZ4JekyYCIZbhboAQ2tSLhrdYoCMS4HKlee1HZ5fo2tfmaokJtcID+cpu3Nu QfEc9XjUoJF0erz8PYDGv1iIy2hSHrut2iLaBtfZtQyKzbemK9yjIx6Zge0Wy/NzBCcl j0d5HD3Gwxsng/16l1em6Dfp4YjgHXrpQf2fT9l/IL+RcnulETkYHUWK5X3VQsU+0p5g U/c/EfSwu0eHI/odjtj13UU+ZQSaGnYCPvsCL+rZWWLe8pKnekXE2GBshTLI2mNP57dj 4CAQgm9n4nsXP4DO2WElo0Uls2nsiCFcz/9rFf/i0P4V/xZe9m+kpKKVYImptqW0QsaK +etg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753794374; x=1754399174; 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=YdLUdkfRYNTd9jz2d8BhI2Z6jwWIa4eWYIQrr7eUGMs=; b=A2+qrFkEuUtFH7ph01Zc0PT2qqM7QcdADJoS2aVy2UzOVtCqO0f+nZoyPJppwaInrI W2Dcsad0HJ4S9I/hRyvK7KKHMUSa5+REExiqv+36rn5uY+cVmDYQpAjo465vRTArJV5o 77Z+uv+CL3dUXre0LWjloNvnY9U/t5acDbJvWIc8PXRN5lNANmDG/2V+bctnpIbh67BK 5jOiRgrva7hTktCe8mUblprAR/QgEv35lZbqQQZT9d6O+UMmY2IJqzmU9XMg4YYzi58h 3oNYEjgw1/KYTNjNdZRa5tmvQd80gv0SMh11+Bj6xBBA9TXoWiXNAvaETTHq25HlH8G8 w5dg== X-Forwarded-Encrypted: i=1; AJvYcCXmySN1XKpjyByde8vppBD29eocY8QA6g4P55tWEO42jJdExDnQUVJi0YNBy1hPmcLpVYyNa2sXqgQ=@lists.xenproject.org X-Gm-Message-State: AOJu0Yw9EmQRmAIBR/+6MdvFrSP6eV9MV0+lNJ/CDiRYQRw9aurbsyPz QR/W4oY67ayhjvSWdxO9bz1tIpi6VCyYu2DlZPUTCbd7t2zkwIG05zB21dIYNOuqRQ== X-Gm-Gg: ASbGncstqfizoOvhG3/x87/0sCPWDXx6ogaE11bGcYrlpdQWE93YQyzMd5l9Bgk8hEN yQ8meJIZgb5O3N/RZlCAhzAdt7L4VDqVpHIkenRcO6UnIf2KEPEj/cifT/hG9qafS6EYaC3BZFP PnfWr0qIxjmyXwmHfktYrJE7x4QhsOBOriF/0O80mKuC0YSMjybH3bnH+LATP1PKTI3f6HT+v2m mr+AFBA1qlcJDfyU54vD6Fz9C5X/vOugTqTeTl7kRARN9ns8rNE09N/Djzpr3ZA3CrXa8x4auK/ wgXkiZ93Yle4Naf+zm3A5SyaKhXEs4M3Nb2IteoaFihj0McdNUlPvOHRq0rUIwTahsh0+hrl13b 7Dg6wCcPVrwf6ruedINHFbBl+lImURHyEV7KXtyIwuj/5147EvojEc4519IfiKIPqdUax3RzCQU PZFweKuxnw5kUaQGhoXw== X-Google-Smtp-Source: AGHT+IFJcjOccJTrI6Fc/4PyobAzEJQSX7Rq0/3NgauPRAZLvJPid++l4mgPHAVwqB/jgD2H4xORrQ== X-Received: by 2002:a05:6000:2905:b0:3b4:9dbd:eee9 with SMTP id ffacd0b85a97d-3b7767764bamr10898879f8f.36.1753794374109; Tue, 29 Jul 2025 06:06:14 -0700 (PDT) Message-ID: Date: Tue, 29 Jul 2025 15:06:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/8] pdx: provide a unified set of unit functions To: Roger Pau Monne Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , Anthony PERARD , xen-devel@lists.xenproject.org References: <20250724110416.2081-1-roger.pau@citrix.com> <20250724110416.2081-3-roger.pau@citrix.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: <20250724110416.2081-3-roger.pau@citrix.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 24.07.2025 13:04, Roger Pau Monne wrote: > The current setup (pdx_init_mask() and pdx_region_mask()) and init > (pfn_pdx_hole_setup()) PDX compression functions are tailored to the > existing PDX compression algorithm. > > In preparation for introducing a new compression algorithm convert the > setup and init functions to more generic interfaces that aren't tied to the > compression in-use. To accomplish this introduce a function that registers > all the PFN RAM ranges, plus an init function. > > This has the downside of requiring a static array to store such ranges > ahead of being processed by the setup function, however it's the only way > to pass all the possible information to the different compression setup > functions without using per-compression specific setup functions. > Per-arch compression setup also need to be adjusted to use the new > interface. There's a slight ordering adjustment, in that after PDX > compression setup the caller will check whether all the RAM regions are > properly covered by the newly setup compression, otherwise compression is > disabled by resetting to the initial values. > > No functional change intended in the resulting PDX compression values. > > Signed-off-by: Roger Pau Monné Acked-by: Jan Beulich