All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Anthony PERARD" <anthony.perard@vates.tech>
To: "Teddy Astie" <teddy.astie@vates.tech>
Cc: xen-devel@lists.xenproject.org,
	"Oleksii Kurochko" <oleksii.kurochko@gmail.com>,
	"Community Manager" <community.manager@xenproject.org>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Jan Beulich" <jbeulich@suse.com>,
	"Julien Grall" <julien@xen.org>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>
Subject: Re: [RESEND PATCH v2 1/3] xen: Define xen_domain_handle_t encoding and formatting
Date: Wed, 17 Dec 2025 15:53:11 +0000	[thread overview]
Message-ID: <aULR5vTz1DEHxu8X@l14> (raw)
In-Reply-To: <a12f705dae18ae2b87c9e21027d14c4e60bff146.1756460430.git.teddy.astie@vates.tech>

On Fri, Aug 29, 2025 at 09:58:15AM +0000, Teddy Astie wrote:
> 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
>  
> +/*
> + * The domain handle is chosen by the toolstack, and intended to hold a UUID
> + * 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.
> + */

So, there's already a definition about this, but it's a comment on
XENVER_guest_handle (in public/version.h):

> /* arg == xen_domain_handle_t.
>  *
>  * The toolstack fills it out for guest consumption. It is intended to hold
>  * the UUID of the guest.
>  */

We can add that the binary format is most significant byte or network
byte order, but that's already the format stated in RFC 4122 and its
successor RFC 9562.

Also, I don't think it is useful here to point out how that handle/UUID
might be used/transformed by guest.

>  typedef uint8_t xen_domain_handle_t[16];

Cheers,

-- 

--
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech




  parent reply	other threads:[~2025-12-17 15:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-29  9:58 [RESEND PATCH v2 0/3] Update to SMBIOS 2.6 Teddy Astie
2025-08-29  9:58 ` [RESEND PATCH v2 1/3] xen: Define xen_domain_handle_t encoding and formatting Teddy Astie
2025-09-01 13:34   ` Oleksii Kurochko
2025-09-01 15:55   ` Jan Beulich
2025-09-03 14:24     ` Oleksii Kurochko
2025-12-17 15:53   ` Anthony PERARD [this message]
2025-08-29  9:58 ` [RESEND PATCH v2 3/3] CHANGELOG.md: Add SMBIOS 2.6 update statement Teddy Astie
2025-09-01 13:42   ` Oleksii Kurochko
2025-09-01 13:52   ` Jan Beulich
2025-08-29  9:58 ` [RESEND PATCH v2 2/3] hvmloader: Update to SMBIOS 2.6 Teddy Astie
2025-09-02 12:35   ` Jan Beulich
2025-09-02 13:24     ` Teddy Astie
2025-09-02 14:10       ` Jan Beulich
2025-09-03 14:02         ` Teddy Astie
2025-09-03 15:05           ` Jan Beulich
2025-12-17 15:22   ` Anthony PERARD
2026-01-08 13:54     ` Teddy Astie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aULR5vTz1DEHxu8X@l14 \
    --to=anthony.perard@vates.tech \
    --cc=andrew.cooper3@citrix.com \
    --cc=community.manager@xenproject.org \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=oleksii.kurochko@gmail.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=teddy.astie@vates.tech \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.