Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp51654rdh; Wed, 22 Nov 2023 17:59:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7lNX+zlDCil70LZWnFkyTBD6EZnL1VHVoHj4TTZVnwdHv/9NdKrV5lWQxR7G0Ak/cMfJF X-Received: by 2002:a17:903:24e:b0:1cf:6c5d:f0c6 with SMTP id j14-20020a170903024e00b001cf6c5df0c6mr3964021plh.10.1700704740586; Wed, 22 Nov 2023 17:59:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700704740; cv=none; d=google.com; s=arc-20160816; b=ck18/niGG1rnUBHNm2Wysd6dP8fMMfFTwKT3c/X9/1ES5ClRUS7o5QoDy6JXe6Bou0 VFafDTayQL/TaXWH6LcnnyD3Bf6UOeMV9qa/YE4bxdvWn/axEc2yvHzUGsxq1KJZHxg8 0pigYGqIncFfuDIVw0a3kitQlJClElohyKOOzM3/CmREwVgqNu+Rp4c5MGuW+vb58SNs iv/uJoowQN4ozITerCcfiLIm1PciG80IX3/q3mYvKTv0Eihk5FsYGSuY133FIXrE8Zyv 0xqtoozAl5MDCHqb+uvhR9C9nIEBcQYEY/47mBEYcKJs5sSmhGwe2jGDSw0pg5+QD0WD 4b3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=U2vvOyaLshdTwaRKFaT8L1WD6I4bnIZCvy0xCfi1Wvk=; fh=lBDSyyLtePKglkhXqyL0UiTzTcUyaGpHsPLjwKD//Eg=; b=F5Lq2l0kfwTRB/wxLuGH6i8cq+BGznZbLBED2hmfTJFYmXMyveb47M1rjcwK7pUa+v TAbVoOj85OYO+ue8txqS8Ek6aiCulsmY3ehcNjD8x8LZBygGUmk96vjZPy8YnhmtWAt2 7nas2ErCpdWUWiPx5Q9vKxax7DSWJn8AehlPk0Xo4Jwa6GfXbEyMPiTtyTN2xa9l8ZVl MlvhdLiVT+k2QoyVaKmEt08TT69opKSNP0IDF7gSvltg9rawYkcnvm0nK4sU6i/yqn44 BXqk9bynJxmnfc7ZM3VCBjvOI8gGi968uP80fSO4/DrfFDutk/9pVwxiEtpfBF0CZQvR wtYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ALm9+4FK; 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 s6-20020a170902ea0600b001cb02e6f149si153310plg.538.2023.11.22.17.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 17:59:00 -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=ALm9+4FK; 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 15F0D8083B0E; Wed, 22 Nov 2023 17:58:58 -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 S233574AbjKWB6o (ORCPT + 99 others); Wed, 22 Nov 2023 20:58:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232694AbjKWB6b (ORCPT ); Wed, 22 Nov 2023 20:58:31 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B5E51AB for ; Wed, 22 Nov 2023 17:58:36 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8BCCC433C7; Thu, 23 Nov 2023 01:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700704717; bh=k/Kqifw95eX22wpJAL4068fjhEgemFbnYz4GNnlPpnw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ALm9+4FKhue6uXJoWhd7z/bgKK5xvZGxBBsllEkV4FK7FrGTrnyIhguBcrlUz8I5r CzhyTjRRLa8zreSX8sYEIDWVbhvXMmVetZetYMprcfIUKkIBzshnAhRGQIBz2n8xlx CD5TWbtmJFReBiyt1E673rMPMY3us/ohUTYsRQ/7UZgPYtaXG3rOySdUvPRmZZ7tHK /wnjuhX4hZ2Byt8LhAmGZjLvORDVSB8ocpblll6yVMUdsJEijK6a4MBI4WljYL+nEr 1EP5j49Dl6JawbJj1CoGH6T2BUCUqU2KJDqirWrS80XKBWeJLsLmr6BWabNK3i4mUu YPKZFP3ULQw+w== Date: Thu, 23 Nov 2023 10:58:33 +0900 From: Masami Hiramatsu (Google) To: Petr Malat Cc: linux-kernel@vger.kernel.org, mhiramat@kernel.org, paulmck@kernel.org, rostedt@goodmis.org Subject: Re: [PATCH 0/2] bootconfig: Support early options in embedded config Message-Id: <20231123105833.419a9cda0fc25f45a877b436@kernel.org> In-Reply-To: <20231121231342.193646-1-oss@malat.biz> References: <20231121231342.193646-1-oss@malat.biz> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, 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 17:58:58 -0800 (PST) Hi Petr, Thanks for the patch. On Wed, 22 Nov 2023 00:13:40 +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. Hm, my concern is that this can introduce some sort of overhead to parse the bootconfig. > > 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. However, as you did on this series, it is OK that it does an additional parse for the initrd bootconfig (do not parse twice) Let me comment your patch. Thanks! > > Also, update the documentation to make users aware early options can't be > configured in the initrd. > > -- Masami Hiramatsu (Google)