From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: Re: [PATCH v4 1/4] x86/HVM: update the start info structure layout Date: Wed, 17 Feb 2016 09:39:28 -0500 Message-ID: <56C48620.50308@oracle.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> <56C4523D02000078000D2FCC@prv-mh.provo.novell.com> <56C445D8.7020007@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aW3GN-0005UT-MK for xen-devel@lists.xenproject.org; Wed, 17 Feb 2016 14:39:31 +0000 In-Reply-To: <56C445D8.7020007@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Jan Beulich Cc: Wei Liu , Ian Campbell , Andrew Cooper , Ian Jackson , Samuel Thibault , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On 02/17/2016 05:05 AM, Roger Pau Monn=E9 wrote: > El 17/2/16 a les 10:58, Jan Beulich ha escrit: >>>>> 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 i= n any >>>> + * of the address fields should be treated as not present. >>>> + * >>>> + * 0 +----------------+ >>>> + * | magic | Contains the magic value HVM_START_MAGIC_VAL= UE >>>> + * | | ("xEn3" with the 0x80 bit of the "E" set). >>>> + * 4 +----------------+ >>>> + * | version | Version of this structure. Current version i= s 0. New >>>> + * | | versions are guaranteed to be backwards-comp= atible. >>> #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. Consumers would need to check against what their header file's version = is, not necessarily zero. And they, for example, may decide not to run = if the version provided by the structure is smaller than what they support. -boris > I agree with Jan that this doesn't seem very useful, the headers don't > have to be in sync with the underlying hypervisor, so it's better to > just use literals instead of defines. > > Roger.