Skip to contentSkip to conversation

Update to SMBIOS 2.6

PATCH Superseded Teddy Astie 1 participant 2 messages Aug 28, 2025

lore
Share & tools
lore
#0 lore raw

v2 cover Update to SMBIOS 2.6

First patch clarify the Xen guest handle definition as being a big endian UUID. The second does update to SMBIOS 2.6, writing a proper UUID in the table.

Teddy Astie (3):
xen: Define xen_domain_handle_t encoding and formatting
hvmloader: Update to SMBIOS 2.6
CHANGELOG.md: Add SMBIOS 2.6 update statement

 CHANGELOG.md                            |  2 +
 tools/firmware/hvmloader/smbios.c       | 50 ++++++++++++++++++++-----
 tools/firmware/hvmloader/smbios_types.h |  9 +++++
 xen/include/public/xen.h                |  7 ++++
 4 files changed, 59 insertions(+), 9 deletions(-)
Signature · 9 lines
2.50.1



Teddy Astie | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech
#1 lore raw

PATCH v2 1/3 xen: Define xen_domain_handle_t encoding and formatting

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 structure")

---
v2:
- introduced

---
 CHANGELOG.md             | 1 +
 xen/include/public/xen.h | 7 +++++++
 2 files changed, 8 insertions(+)
CHANGELOG.md +1 -0
index cd34ea87b8..8c4435c181 100644
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.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.
 
  - On x86:
    - Restrict the cache flushing done as a result of guest physical memory map
xen/include/public/xen.h +7 -0
index 82b9c05a76..a219ef870f 100644
@@ -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.
+ */
 typedef uint8_t xen_domain_handle_t[16];
 
 __DEFINE_XEN_GUEST_HANDLE(uint8,  uint8_t);
Signature · 9 lines
2.50.1



Teddy Astie | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech