Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cBO9N-00082E-Kg for mharc-grub-devel@gnu.org; Mon, 28 Nov 2016 10:47:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBO9F-0007x9-CR for grub-devel@gnu.org; Mon, 28 Nov 2016 10:47:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBO99-0005Jt-JU for grub-devel@gnu.org; Mon, 28 Nov 2016 10:47:17 -0500 Received: from boksu.net-space.pl ([185.15.1.105]:60244) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1cBO99-0005GT-7q for grub-devel@gnu.org; Mon, 28 Nov 2016 10:47:11 -0500 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1677864AbcK1Pq5 (ORCPT ); Mon, 28 Nov 2016 16:46:57 +0100 Date: Mon, 28 Nov 2016 16:46:57 +0100 From: Daniel Kiper To: tsoome@me.com, grub-devel@gnu.org Cc: jgross@suse.com, eric.snowberg@oracle.com, Andrei Borzenkov , andrew.cooper3@citrix.com, seth.goldberg@oracle.com, phcoder@gmail.com, xen-devel@lists.xenproject.org Subject: Re: [MULTIBOOT2 DOC PATCH v2 05/11] multiboot2: Add description of support for EFI boot services Message-ID: <20161128154657.GA1485@router-fw-old.local.net-space.pl> References: <1480020010-18421-1-git-send-email-daniel.kiper@oracle.com> <1480020010-18421-6-git-send-email-daniel.kiper@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.15.1.105 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2016 15:47:23 -0000 Hi Toomas, Thank you for comments. On Thu, Nov 24, 2016 at 11:47:48PM +0200, Toomas Soome wrote: > There is still the same confusion as with entry address tag 7; the diagram has I suppose that you thought about tag type 3. > u_virt, yet the text does claim it is physical address. Sure, it is assumed the > identity mapping, but still those names are creating confusion. If yes then I agree that u_virt should be changed to u_phys. Though maybe in longterm we should define tags for every architecture separately with types specific for a given architecture. Then we should avoid most of such confusions. I hope... > Moreover, the EFI32 and EFI64 have different address sizes (32 versus 64 bit), > yet there is the same type: u_virt - so it hints the upper part of the 64bit > address is ignored, but its not really clear from the text??? It is clear that it should be u_phys or u32 for EFI i386. Though I am not sure about EFI amd64 right now. Potentially it could be u64. However, I assume (at least right now; and current GRUB implementation works in that way) that the boot loader cannot put any part of an image higher than 4 GiB - 1 (well, I agree that it should be mentioned in spec). Even on EFI amd64 platform. This is because still some of the image boot code can be executed in 32-bit mode. We have such situation in Xen. So, from this point of view 32-bit entry_addr in tag type 9 is sufficient. Though I can agree that we should anticipate support for full 64-bit images. I think that it is possible (but not implemented yet). We should add to spec tag which says: yes, I am 64-bit image. Then the image may provide relevant 64-bit equivalent tags (defined properly in spec). So, in this case we should have in spec another EFI amd64 tag which has 64-bit entry_addr. This way various boot code types (32-bit and 64-bit) may coexist without any issue in one image and boot loader may choose supported one. Does it make sense? Daniel