From nobody Fri Oct 31 03:48:31 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1756461516; cv=none; d=zohomail.com; s=zohoarc; b=ON0hQOLtz6WVpa+2Lrsw6YmS+n8NLxCYe/WgkUONJc+hU27JWmg/ewcw6HH0TfRCy42cB1X5E2NTbzJCr1mMh5aIC6KK7HUEl1S3ziIifcEwfyFdtjYpBj1WqRmjWUInkHSPJ6mYWfHRR6kjL/1rCtGHaLxnHdn5gVtV4uZ5Mi0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1756461516; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=749WZuQSD3RJ4fQfzKGkAT09RJssRy+QRzxpooPcevY=; b=VAkZ6wuqaGtDxZU0cjF8xeUrJQHqBpG01vH57XcqBoVG/HDBiu/KPmu/WIKnpuukPQGJl7BcYlW0IM2F7GwndZLVNEuJj0rtTn4vJQQ0eDOJMIbR4E6J75xbu5JrUb8jI4UvULNEPZU/e12+9qt0uRjfBXsIKHnBW3VU+19jfwo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 17564615160623.4553652125523513; Fri, 29 Aug 2025 02:58:36 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1101001.1454230 (Exim 4.92) (envelope-from ) id 1urvsC-00066Y-2M; Fri, 29 Aug 2025 09:58:20 +0000 Received: by outflank-mailman (output) from mailman id 1101001.1454230; Fri, 29 Aug 2025 09:58:20 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1urvsB-00066R-UX; Fri, 29 Aug 2025 09:58:19 +0000 Received: by outflank-mailman (input) for mailman id 1101001; Fri, 29 Aug 2025 09:58:18 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1urvsA-00065v-S1 for xen-devel@lists.xenproject.org; Fri, 29 Aug 2025 09:58:18 +0000 Received: from mail187-26.suw11.mandrillapp.com (mail187-26.suw11.mandrillapp.com [198.2.187.26]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id aee09c2f-84be-11f0-8dd7-1b34d833f44b; Fri, 29 Aug 2025 11:58:16 +0200 (CEST) Received: from pmta09.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail187-26.suw11.mandrillapp.com (Mailchimp) with ESMTP id 4cCtxg6PV4zKsbTcD for ; Fri, 29 Aug 2025 09:58:15 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id a8df3ebcb36c409d82b104256e9157ed; Fri, 29 Aug 2025 09:58:15 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: aee09c2f-84be-11f0-8dd7-1b34d833f44b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1756461495; x=1756731495; bh=749WZuQSD3RJ4fQfzKGkAT09RJssRy+QRzxpooPcevY=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=lDWuHmjFF3269NO8JZUgwmgE+YgGKnOVWjiwo2lm32XHr/TkoXkHrwY15+I64DbhV coY4dhUpJT+S6TFHd2y/c4BkTQu1um0inMSBJVv7no3l0Rm851pG6NpfTMacoB3iLk 7NPkiZlF3pe7LFD6AjVv2B7ONmNuzUcyiLJETnHXnH08BTvM3htNbLL6Vc6vrmf+AI lgRAdxK5kOyIbTCUAfm9IbIlylK2Q8+t2xw2++uQa3ES5mg9xO1LUvxewsMn3sTXbG RCEHSjK9952hldNqXMQIuKRkisOefOcpFzknpBMyIe/N+Ja7daB+n+/lMh19MJhy+9 ia9EVyZzAkbcw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1756461495; x=1756721995; i=teddy.astie@vates.tech; bh=749WZuQSD3RJ4fQfzKGkAT09RJssRy+QRzxpooPcevY=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=B/vDckBmv8ktndslt08iaMbgXt1bmJOTd2R7y2ilanxljQs8HnXe8HUM0rr0364zt dklG98knDxLvHuRLCcT1PRBEZ3aEwf+1DtjleAT/329o+8BFSKaMA9t3FBmh4RQcgs xElsHaw0eTOzTrdpiHpjdGGu1boUwWfRA5c42+KzMGXIYvxZphQukQXtuU7V4EAbAs 6M0OR65XnGwzhlGqdEV9oo/gtFRJtqT2WnakARXcXtBQ5h73oNBSUmn5aFhGTIVXjr kPGqxig5uMVZecR+gjQCVz3uZwW12aZVNBwRZ5oSywJdErWUgVHqDarsQoZlxQhGpK nGRJ3rzyiBLQQ== From: "Teddy Astie" Subject: =?utf-8?Q?[RESEND=20PATCH=20v2=201/3]=20xen:=20Define=20xen=5Fdomain=5Fhandle=5Ft=20encoding=20and=20formatting?= X-Mailer: git-send-email 2.50.1 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1756461494427 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Oleksii Kurochko" , "Community Manager" , "Andrew Cooper" , "Anthony PERARD" , "Michal Orzel" , "Jan Beulich" , "Julien Grall" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" , "Stefano Stabellini" Message-Id: In-Reply-To: References: X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.a8df3ebcb36c409d82b104256e9157ed?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20250829:md Date: Fri, 29 Aug 2025 09:58:15 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @mandrillapp.com) (identity teddy.astie@vates.tech) X-ZM-MESSAGEID: 1756461517739116600 Content-Type: text/plain; charset="utf-8" xen_domain_handle_t is defined as a opaque 16-bytes blob, but is commonly used by toolstack and guest as a big-endian encoded and formatted UUID (alike RFC 9562). Clarify the definition of the type to ensure the guest and toolstack interprets this value correctly in a way consistent with existing users (at least with XAPI, xl, libvirt, hvmloader and Linux). Fixes: 30ce2a9295a5 ("Store an opaque handle (tools uuid) in the domain str= ucture") Suggested-by: Andrew Cooper Signed-off-by: Teddy Astie --- v2: - introduced --- CHANGELOG.md | 1 + xen/include/public/xen.h | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd34ea87b8..8c4435c181 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepach= angelog.com/en/1.0.0/) - For x86, GCC 5.1 and Binutils 2.25, or Clang/LLVM 11 - For ARM32 and ARM64, GCC 5.1 and Binutils 2.25 - Linux based device model stubdomains are now fully supported. + - Clarify guest UUIDs as being big-endian encoded. =20 - On x86: - Restrict the cache flushing done as a result of guest physical memory= map diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h index 82b9c05a76..a219ef870f 100644 --- a/xen/include/public/xen.h +++ b/xen/include/public/xen.h @@ -973,6 +973,13 @@ typedef struct dom0_vga_console_info { #define xen_vga_console_info dom0_vga_console_info #define xen_vga_console_info_t dom0_vga_console_info_t =20 +/* + * The domain handle is chosen by the toolstack, and intended to hold a UU= ID + * conforming to RFC 9562 (i.e. big endian). + * + * Certain cases (e.g. SMBios) transform it to a Microsoft GUID (little + * endian) for presentation to the guest. + */ typedef uint8_t xen_domain_handle_t[16]; =20 __DEFINE_XEN_GUEST_HANDLE(uint8, uint8_t); --=20 2.50.1 Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech