mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-21 13:15:25 +00:00
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>
This commit is contained in:
parent
21af003084
commit
b902cfece0
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user