]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsysinfo: Try reading DMI table
authorBrett Holman <brett.holman@canonical.com>
Tue, 26 Mar 2024 19:38:50 +0000 (14:38 -0500)
committerJim Fehlig <jfehlig@suse.com>
Tue, 2 Apr 2024 22:58:47 +0000 (16:58 -0600)
commitb902cfece0db71c3421b0bfe0e05d1dbe7890c31
tree3f89ea1556afdbd610ea64115a5220b8e42ace7e
parent21af0030843ca2fab75e06019b788fdef5687b15
virsysinfo: Try reading DMI table

Add DMI support for risc-v and mips. Attempt to read dmidecode and
fall back to old behavior if that fails.

The SMBIOS specification[1] officially supports both RISC-V and LoongArch.
Some mips-based Loongson-3 processors also have SMBIOS.

[1] https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.7.0.pdf

Signed-off-by: Brett Holman <brett.holman@canonical.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
src/util/virsysinfo.c