From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [PATCH v4 1/4] x86/HVM: update the start info structure layout Date: Wed, 17 Feb 2016 02:58:05 -0700 Message-ID: <56C4523D02000078000D2FCC@prv-mh.provo.novell.com> References: <1455644269-40358-1-git-send-email-roger.pau@citrix.com> <1455644269-40358-2-git-send-email-roger.pau@citrix.com> <56C393FA.8090104@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aVys5-0001Pt-QO for xen-devel@lists.xenproject.org; Wed, 17 Feb 2016 09:58:09 +0000 In-Reply-To: <56C393FA.8090104@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky Cc: Wei Liu , Ian Campbell , Andrew Cooper , Ian Jackson , xen-devel@lists.xenproject.org, Samuel Thibault , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org >>> On 16.02.16 at 22:26, wrote: > On 02/16/2016 12:37 PM, Roger Pau Monne wrote: >> diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h >> index 7b629b1..6ba060f 100644 >> --- a/xen/include/public/xen.h >> +++ b/xen/include/public/xen.h >> @@ -787,25 +787,46 @@ typedef struct start_info start_info_t; >> /* >> * Start of day structure passed to PVH guests in %ebx. >> * >> - * NOTE: nothing will be loaded at physical address 0, so >> - * a 0 value in any of the address fields should be treated >> - * as not present. >> + * NOTE: nothing will be loaded at physical address 0, so a 0 value in any >> + * of the address fields should be treated as not present. >> + * >> + * 0 +----------------+ >> + * | magic | Contains the magic value HVM_START_MAGIC_VALUE >> + * | | ("xEn3" with the 0x80 bit of the "E" set). >> + * 4 +----------------+ >> + * | version | Version of this structure. Current version is 0. New >> + * | | versions are guaranteed to be backwards-compatible. > > #define XEN_HVM_START_INFO_VERSION 0 What would that buy us? Once it gets bumped to 1, consumers would need to check against literal zero anyway. Jan