From: "Jan Beulich" Subject: Re: [PATCH v12 for-xen-4.5 01/20] common/symbols: Export hypervisor symbols to privileged guest Date: Mon, 29 Sep 2014 15:33:13 +0100 Message-ID: <542989C9020000780003A9AE@mail.emea.novell.com> References: <1411673336-32736-1-git-send-email-boris.ostrovsky@oracle.com> <1411673336-32736-2-git-send-email-boris.ostrovsky@oracle.com> <20140926145812.GB14378@laptop.dumpdata.com> <54259DF10200007800039C83@mail.emea.novell.com> <20140926164903.GA3927@laptop.dumpdata.com> <54291BAE020000780003A3AD@mail.emea.novell.com> <54295EA2.1030800@oracle.com> <54297F16020000780003A8AD@mail.emea.novell.com> <542969DB.9020006@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <542969DB.9020006@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 , Konrad Rzeszutek Wilk Cc: kevin.tian@intel.com, keir@xen.org, suravee.suthikulpanit@amd.com, andrew.cooper3@citrix.com, tim@xen.org, dietmar.hahn@ts.fujitsu.com, xen-devel@lists.xen.org, Aravind.Gopalakrishnan@amd.com, jun.nakajima@intel.com, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org >>> On 29.09.14 at 16:16, wrote: > On 09/29/2014 09:47 AM, Jan Beulich wrote: >>>>> On 29.09.14 at 15:29, wrote: >>> I am not sure I understand how setting fields to zero would help with >>> figuring out whether a new fields has been added. I can see how it can >>> in some cases but not in general. >> If you check that padding fields are zero now, meaning can be >> assigned to them later on, while if you allow them to be uninitialized, >> that's not an option. > > What if the new field is meant to be zero? You can't guarantee that if > pad is zero it is still a pad on the "other side" of the call, can you? I don't understand what you trying to tell me here. > Besides, in this particular case, the structure is set up in the caller, > so presumably it should be the one clearing all pads (which it does, but > not for this specific reason). Of course it's the caller to zero the field. And the callee (hypervisor) to check that it's zero. I never said the hypervisor should clear it. Jan