xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: wei.liu2@citrix.com, Maran Wilson <maran.wilson@oracle.com>,
	andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com,
	xen-devel@lists.xen.org,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>
Subject: Re: [PATCH v2 1/4] x86/PVHv2: Add memory map pointer to hvm_start_info struct
Date: Thu, 15 Mar 2018 09:31:40 +0000	[thread overview]
Message-ID: <20180315093140.osjmbogh5635iatr@MacBook-Pro-de-Roger.local> (raw)
In-Reply-To: <5AAA2D4002000078001B1E76@prv-mh.provo.novell.com>

On Thu, Mar 15, 2018 at 01:22:24AM -0600, Jan Beulich wrote:
> >>> On 14.03.18 at 21:07, <maran.wilson@oracle.com> wrote:
> > OK, I think I'm following the specifics now. But just to make sure we 
> > all on the same page before sending out the next version...
> > 
> > I'll be adding something like the following to the header file:
> > 
> > ...
> > /*
> >   * For x86 implementations at least, the values used in the type field 
> > of the
> >   * memory map table entries are defined below and match the Address 
> > Range Types
> >   * as defined in section 15 (System Address Map Interfaces) of the ACPI
> >   * Specification (http://uefi.org/specifications)
> >   */
> > #define PVH_MEMMAP_TYPE_RAM       1
> > #define PVH_MEMMAP_TYPE_RESERVED  2
> > #define PVH_MEMMAP_TYPE_ACPI      3
> > #define PVH_MEMMAP_TYPE_NVS       4
> > #define PVH_MEMMAP_TYPE_UNUSABLE  5
> > #define PVH_MEMMAP_TYPE_PMEM      7
> > ...
> > 
> > And then we will find an appropriate place in the c code to add a couple 
> > of BUILD_BUG_ON() macros to make sure the above remain consistent with 
> > E820_xxx.
> > 
> > Does that sound about right?
> 
> About, yes. Subject to the name prefix adjustment as per the other
> reply (to Boris) just sent. Plus I'm not convinced of the x86
> restriction here: There's nothing x86-specific about these in the
> ACPI spec.

This header and interface is already x86 specific ATM, so I would
simply avoid the starting "For x86...". Iff this is ever used by
other arches we can then decide what to do with the memory types.

The rest LGTM (modulo Jan's requested changes).

Thanks, Roger.

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

  reply	other threads:[~2018-03-15  9:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-13 23:31 [PATCH v2 0/4] x86/PVHv2: Add memory map pointer to hvm_start_info struct Maran Wilson
2018-03-13 23:31 ` [PATCH v2 1/4] " Maran Wilson
2018-03-14  7:55   ` Jan Beulich
2018-03-14 17:28     ` Boris Ostrovsky
2018-03-14 20:07       ` Maran Wilson
2018-03-15  7:22         ` Jan Beulich
2018-03-15  9:31           ` Roger Pau Monné [this message]
2018-03-15  7:12       ` Jan Beulich
2018-03-13 23:31 ` [PATCH v2 2/4] libxl: Move libxl__arch_domain_construct_memmap() earlier Maran Wilson
2018-03-13 23:31 ` [PATCH v2 3/4] libxl: Store PVH guest's e820 map in xc_dom_image Maran Wilson
2018-03-13 23:31 ` [PATCH v2 4/4] libxc: Pass e820 map to PVH guest via hvm_start_info Maran Wilson

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=20180315093140.osjmbogh5635iatr@MacBook-Pro-de-Roger.local \
    --to=roger.pau@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=maran.wilson@oracle.com \
    --cc=wei.liu2@citrix.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).