All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Kiper <dkiper@net-space.pl>
To: tsoome@me.com, grub-devel@gnu.org
Cc: jgross@suse.com, eric.snowberg@oracle.com,
	Andrei Borzenkov <arvidjaar@gmail.com>,
	phcoder@gmail.com, seth.goldberg@oracle.com,
	andrew.cooper3@citrix.com, xen-devel@lists.xenproject.org
Subject: Re: [MULTIBOOT2 DOC PATCH v2 05/11] multiboot2: Add description of support for EFI boot services
Date: Mon, 28 Nov 2016 16:46:57 +0100	[thread overview]
Message-ID: <20161128154657.GA1485__16847.3712787547$1480348084$gmane$org@router-fw-old.local.net-space.pl> (raw)
In-Reply-To: <BAA7C4EA-0E4D-4466-B9A0-2743D898DBE7@me.com>

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

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  parent reply	other threads:[~2016-11-28 15:47 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-24 20:39 [MULTIBOOT2 DOC PATCH v2 00/10] multiboot2: Update documentation Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 01/11] multiboot2: Rename Multiboot to Multiboot2 Daniel Kiper
2016-11-24 20:40   ` Daniel Kiper
2016-11-28 18:06   ` Andrei Borzenkov
2016-11-29  8:45     ` Daniel Kiper
2016-11-29  8:45     ` Daniel Kiper
2016-11-28 18:06   ` Andrei Borzenkov
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 02/11] multiboot2: Replace redundant if with the Daniel Kiper
2016-11-24 20:40 ` Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 03/11] multiboot2: Clarify meaning of information request header tag Daniel Kiper
2016-11-24 20:40   ` Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 04/11] multiboot2: Fix description of EFI boot services tag Daniel Kiper
2016-11-24 20:40   ` Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 05/11] multiboot2: Add description of support for EFI boot services Daniel Kiper
2016-11-24 20:40 ` Daniel Kiper
2016-11-24 21:47   ` Toomas Soome
2016-11-24 21:47   ` Toomas Soome
2016-11-28 15:46     ` Daniel Kiper
2016-11-28 16:24       ` Toomas Soome
2016-11-28 16:24       ` Toomas Soome
2016-11-28 15:46     ` Daniel Kiper [this message]
2016-11-28 17:53   ` Andrei Borzenkov
2016-11-29  9:08     ` Daniel Kiper
2016-11-29  9:39       ` Toomas Soome
2016-11-29 10:09         ` Daniel Kiper
2016-11-29 10:09           ` Daniel Kiper
2016-11-29 10:34           ` Toomas Soome
2016-11-29 10:34             ` Toomas Soome
2016-11-29  9:39       ` Toomas Soome
2016-11-29  9:08     ` Daniel Kiper
2016-11-28 17:53   ` Andrei Borzenkov
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 06/11] multiboot2: Add description of EFI image handle tags Daniel Kiper
2016-11-24 20:40   ` Daniel Kiper
2016-11-28 17:59   ` Andrei Borzenkov
2016-11-28 17:59   ` Andrei Borzenkov
2016-11-29  9:18     ` Daniel Kiper
2016-11-29  9:18       ` Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 07/11] multiboot2: Add description of support for relocatable images Daniel Kiper
2016-11-24 20:40   ` Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 08/11] multiboot2: Say that memory maps may not be available on EFI platforms Daniel Kiper
2016-11-24 20:40   ` Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 09/11] multiboot2: Add C structure members alignment and padding consideration section Daniel Kiper
2016-11-24 20:40 ` Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 10/11] multiboot2: Add me to authors Daniel Kiper
2016-11-24 20:40   ` Daniel Kiper
2016-11-24 20:40 ` [MULTIBOOT2 DOC PATCH v2 11/11] multiboot2: Bump version to 2.0 Daniel Kiper
2016-11-24 20:40   ` Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='20161128154657.GA1485__16847.3712787547$1480348084$gmane$org@router-fw-old.local.net-space.pl' \
    --to=dkiper@net-space.pl \
    --cc=andrew.cooper3@citrix.com \
    --cc=arvidjaar@gmail.com \
    --cc=eric.snowberg@oracle.com \
    --cc=grub-devel@gnu.org \
    --cc=jgross@suse.com \
    --cc=phcoder@gmail.com \
    --cc=seth.goldberg@oracle.com \
    --cc=tsoome@me.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.