Update to SMBIOS 2.6
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
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).
---
v2:
- introduced
--- CHANGELOG.md | 1 + xen/include/public/xen.h | 7 +++++++ 2 files changed, 8 insertions(+)
CHANGELOG.md +1 -0
@@ -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
@@ -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