xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: edk2-devel@lists.sourceforge.net, xen-devel@lists.xen.org
Subject: Re: [PATCH RFC v2 3/7] OvmfPkg: define EFI_XEN_OVMF_INFO and extend XenInfo
Date: Tue, 19 Nov 2013 16:10:47 -0500	[thread overview]
Message-ID: <20131119211047.GA8364@phenom.dumpdata.com> (raw)
In-Reply-To: <1384893529-3175-4-git-send-email-wei.liu2@citrix.com>

On Tue, Nov 19, 2013 at 08:38:45PM +0000, Wei Liu wrote:
> EFI_XEN_OVMF_INFO is defined to accept configurations from hvmloader. It
> must match the definition on Xen side.
> 
> XenInfo is extended to include those bits as well. Currently only E820
> map is in use.
> 
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> ---
>  OvmfPkg/Include/Guid/XenInfo.h |   27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
> diff --git a/OvmfPkg/Include/Guid/XenInfo.h b/OvmfPkg/Include/Guid/XenInfo.h
> index d512b0b..eaeab1a 100644
> --- a/OvmfPkg/Include/Guid/XenInfo.h
> +++ b/OvmfPkg/Include/Guid/XenInfo.h
> @@ -18,6 +18,28 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
>  #define EFI_XEN_INFO_GUID \
>      { 0xd3b46f3b, 0xd441, 0x1244, {0x9a, 0x12, 0x0, 0x12, 0x27, 0x3f, 0xc1, 0x4d } }
>  
> +#pragma pack(1)
> +typedef struct {
> +  CHAR8 Signature[11]; /* XenHVMOVMF\0 */
> +  CHAR8 Padding[3];

Why the padding?
> +  UINT8 Length;     /* Length of this struct */
> +  UINT8 Checksum;   /* Set such that the sum over bytes 0..length == 0 */
> +  /*
> +   * Physical address of an array of tables_nr elements.
> +   *
> +   * Each element is a 32 bit value contianing the physical address
                                       ^^^^^^^^^^

> +   * of a BIOS table.
> +   */
> +  UINT32 Tables;
> +  UINT32 TablesNr;
> +  /*
> +   * Physical address of the e820 table, contains e820_nr entries.
> +   */
> +  UINT32 E820;
> +  UINT32 E820Nr;
> +} EFI_XEN_OVMF_INFO;
> +#pragma pack()
> +
>  typedef struct {
>    ///
>    /// Beginning of the hypercall page.
> @@ -35,6 +57,11 @@ typedef struct {
>    /// Hypervisor minor version.
>    ///
>    UINT16 VersionMinor;
> +  ///
> +  /// E820 map
> +  ///
> +  VOID *E820;
> +  UINT16 E820EntryCount;
>  } EFI_XEN_INFO;
>  
>  extern EFI_GUID gEfiXenInfoGuid;
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  parent reply	other threads:[~2013-11-19 21:10 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1384893529-3175-1-git-send-email-wei.liu2@citrix.com>
2013-11-19 20:38 ` [PATCH RFC v2 1/7] MdeModulePkg: introduce PcdPciAllowFullEnumeration Wei Liu
2013-11-19 20:38 ` [PATCH RFC v2 2/7] OvmfPkg: introduce E820.h Wei Liu
2013-11-19 20:38 ` [PATCH RFC v2 3/7] OvmfPkg: define EFI_XEN_OVMF_INFO and extend XenInfo Wei Liu
2013-11-19 20:38 ` [PATCH RFC v2 4/7] OvmfPkg: extract OVMF info passed by Xen hvmloader Wei Liu
2013-11-19 20:38 ` [PATCH RFC v2 5/7] OvmfPkg: detect Xen earlier Wei Liu
2013-11-19 20:38 ` [PATCH RFC v2 6/7] OvmfPkg: introduce PublishPeiMemory Wei Liu
2013-11-19 20:38 ` [PATCH RFC v2 7/7] OvmfPkg: introduce XenMemMapInitialization Wei Liu
     [not found] ` <1384893529-3175-4-git-send-email-wei.liu2@citrix.com>
2013-11-19 21:10   ` Konrad Rzeszutek Wilk [this message]
2013-11-25  1:46   ` [edk2] [PATCH RFC v2 3/7] OvmfPkg: define EFI_XEN_OVMF_INFO and extend XenInfo Jordan Justen
     [not found]   ` <CAFe8ug8ePrQAwDeo_hV3VurM406kL0zPtxa7jouOP9-y=F-6PQ@mail.gmail.com>
2013-11-25  9:56     ` Ian Campbell
2013-11-25 11:41     ` Wei Liu
     [not found]     ` <20131125114105.GE7459@zion.uk.xensource.com>
2013-11-25 20:00       ` Jordan Justen
     [not found]       ` <CAFe8ug8z4yr0cR2+ZwzCahMQSR-D725c5pPG5pY8ZAzQL6QGow@mail.gmail.com>
2013-11-26 10:16         ` Ian Campbell
2013-11-26 16:46           ` Jordan Justen
     [not found]           ` <CAFe8ug9gxjESfqi8KSVji2_+wuOzPserBZ+v3MArM2AZsV+bpQ@mail.gmail.com>
2013-11-26 16:54             ` Ian Campbell
2013-11-19 21:58 ` [edk2] [PATCH RFC v2 0/7] Make OVMF fully working with Xen Jordan Justen
     [not found] ` <1384893529-3175-2-git-send-email-wei.liu2@citrix.com>
2013-11-24 22:05   ` [edk2] [PATCH RFC v2 1/7] MdeModulePkg: introduce PcdPciAllowFullEnumeration Jordan Justen
     [not found]   ` <CAFe8ug-bkkWNd+s6bgGf1CaOar5r0pfyJUb4Zq=y_5J+ULwDmA@mail.gmail.com>
2013-11-25  0:25     ` Tian, Feng
2013-11-25  1:47     ` Kinney, Michael D
     [not found]     ` <E92EE9817A31E24EB0585FDF735412F562525E01@ORSMSX106.amr.corp.intel.com>
2013-11-25  2:27       ` Jordan Justen
     [not found]       ` <CAFe8ug9eokEfPbN=145RyQWc7qE+mtVibyv_pYH53LxyP5D1hA@mail.gmail.com>
2013-11-25  3:12         ` Kinney, Michael D
     [not found]         ` <E92EE9817A31E24EB0585FDF735412F562525E9B@ORSMSX106.amr.corp.intel.com>
2013-11-25 10:55           ` [edk2] [PATCH RFC v2 1/7] MdeModulePkg: introduce PcdPciAllowFullEnumeration ... [and one more message] Wei Liu
     [not found]           ` <20131125105530.GB7459@zion.uk.xensource.com>
2013-11-25 23:27             ` Kinney, Michael D
     [not found]             ` <E92EE9817A31E24EB0585FDF735412F5625264DA@ORSMSX106.amr.corp.intel.com>
2013-11-26 11:35               ` Wei Liu
2013-11-25 10:56     ` [edk2] [PATCH RFC v2 1/7] MdeModulePkg: introduce PcdPciAllowFullEnumeration Wei Liu
     [not found] ` <1384893529-3175-3-git-send-email-wei.liu2@citrix.com>
2013-11-24 22:10   ` [edk2] [PATCH RFC v2 2/7] OvmfPkg: introduce E820.h Jordan Justen
     [not found] ` <1384893529-3175-5-git-send-email-wei.liu2@citrix.com>
2013-11-25  2:01   ` [edk2] [PATCH RFC v2 4/7] OvmfPkg: extract OVMF info passed by Xen hvmloader Jordan Justen
     [not found]   ` <CAFe8ug_Cb78Gz6sOAvpcZueOmWanfkmDzG98Fjwa7vDXWw4S0A@mail.gmail.com>
2013-11-25 11:50     ` Wei Liu
     [not found] ` <1384893529-3175-8-git-send-email-wei.liu2@citrix.com>
2013-11-25 20:38   ` [edk2] [PATCH RFC v2 7/7] OvmfPkg: introduce XenMemMapInitialization Jordan Justen
     [not found]   ` <CAFe8ug90_1RGh_NLZTY8aXYRd-T3XjjahfePOd-dtxgup8=9Mw@mail.gmail.com>
2013-11-26 13:46     ` Wei Liu
     [not found]     ` <20131126134654.GB12187@zion.uk.xensource.com>
2013-11-26 13:57       ` Laszlo Ersek

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=20131119211047.GA8364@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=edk2-devel@lists.sourceforge.net \
    --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).