[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 2/3] xl/libxl: Add ability to specify SMBIOS strings
- To: Jason Andryuk <jandryuk@xxxxxxxxx>
- From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Date: Wed, 15 Mar 2023 15:51:15 +0000
- Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
- Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Nick Rosbrook <rosbrookn@xxxxxxxxx>, "Juergen Gross" <jgross@xxxxxxxx>
- Delivery-date: Wed, 15 Mar 2023 15:51:37 +0000
- Ironport-data: A9a23:0Y97HaD8iHMXhhVW/+vjw5YqxClBgxIJ4kV8jS/XYbTApDIjhDIAx zdMUDjSb/eCYmOmctogaoS39UpT6MXWyIRhQQY4rX1jcSlH+JHPbTi7wuUcHAvJd5GeExg3h yk6QoOdRCzhZiaE/n9BCpC48T8nk/nOHuGmYAL9EngZbRd+Tys8gg5Ulec8g4p56fC0GArIs t7pyyHlEAbNNwVcbyRFu8pvlDs15K6p4GhB4wRkDRx2lAS2e0c9Xcp3yZ6ZdxMUcqEMdsamS uDKyq2O/2+x13/B3fv8z94X2mVTKlLjFVDmZkh+AsBOsTAbzsAG6Y4pNeJ0VKtio27hc+ada jl6ncfYpQ8BZsUgkQmGOvVSO3kW0aZuoNcrLZUj2CA6IoKvn3bEmp1T4E8K0YIw3ftcCmBV+ 78kFBtRbiin2vOIzJSbVbw57igjBJGD0II3v3hhyXfSDOo8QICFSKLPjTNa9G5u3IYUR6+YP pdHL2M1N3wsYDUWUrsTIJs4gOevgGi5azBCoUiZjaE2/3LS3Ep6172F3N/9I4TSHpkIxRvIz o7A12+mWzMBK+Sg9TOM/S7w3+7jnDzccqtHQdVU8dY12QbOlwT/EiY+V1K9reOol02WVNdWK khS8S0rxYAi+UruQtTjUhmQpH+fogVaS9dWC/c96gyG1uzT+QnxLncAZi5MbpohrsBebSYtz VWTmNTqAxRgtbSUTTSW8bL8hTG9Iy8ONkcZeDQJCwAC5rHLqZk+lBvVQv5/EaS+iZv+HjSY/ tyRhHFg3fNJ15dNjvjluwmd2FpAu6QlUCYS+y7cX3mrrT9FT9KlX6j1+GbXy9ZfedPxoka6g FAInM2X7eYrBJ6LlTCQTOhlIIxF98ppIxWH3wcxQsBJGyCFvif6INsOuG0WyFJBaJ5sRNP/X KPEVeq9Drd3NWDiU6J4apnZ5y8Cnfm5ToSNuhw5g7NzjnlNmO2vpn0Gia24hTqFfK0QfUYXa P+mnT6EVypyNEie5GPeqx0h+bEq3Dsi4mjYWIr2yR+quZLHOiHFGe5UaQLWNr9jhE9hnOky2 4c3Cid3408HDL2Wjtf/qOb/0mzm3VBkXMur+qS7h8aIIxZ8GXFJNsI9NYgJItQ/94wMz7egw 51IchMAoLYJrSGdeFrih7EKQO+HYKuTWlpiZ319ZAn4hyJ/CWtthY9GH6YKkXAc3LQL5ZZJo zMtJa1s3twnpuz7xgkg
- Ironport-hdrordr: A9a23:/kU/MK+pi9OY7076YzVuk+ABI+orL9Y04lQ7vn2ZKCYlD/Bw8v rEoB11737JYUkqKRcdcLy7VJVoAkmsjKKdmLNhRotKBTOWwldAT7sSkbcKoQeBJ8SWzIc0v5 uIFZIQNDSaNzVHZKjBjjVRbr4bsaG6GXST9IXjJwsEd3AMV0gZ1XYbNu9tKDwTeODuP+tdKK ah
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Mon, Mar 06, 2023 at 03:40:23PM -0500, Jason Andryuk wrote:
> hvm_xs_strings.h specifies xenstore entries which can be used to set or
> override smbios strings. hvmloader has support for reading them, but
> xl/libxl support is not wired up.
>
> Allow specifying the strings with the new xl.cfg option:
> smbios=["bios_vendor=Xen Project","system_version=1.0"]
>
> In terms of strings, the SMBIOS specification 3.5 says:
> https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.5.0.pdf
> """
> Strings must be encoded as UTF-8 with no byte order mark (BOM). For
> compatibility with older SMBIOS parsers, US-ASCII characters should be
> used. NOTE There is no limit on the length of each individual text
> string. However, the length of the entire structure table (including all
> strings) must be reported in the Structure Table Length field of the
> 32-bit Structure Table Entry Point (see 5.2.1) and/or the Structure
> Table Maximum Size field of the 64-bit Structure Table Entry Point (see
> 5.2.2).
> """
>
> The strings aren't checked for utf-8 or length. hvmloader has a sanity
> check on the overall length.
>
> The libxl_smbios_type enum starts at 1 since otherwise the 0th key is
> not printed in the json output.
>
> Signed-off-by: Jason Andryuk <jandryuk@xxxxxxxxx>
Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Thanks,
--
Anthony PERARD
|