From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH 2/4] xen/public: arm: Rework __guest_handle_param* Date: Mon, 2 Nov 2015 15:24:49 +0000 Message-ID: <56378041.1030305@citrix.com> References: <1446228813-2593-1-git-send-email-julien.grall@citrix.com> <1446228813-2593-3-git-send-email-julien.grall@citrix.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 1ZtGzu-0005xN-TR for xen-devel@lists.xenproject.org; Mon, 02 Nov 2015 15:26:15 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Keir Fraser , ian.campbell@citrix.com, Tim Deegan , Ian Jackson , Jan Beulich , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Hi Stefano, On 02/11/15 15:19, Stefano Stabellini wrote: > On Fri, 30 Oct 2015, Julien Grall wrote: >> __guest_handle_param is used to represent a guest pointer stored pass as >> an hypercall parameters. They are the same size as the native register >> for the architecture. It will be 32-bit on ARM32 and 64-bit on ARM64. >> >> As the __guest_handle_param will always be the size of a native >> pointer, there is no need to have a union with an unsigned long. >> >> Note that unsigned long may be not equivalent to the size of a pointer >> on ARM64. It depends whether the software is build using the LP64 or >> LLP64 data model. The size of an unsigned long in the latter will be >> 32-bit. >> >> Signed-off-by: Julien Grall > > Obviously this is going to break set_xen_guest_handle_raw. I don't think > this cannot be committed separately to the change to > set_xen_guest_handle_raw. Well, all the usage of set_xen_guest_handle_raw within the hypervisor are in compat and kexec which is not built for ARM. Furthermore, after this series set_xen_guest_handle_raw won't work anymore with a guest_handle_param. Regards, -- Julien Grall