All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Kiper <daniel.kiper@oracle.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, keir@xen.org,
	ian.campbell@citrix.com, jbeulich@suse.com,
	konrad.wilk@oracle.com
Subject: Re: New Xen boot infrastructure proposal
Date: Tue, 21 May 2013 14:57:23 +0200	[thread overview]
Message-ID: <20130521125723.GC24123@debian70-amd64.local.net-space.pl> (raw)
In-Reply-To: <alpine.DEB.2.02.1305211229380.4799@kaball.uk.xensource.com>

On Tue, May 21, 2013 at 12:39:44PM +0100, Stefano Stabellini wrote:
> On Tue, 21 May 2013, Daniel Kiper wrote:

[...]

> > /* Xen Boot Info Arch (XBIA) memory map structure. */
> > typedef struct {
> >   /*
> >    * Amount of lower memory accordingly to The Multiboot
> >    * Specification version 0.6.96.
> >    */
> >   u32 lower;
> >   /*
> >    * Amount of upper memory accordingly to The Multiboot
> >    * Specification version 0.6.96.
> >    */
> >   u32 upper;
> >   u32 map_size;
> >   struct e820entry *e820map;
>
> e820map needs to be moved to an x86 specific struct.

It is Xen Boot Info Arch (XBIA) memory map structure
which is architecture dependent and it is part of Xen
Boot Info Arch (XBIA) (please look below).

> Can we use the arch-independent memory map structs as defined in section
> 3.4.8 of the multiboot2 spec instead?

I thought about that once but I am not sure that it is good idea.
It is quiet tightly linked to architecture (e.g. address space
which maybe 64-bit, 32-bit, ... or memory types representation).
However, I do not insist on staying with that. If we decide
to made it arch independed on the base of multiboot2 spec then
we should only use base_addr (u64), length (u64) and type (u32).

> > } xbia_mem_t;
> >
> > /* Xen Boot Info Arch (XBIA). */
> > typedef struct {
> >   EFI_SYSTEM_TABLE *efi_system_table;
> >   u64 mps; /* Pointer to MPS. */
> >   u64 acpi; /* Pointer to ACPI RSDP. */
> >   u64 smbios; /* Pointer to SMBIOS. */
> >   xbia_mem_t mem;
> >   struct xen_vga_console_info vga_console_info;
> >   struct edd_info *edd_info;
> > } xbia_t;
>
> We need to add a pointer to device_tree in there.

As I mentioned earlier it is x86 stuff. ARM arch
should have relevant separate xbia_t.

> > /* Main Xen Boot Info (XBI) structure. */
> > typedef struct {
> >   char *boot_loader_name;
> >   char *cmdline;
> >   u32 mods_count;
> >   xbi_mod_t *mods;
> >   xbia_t arch;
> > } xbi_t;

Daniel

  reply	other threads:[~2013-05-21 12:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21 10:36 New Xen boot infrastructure proposal Daniel Kiper
2013-05-21 11:39 ` Stefano Stabellini
2013-05-21 12:57   ` Daniel Kiper [this message]
2013-05-21 12:03 ` Jan Beulich
2013-05-22 14:09   ` Daniel Kiper
2013-05-22 14:33     ` Jan Beulich
2013-05-22 15:01       ` Daniel Kiper
2013-05-22 15:16         ` Jan Beulich
2013-05-22 16:47           ` Konrad Rzeszutek Wilk
2013-05-22 16:56             ` Keir Fraser
2013-05-23  6:37             ` Jan Beulich
2013-05-21 12:43 ` David Vrabel
2013-05-22 14:19   ` Daniel Kiper
2013-05-21 12:52 ` Ian Campbell
2013-05-22 14:27   ` Daniel Kiper
2013-05-22 14:35     ` Jan Beulich
2013-05-22 15:09     ` Ian Campbell
2013-05-22 15:25       ` Ian Campbell
2013-05-22 15:34         ` Daniel Kiper
2013-05-22 15:41           ` Ian Campbell
2013-05-22 16:19             ` Daniel Kiper
2013-05-23 13:33               ` Ian Campbell
2013-05-21 13:24 ` Keir Fraser
2013-05-22 14:43   ` Daniel Kiper
2013-05-22 15:10     ` Jan Beulich
2013-05-22 15:59       ` Daniel Kiper
2013-05-22 16:40         ` Keir Fraser

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=20130521125723.GC24123@debian70-amd64.local.net-space.pl \
    --to=daniel.kiper@oracle.com \
    --cc=ian.campbell@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --cc=konrad.wilk@oracle.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.