From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v1 2/4] xen-version: Add third parameter (len) to the do_version hypercall. Date: Fri, 9 Oct 2015 13:29:10 +0100 Message-ID: <5617B316.7040408@citrix.com> References: <1444359390-14153-1-git-send-email-konrad.wilk@oracle.com> <1444359390-14153-3-git-send-email-konrad.wilk@oracle.com> <5617962602000078000A99DE@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZkWnS-0004r3-TD for xen-devel@lists.xenproject.org; Fri, 09 Oct 2015 12:29:15 +0000 In-Reply-To: <5617962602000078000A99DE@prv-mh.provo.novell.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: Jan Beulich , Konrad Rzeszutek Wilk Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, mpohlack@amazon.de, xen-devel@lists.xenproject.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org On 09/10/15 09:25, Jan Beulich wrote: >>>> On 09.10.15 at 04:56, wrote: >> All existing commands ignore the parameter so this does >> not break the ABI. > Does it not? What about the debug mode clobbering of hypercall > argument registers? That is an implementation detail of the hypervisor. It is irrelevant to guests whether Xen chooses to clobber the spare registers or not. > I think such length indicators need to be part > of the newly added sub-structures instead. I disagree. Having this as a hypercall parameter is ABI compatible, and avoids unnecessary copy_from_guest() ~Andrew > >> This paves the way for expanding the XENVER_ >> hypercall with variable size structures, such as >> "XENVER_build_id: Provide ld-embedded build-ids" >> >> Suggested-by: Andrew Cooper >> Signed-off-by: Konrad Rzeszutek Wilk >> --- >> xen/arch/arm/traps.c | 2 +- > xen/arch/x86/x86_64/entry.S > xen/arch/x86/x86_64/compat/entry.S > > (but that's moot with the comment above) > > Jan >