Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp381336ybn; Tue, 1 Oct 2019 23:01:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIs+5K0NcCwvy/MlnC5pcsajNtGCJky92mhTNVxZ0m8FW3zzIiOlITku6RGnnPqXZakUzn X-Received: by 2002:a50:c052:: with SMTP id u18mr2007739edd.88.1569996087606; Tue, 01 Oct 2019 23:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569996087; cv=none; d=google.com; s=arc-20160816; b=ozP7s1q4M9UeG8JmjtVL1bGDXTvnBOobtW/X+b1bVV3WobRVADaIhh9xws9kl9F7pF KxO7U2CPHFZR4+qmquZRRO6jRV9GTGD1ARPVt6/VQiirWLu3hRVy16MxC7inB16A0kOZ ASt32QnT1n0wn2ErJP4ixLlOM+7VFj8rjDAKu5Sitev7FSyeknZ3dk8/z84QHerCNiLq IaOHUG7T1akI5CjizIpO0CPG4QPfqdta5qQKELNdQQGxbNfEA8hFQW1z7wJW6g9MGBit RP9eU8C0MioHLEoBGH30931EpZ5R/cAg4ATk08vN4iaQM4TRp3A2Zd/DskdkdO3UJ+V/ gjyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature:dkim-filter; bh=CVmGy/DI0hNYE3HWVWXwpZgLbbxVbvXXwcCGt+QPGBQ=; b=l9oB9aaE464jnB6YBjfNXGMnqQ5rnorUHHGiszj8ko6EHMzvDikjXcSO9maz4hxTol NdMJoJ+JRtPp0t4Ae/QIKMVblKMBE8pdRQKqOF3xefTlfUQAIz6g4e3oxSlVnyrKlZo6 3TXrRP7ShxhvMR7B35uRxf4e/jonyF6AKF+HaHe3yBu9KIiWS6nJxqMHnpMjZMdRnVNo x9RoDl70U5ZndxrN6NyWcCvVQY9fgNWID616S39UvnNqajwPH9H53q188VSnLC0cG0it zjF3IX64KxOC+QHnRsmAyV3/KKuSKKTcAZGYhu7D++uqqGSQ8hGPrySjCJTvUb28SzVU qqzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019091901 header.b="fMp/yGTi"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z26si10016726ejw.359.2019.10.01.23.01.03; Tue, 01 Oct 2019 23:01:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2019091901 header.b="fMp/yGTi"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727924AbfJAW2d (ORCPT + 99 others); Tue, 1 Oct 2019 18:28:33 -0400 Received: from terminus.zytor.com ([198.137.202.136]:34273 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfJAW2d (ORCPT ); Tue, 1 Oct 2019 18:28:33 -0400 Received: from carbon-x1.hos.anvin.org ([IPv6:2601:646:8600:3281:e7ea:4585:74bd:2ff0]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id x91MS6XO1104263 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 1 Oct 2019 15:28:07 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com x91MS6XO1104263 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019091901; t=1569968888; bh=CVmGy/DI0hNYE3HWVWXwpZgLbbxVbvXXwcCGt+QPGBQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=fMp/yGTiGygKC6+gmuSH52zZzbetdudCo2N9mAJbvn2+gRPMaMz9ceW2PchS/GwaL AEN/AWuv4IOf8rN4DFdg5kDMg34A8eEssbtu8XBVqaOC2a0+upR+Dakam53xErg3us QRsRUqnQpspoT+pYt1524iewwNh6vwA8qR0kWl1ek4/UvY03vsRKVUNGFKh7S8v5/L Mw1/D/Vy11zP9C9eS8rQiFeu+PPcboqEWeiRHf+D7dNy1+CtyvyzQ6edfznbqFpO4j XwDb8LtgTeEiipL7zQoixZ+4MQ/RnkRdPGSnjpdiT3HisogFUYQ+ilvVnjjvx7hVr7 26q/UZgCO9wzw== Subject: Re: [PATCH v2 1/3] x86/boot: Introduce the kernel_info To: Daniel Kiper Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, bp@alien8.de, corbet@lwn.net, dpsmith@apertussolutions.com, eric.snowberg@oracle.com, kanth.ghatraju@oracle.com, konrad.wilk@oracle.com, mingo@redhat.com, ross.philipson@oracle.com, tglx@linutronix.de References: <20190704163612.14311-1-daniel.kiper@oracle.com> <20190704163612.14311-2-daniel.kiper@oracle.com> <5633066F-01BE-437D-A564-150FD48B6D92@zytor.com> <20190930150110.ekir52wu3w67v2fk@tomti.i.net-space.pl> <20191001114133.xy5nuhepzzixhuh4@tomti.i.net-space.pl> From: "H. Peter Anvin" Message-ID: Date: Tue, 1 Oct 2019 15:28:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20191001114133.xy5nuhepzzixhuh4@tomti.i.net-space.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-10-01 04:41, Daniel Kiper wrote: > > OK, so, this is more or less what I had in my v3 patch before sending > this email. So, it looks that I am on good track. Great! Though I am not > sure that we should have magic for chunked objects. If yes could you > explain why? I would just leave len for chunked objects. > It makes it easier to validate the contents (bugs happen...), and would allow for multiple chunks that could come from different object files if it ever becomes necessary for some reason. We could also just say that dynamic chunks don't even have pointers, and let the boot loader just walk the list. >> Also "InfO" is a pretty hideous magic. In general, all-ASCII magics have much >> higher risk of collision than *RANDOM* binary numbers. However, for a chunked >> architecture they do have the advantage that they can be used also as a human >> name or file name for the chunk, e.,g. in sysfs, so maybe something like >> "LnuX" or even "LToP" for the top-level chunk might make sense. >> >> How does that sound? > > Well, your proposals are more cryptic, especially the second one, than > mine but I tend to agree that more *RANDOM* magics are better. So, > I would choose "LToP" if you decipher it for me. Linux Top? > Yes, Linux top [structure]. -hpa