All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Maran Wilson <maran.wilson@oracle.com>
Cc: andrew.cooper3@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH 1/1] x86/PVHv2: Add memory map pointer to hvm_start_info struct
Date: Mon, 05 Mar 2018 02:16:30 -0700	[thread overview]
Message-ID: <5A9D18FE02000078001AE699@prv-mh.provo.novell.com> (raw)
In-Reply-To: <1520024069-30692-2-git-send-email-maran.wilson@oracle.com>

>>> On 02.03.18 at 21:54, <maran.wilson@oracle.com> wrote:
> The start info structure that is defined as part of the x86/HVM direct boot
> ABI and used for starting Xen PVH guests would be more versatile if it also
> included a way to pass information about the memory map to the guest. This
> would allow KVM guests to share the same entry point.

So is there no use for this with Xen at all? If so, I remain unconvinced
(and will probably defer to others). If not, I think adding the population
of the new data (under whatever conditions) should be part of this
(then) series, demonstrating that this isn't dead code.

> + * Version numbers of the hvm_start_info structure have evolved like this:
> + *
> + * Version 0:

Perhaps "Initial implementation" or some such? Leaving it completely
empty make it look a little odd as an item.

> @@ -86,6 +120,14 @@ struct hvm_start_info {
>      uint64_t cmdline_paddr;     /* Physical address of the command line.     */
>      uint64_t rsdp_paddr;        /* Physical address of the RSDP ACPI data    */
>                                  /* structure.                                */
> +    uint64_t memmap_paddr;	/* Physical address of an array of           */
> +				/* hvm_memmap_table_entry. Only present in   */
> +				/* version 1 and newer of the structure      */
> +    uint32_t memmap_entries;	/* Number of entries in the memmap table.    */
> +				/* Only present in version 1 and newer of    */
> +				/* the structure. Value will be zero if      */
> +				/* there is no memory map being provided.    */
> +    uint32_t reserved;

For both new reserved fields, please state in at least one of
formal definition and C implementation that they're required to be
set to zero in version 1. That'll open the road to assign meaning
to these fields perhaps without having to bump the version number.

Jan


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

  parent reply	other threads:[~2018-03-05  9:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-02 20:54 [PATCH 0/1] x86/PVHv2: Add memory map pointer to hvm_start_info struct Maran Wilson
2018-03-02 20:54 ` [PATCH 1/1] " Maran Wilson
2018-03-02 21:20   ` Konrad Rzeszutek Wilk
2018-03-02 22:29     ` Maran Wilson
2018-03-06 19:08       ` Daniel Kiper
2018-03-05  9:16   ` Jan Beulich [this message]
2018-03-13 10:50   ` Roger Pau Monné
2018-03-13 16:20     ` Maran Wilson
2018-03-13 16:34       ` Jan Beulich
2018-03-13 16:55         ` Maran Wilson
2018-03-13 17:16           ` Roger Pau Monné
2018-03-13 18:09             ` Maran Wilson
2018-03-14  7:43           ` Jan Beulich
2018-03-13 16:38       ` Roger Pau Monné

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=5A9D18FE02000078001AE699@prv-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=maran.wilson@oracle.com \
    --cc=xen-devel@lists.xen.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.