Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3721493imu; Sun, 11 Nov 2018 22:21:48 -0800 (PST) X-Google-Smtp-Source: AJdET5fW9yAjOO3VuB4xoMieyh7ezZ7qgo7hLNca//PWX6m+pkIJtGyYXjMKSf51YXA+9FhavrtL X-Received: by 2002:a17:902:1e3:: with SMTP id b90-v6mr15807511plb.117.1542003708038; Sun, 11 Nov 2018 22:21:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542003708; cv=none; d=google.com; s=arc-20160816; b=Q6opHai8byr9w6LoEc8vMLX2zpGHtelQPKWB/rdNA5+yYahJPLhqgcHlRNCxLwWCyi aJ2EnRqBnKmNjVmv+eruqfoy83bjKPZ6X9/AJ2+33KfEiG4GYVuQ3y/6Ei660X4fth2h mGCbs/pQoS0y7ovWeHhmuYiFZzEVumjr50GYdee0GrynHYExVZ8MVSg1Lke1vg4Pd9OR 7fu7hedWSgt6lu4rYvBuq4N7HYXvYTV4huAYlC0wVJT6c3lq9YJ2N3F86QiW0xZoehBz y/F6h7lPI0G1CHldme8/FlDKelYpibtgMmHVT/j12FuSLRfFse+kuNouah9Yl80S/UeI UWyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pAU/BkGy4lxEJCXrEr3I7o3fol/UhLvyIVhr2Jkvoyg=; b=pVw49P/Z/bJ2yFyBCjyg+V8wYrY0fSQ6UDsstOUOPze/jev7b2NX5nfJa5ckT9/G09 sgDVrDLlM17gSQcKN71WLPQTRr4iOhAAmwnMLnww/DBhSG92fN39JtfmQTot0j/l/gnd XLy73mwis3rNmDjjC6krW//CpHj42oIfiF2Ig0tALzdm4ODBFeh2NLES3ps8Gy79T4bc CEFgEcmkKRokE/itTDZPIgRpdwjwYPLY0DOEJ7QOEg9QK9PQEuMs95xxtWTAtUwJog7K qxCdtz63IPs7Vj4PTmX3EcVwz673BZSoRwryoE4IGv2lqlQDQm6PoF2ah2n4Xx/zLKmc yzbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=NiKnSwwz; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3-v6si18786058pfh.233.2018.11.11.22.21.32; Sun, 11 Nov 2018 22:21:48 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=NiKnSwwz; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731689AbeKLQLe (ORCPT + 99 others); Mon, 12 Nov 2018 11:11:34 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33349 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726558AbeKLQLe (ORCPT ); Mon, 12 Nov 2018 11:11:34 -0500 Received: by mail-wm1-f67.google.com with SMTP id f19-v6so8092181wmb.0 for ; Sun, 11 Nov 2018 22:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pAU/BkGy4lxEJCXrEr3I7o3fol/UhLvyIVhr2Jkvoyg=; b=NiKnSwwzICFLuM14vgebYXadTY/ZUd+Yd+b+UbvTcLTuP2lCFtW5fpproAhog07/BT EIJHnZIaoCH9eBoMCfSTAy4L24OXskxMUi9IatijMYt1P/nk23aCeiGIUi9F7BTQUoDx Iz5yuuZpX3UxJ+CPb9bSpHgJSQBa1sCDsJtRFZsRmN7y1Bf1ibHg+KMYysIgStv5CFkV P2sGYuPNIb414kGsNi+h8cocC/G93N0ruP//sD/xTQYeN1bRcYDMHi1RaNZuib9QA0H8 D4Vkj/njQC1IuMaIeAAofqW8D7Cw2jF841PAy6SMs9WbR5kSDx8B2N95+gOJyJYpLiZX qb0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=pAU/BkGy4lxEJCXrEr3I7o3fol/UhLvyIVhr2Jkvoyg=; b=rooTB4krnBGGOPLJqc+YgtQ81sRVoKW8wHsW16APcS23+VRv06ZczbQJkQcsqcl0yw NohxE/2rLDau+znqw+jqlOKSmqo1F9yqMLvGQNI9hlfSAnCYxfkhegYirUsiPFVmNWEH ZqCtXfFVimcehUJAjVf0/hRGDga58AdtE5JowJyiz0DiTTH0S+qC3PF4ZonMcYpOh3TQ Wv5wIbHmQTVP3qnaR/dJBPbpbojvnp1I96oqn1K7UaxnHx2t36qjGsF0RQQni41qfS// /57I0ar0MT9196SabRfB33YVA+FF74JfTfNwB1iHHTo3NAr6taJoqEI6s9dBwFz4QbFX CguQ== X-Gm-Message-State: AGRZ1gLB+/R5FcofWReIRDegLraNLwlFAecVJc6UqKqcWVTQS+Jjp+4A 7Q1JA7ESrHGShS0t7ukXw5E= X-Received: by 2002:a1c:6c0f:: with SMTP id h15-v6mr6297234wmc.123.1542003583862; Sun, 11 Nov 2018 22:19:43 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id l42-v6sm11892257wre.37.2018.11.11.22.19.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Nov 2018 22:19:43 -0800 (PST) Date: Mon, 12 Nov 2018 07:19:40 +0100 From: Ingo Molnar To: "H. Peter Anvin" Cc: Li Zhijian , Juergen Gross , Li Zhijian , Peter Maydell , x86@kernel.org, bp@alien8.de, mingo@redhat.com, tglx@linutronix.de, QEMU Developers , Philip Li , linux-kernel@vger.kernel.org, Linus Torvalds , Peter Zijlstra , Kees Cook Subject: Re: [Qemu-devel] [RFC/PoC PATCH 1/3] i386: set initrd_max to 4G - 1 to allow up to 4G initrd Message-ID: <20181112061940.GA61749@gmail.com> References: <1541674784-25936-2-git-send-email-lizhijian@cn.fujitsu.com> <20181109072015.GA86700@gmail.com> <38905d35-29af-b522-1629-b13e98a47a42@intel.com> <20181112045624.GA28219@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * H. Peter Anvin wrote: > > Such an extended header could use a more modern (self-extending) ABI as > > well. > > Yes, although I don't really think it is as much of an issue as it seems at > this point. > > The limit comes from having used a one-byte jump instruction at the beginning; > however, these days that limit is functionally walled. > > It is of course possible to address this if it should become necessary, > however, the current protocol has lasted for 23 years so far and we haven't > run out yet, even with occasional missteps. As such, I don't think we are in a > huge hurry to address this particular aspect. Agreed, fair enough! > In part as a result of this exchange I have spent some time thinking > about the boot protocol and its dependencies, and there is, in fact, a > much more serious problem that needs to be addressed: it is not > currently possible in a forward-compatible way to map all data areas > that may be occupied by bootloader-provided data. The kernel proper has > an advantage here, in that the kernel will by definition always be the > "owner of the protocol" (anything the kernel doesn't know how to map > won't be used by the kernel anyway), but it really isn't a good > situation. So I'm currently trying to think up a way to make that > possible. I might be a bit dense early in the morning, but could you elaborate? What do you mean by mapping all data areas? Thanks, Ingo