From: Brett Holman Date: Tue, 26 Mar 2024 19:38:50 +0000 (-0500) Subject: virsysinfo: Try reading DMI table X-Git-Tag: v10.3.0-rc1~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b902cfece0db71c3421b0bfe0e05d1dbe7890c31;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Kristina Hanicova Reviewed-by: Jim Fehlig --- diff --git a/src/util/virsysinfo.c b/src/util/virsysinfo.c index 4a03fc3246..0d9083c891 100644 --- a/src/util/virsysinfo.c +++ b/src/util/virsysinfo.c @@ -1249,6 +1249,8 @@ virSysinfoRead(void) (defined(__x86_64__) || \ defined(__i386__) || \ defined(__amd64__) || \ + defined(__riscv__) || \ + defined(__mips__) || \ defined(__loongarch__)) return virSysinfoReadDMI(); #else /* WIN32 || not supported arch */