target/riscv: SMBIOS support for RISC-V virt machine
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 23 Jan 2024 18:42:28 +0000 (19:42 +0100)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 9 Feb 2024 10:43:14 +0000 (20:43 +1000)
commitecf286478475d11ae4cdef7e52d9c8e1672f2868
tree415e54275d542d8b4810739a94472bfc34b0c3a6
parent6f3b727bcc867688034ef1489a58e958142973b1
target/riscv: SMBIOS support for RISC-V virt machine

Generate SMBIOS tables for the RISC-V mach-virt.
Add CONFIG_SMBIOS=y to the RISC-V default config.
Set the default processor family in the type 4 table.

The implementation is based on the corresponding ARM and Loongson code.

With the patch the following firmware tables are provided:

    etc/smbios/smbios-anchor
    etc/smbios/smbios-tables

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Message-ID: <20240123184229.10415-4-heinrich.schuchardt@canonical.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/Kconfig
hw/riscv/virt.c