Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp263116rdd; Wed, 22 Nov 2023 15:35:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEY61LmGFTvMVt4WyEseW7uwvNqSfw9ddMJjgoBuqV8WhXlG9gx7iIYuhsLVW1XddTt5KQ8 X-Received: by 2002:a17:90b:3a87:b0:283:912:9c22 with SMTP id om7-20020a17090b3a8700b0028309129c22mr3940157pjb.1.1700696105458; Wed, 22 Nov 2023 15:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700696105; cv=none; d=google.com; s=arc-20160816; b=c8rxKDfRQ4XeqRz8IbqsRrxt/cs4SH0f74l14jgz7yR4l+4mnclZWMpBXEgCfP3KIg JOUtocdfO5ETTJwlIg7+ie3tcz+q9rEkRkruduTfJwe5hzxDkbP1ZkUYnnXpd46ccwxE P5YfExjNaK8hriuJS+labRqsWIwQKtKSNik8fnCueyS6IfBUmzpcuzai6jf3u2M+Wpvk dku0dFx0oneHjPmzvsxhRz4bTUq1vuHXaJNWTk+GjWCK8B5os0Bx3npeNH/jSHt8iWmb nivcKOEFg/lkXIiNYOAxVZCs0easUIJxIkfychk9MzhIgfz/S+K4RvVV6uLZ1+GGVMOJ hLew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+MZVl6s8oDyWuTxg+cniqUb0d5mmVFeCmKKPHCAfhE4=; fh=rOr5EQzE+w6V5xRFEo74oO43OwO3+2dR58MYIhqAjKA=; b=qv+hOhAxeOLFxte26vfpheTAtnzTYAtB4tmc2Glvof9XK4RN0EWkd6LhVmcFRhqXf1 N3wJOZYVgwoxqVew9mUXjE03VLLP+UsRZEZRMLPjHUFZavS8aVaZ2SwMpTjVdRrp6VNR kmZekmA3j3zcF+9Gq2E0+65vvhHlDbqPE0D0Ul/ctIrA2dDL2ZBSMlfiw7Zv7AWG/wdK ZzTJ7Midvv5foPZRlAmBFb0bhgVaDYxeTEdtKjG0C2cAfmeWAZAfQlH1/nDto1zFKBOr sq9C8xHViMl0jGPO3RxRhP/ZrsYFVEWEuXhx+PhQKidaOv6sOADIvdTuakQsBR5Dr+0E qTgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9IOBouz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id cz11-20020a17090ad44b00b00280216d7e36si107348pjb.171.2023.11.22.15.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:35:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9IOBouz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 23C4080964C7; Wed, 22 Nov 2023 15:35:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232448AbjKVXer (ORCPT + 99 others); Wed, 22 Nov 2023 18:34:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231738AbjKVXeh (ORCPT ); Wed, 22 Nov 2023 18:34:37 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 625281BDD for ; Wed, 22 Nov 2023 15:34:13 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1FA9C433C8; Wed, 22 Nov 2023 23:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700696053; bh=y/xDtgcOVaYK+pAvWAT8PxuU8yWjmpI1lOQifmWd/CE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=o9IOBouzu/1lqDop7NAkpUIdSGIn9EeWvpVNxuzyv7Jui8Y3aNEdsYCMR/hPj/QrJ IOmkS/ATzempErFBw0pfXHdv0XEkz+11PT3xjghNt5Nj4RoLAWQiJxcXeva396xsSr RQa8rTiQ/0d2QPS6KfsBGkncXQVKzpH5+uLeRnjAyBjOegiWinazNqJ7I2b+E4XHDl QKHbSa3aMmVGsE7vPgjVQwPywyAtIpBIXCuV+N+GXmC3TMgvY8KSSOJDxDMZhiJ8kM EXYtgheZsQjR2/uw0rUFLSB5QdzeTgrPtQJh1CNDiIGtfgxnLkyHUnt6FVDO9DXNSK 7Ql+uyjBgme0w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 8EB1BCE0BDB; Wed, 22 Nov 2023 15:34:12 -0800 (PST) Date: Wed, 22 Nov 2023 15:34:12 -0800 From: "Paul E. McKenney" To: Petr Malat Cc: linux-kernel@vger.kernel.org, mhiramat@kernel.org, rostedt@goodmis.org Subject: Re: [PATCH 0/2] bootconfig: Support early options in embedded config Message-ID: <1b3bfb7e-87d1-467c-ab4a-37b47254bae9@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20231121231342.193646-1-oss@malat.biz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121231342.193646-1-oss@malat.biz> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 15:35:03 -0800 (PST) On Wed, Nov 22, 2023 at 12:13:40AM +0100, Petr Malat wrote: > These 2 patches add a support for specifying early options in embedded > bootconfig and merging embedded and initrd bootconfig into one. > > To allow handling of early options, it's necessary to eliminate allocations > from embedded bootconfig handling, which can be done by parsing the config > data in place and allocating xbc_nodes array statically. > > Later, when initrd is available, it either replaces embedded data or is > appended to them. To append initrd data, it's necessary to relocate already > parsed data to a bigger memory chunk, but that's not a problem, because > xbc_node structure uses offsets and not absolute pointers. > > Also, update the documentation to make users aware early options can't be > configured in the initrd. Nice!!! For the series: Tested-by: Paul E. McKenney (My setup isn't friendly with initrd bootconfig, so I tested this only for the embedded bootconfig parameters.) Thanx, Paul