From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
xen-devel@lists.xenproject.org, Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH] xen: change the sizes of fields in the HVM start info layout to be 64bits
Date: Fri, 8 Apr 2016 18:32:55 +0200 [thread overview]
Message-ID: <alpine.OSX.2.20.1604081831270.18723@mac> (raw)
In-Reply-To: <5707EA0E02000078000E6132@prv-mh.provo.novell.com>
[-- Attachment #1: Type: text/plain, Size: 2374 bytes --]
On Fri, 8 Apr 2016, Jan Beulich wrote:
> >>> On 08.04.16 at 17:47, <roger.pau@citrix.com> wrote:
> > At the moment the only consumer of this structure is x86, but other arches
> > might also use it, so make all the fields 64bits. On x86 Xen will still try
> > to place everything below the 4GiB boundary, but that might not be feasible
> > in other arches.
> >
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> > Requested-by: Jan Beulich <jbeulich@suse.com>
>
> I don't think I've asked for _all_ fields to be made 64-bit. In
> particular...
>
> > --- a/tools/libxc/include/xc_dom.h
> > +++ b/tools/libxc/include/xc_dom.h
> > @@ -227,16 +227,16 @@ struct xc_dom_image {
> > * be required in the future if there are alignment changes.
> > */
> > struct hvm_start_info {
> > - uint32_t magic; /* Contains the magic value 0x336ec578 */
> > - /* ("xEn3" with the 0x80 bit of the "E" set).*/
> > - uint32_t version; /* Version of this structure. */
> > - uint32_t flags; /* SIF_xxx flags. */
> > - uint32_t cmdline_paddr; /* Physical address of the command line. */
> > - uint32_t nr_modules; /* Number of modules passed to the kernel. */
> > - uint32_t modlist_paddr; /* Physical address of an array of */
> > - /* hvm_modlist_entry. */
> > - uint32_t rsdp_paddr; /* Physical address of the RSDP ACPI data */
> > - /* structure. */
> > + uint64_t magic; /* Contains the magic value 0x746f6f62336ec578 */
> > + /* ("xEn3boot" with the 0x80 bit of the "E" set).*/
> > + uint64_t version; /* Version of this structure. */
> > + uint64_t flags; /* SIF_xxx flags. */
>
> ... none of these 3 need to be 64-bit, nor ...
>
> > + uint64_t cmdline_paddr; /* Physical address of the command line. */
> > + uint64_t nr_modules; /* Number of modules passed to the kernel. */
>
> ... this one.
>
> Nacked-by: Jan Beulich <jbeulich@suse.com>
I know, but I don't see any harm in them being 64bits, and then the layout
is clearer IMHO.
Roger.
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-04-08 16:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-08 15:47 [PATCH] xen: change the sizes of fields in the HVM start info layout to be 64bits Roger Pau Monne
2016-04-08 15:51 ` Wei Liu
2016-04-08 15:52 ` Andrew Cooper
2016-04-08 16:01 ` Ian Jackson
2016-04-08 16:30 ` Jan Beulich
2016-04-08 16:38 ` Wei Liu
2016-04-08 16:27 ` Jan Beulich
2016-04-08 16:31 ` Wei Liu
2016-04-08 16:32 ` Roger Pau Monné [this message]
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=alpine.OSX.2.20.1604081831270.18723@mac \
--to=roger.pau@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.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.