From: Julien Grall Subject: [PATCH 2/4] xen/public: arm: Rework __guest_handle_param* Date: Fri, 30 Oct 2015 18:13:31 +0000 Message-ID: <1446228813-2593-3-git-send-email-julien.grall@citrix.com> References: <1446228813-2593-1-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 1ZsEJX-000842-Q1 for xen-devel@lists.xenproject.org; Fri, 30 Oct 2015 18:22:11 +0000 In-Reply-To: <1446228813-2593-1-git-send-email-julien.grall@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: xen-devel@lists.xenproject.org Cc: Keir Fraser , ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, Tim Deegan , Ian Jackson , Julien Grall , Jan Beulich List-Id: xen-devel@lists.xenproject.org __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 --- Cc: Ian Jackson Cc: Jan Beulich Cc: Keir Fraser Cc: Tim Deegan --- xen/include/public/arch-arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/public/arch-arm.h b/xen/include/public/arch-arm.h index 35839db..477254f 100644 --- a/xen/include/public/arch-arm.h +++ b/xen/include/public/arch-arm.h @@ -170,7 +170,7 @@ #ifndef __ASSEMBLY__ #define ___DEFINE_XEN_GUEST_HANDLE(name, type) \ - typedef union { type *p; unsigned long q; } \ + typedef struct { type *p; } \ __guest_handle_param_ ## name; \ typedef union { type *p; uint64_aligned_t q; } \ __guest_handle_ ## name; -- 2.1.4