[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Arm: constrain {,u}int64_aligned_t in public header


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 1 Sep 2023 09:26:33 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=deRWhbj0zeKddml58ln36qokWmFeaFHTvp2G+ldc8+0=; b=N8SAQOIlRKDoS3r3jIrpTzOwoGPLlL6M+ThEJnDwJYbMIwUws32xBa2Bqt/xXNWG5mAgWJRdWVJYLjTHEsRvYWzwRPO2Li1EPyERvC2AA7pAo8cNLeUdJYoz3sPWFVBkolxkWBARXgcjIOWaiZoUrRTOCy4XDKXLHtMRNDynh/4qth5usLjHl1PIT4R4FjzRJdWjzOZ7EnLyjJExgR1AYedWNsiY2OfbL9GPJTPubxP4Sc7ybXFEMJYct4xbv80f2/9q6/DBd9pA1EhUlkJn0qxMDDlasEOefQ64Jb4r+WecZyjikwVF4fYlL4DgAiFguowmgLezkQaPn/6yVWNiGw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R1R1wrjCQI/EFhgWmtVtGFZXOHo/xPBPcYdqDybfC8gDxR01YkTMX04O5JZlKi5OserNBo7m+eCMfsRQohimIs37melBuhvl89Sxj3i1823MQGwZ/sGz6s3PGWK92XCBEat2Bx9QAwgIvKPUkaMVKV8sz8Nqz9aZbe2XqCyj1msIb8D5pRT0TNgAwkYKNdlsm0Qk29eCmJDhw9jPykszR39AIs0tFRaSdiOOw6ZISJBjUL7bcEEjLOdB13gWNIwLJRkiTtyZARQ2LNpR72IHTdQZ2IFcUHn0RCS5yHCfR3U5qK1LspS1DqJ+eUGM6d0Z8weiLS89t40YwPhLa84YAA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
  • Delivery-date: Fri, 01 Sep 2023 07:26:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This using a GNU extension, it may not be exposed in general, just like
is done on x86. External consumers need to make this type available up
front (just like we expect {,u}int<N>_t to be supplied) - unlike on x86
the type is actually needed outside of tools-only interfaces, because
guest handle definitions use it.

While there also add underscores around "aligned".

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/include/public/arch-arm.h
+++ b/xen/include/public/arch-arm.h
@@ -152,8 +152,10 @@
 
 #define XEN_HYPERCALL_TAG   0XEA1
 
-#define  int64_aligned_t  int64_t __attribute__((aligned(8)))
-#define uint64_aligned_t uint64_t __attribute__((aligned(8)))
+#if defined(__XEN__) || defined(__XEN_TOOLS__)
+#define  int64_aligned_t  int64_t __attribute__((__aligned__(8)))
+#define uint64_aligned_t uint64_t __attribute__((__aligned__(8)))
+#endif
 
 #ifndef __ASSEMBLY__
 #define ___DEFINE_XEN_GUEST_HANDLE(name, type)                  \



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.