From: Ian Jackson Subject: Re: [PATCH 2/2] libxl: fix UUID usage on FreeBSD Date: Tue, 19 Jan 2016 18:40:36 +0000 Message-ID: <22174.33572.645123.682235@mariner.uk.xensource.com> References: <1452604467-65746-1-git-send-email-roger.pau@citrix.com> <1452604467-65746-3-git-send-email-roger.pau@citrix.com> <1452853602.32341.61.camel@citrix.com> <56990C23.3030803@citrix.com> <1452871582.6020.38.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aLbCr-0007IW-Cy for xen-devel@lists.xenproject.org; Tue, 19 Jan 2016 18:40:41 +0000 In-Reply-To: <1452871582.6020.38.camel@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: Ian Campbell Cc: xen-devel@lists.xenproject.org, Wei Liu , Roger Pau =?utf-8?Q?Monn=C3=A9?= List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 2/2] libxl: fix UUID usage on = FreeBSD"): > On Fri, 2016-01-15 at 16:11 +0100, Roger Pau Monn=E9 wrote: > > Yes, we can remove the uuid_t from libxl_uuid, but this is AFAICT a > > structure that belongs to the stable API. > = > Oh b*m, so it is. I think we may have to bite this bullet. Perhaps we could make an #ifdef that softened the blow on systems with sane uuid_t. Given that we have discovered that uuid_t is sometimes insane, I think we really really want to avoid it. > Or can we get rid of uuid_raw (which is not touched, and is less likely to > be given that it is only on a subset of platforms) and have libxl > _internal_ stuff convert to a byte array. We don't want to do any byteswapping. That way lies utter madness. At the libxl API/ABI uuids should be represented as sequences of 16 octets in network byte order (BE). Ian.