[PATCH] virsysinfo: Try reading DMI table

brett.holman@canonical.com posted 1 patch 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20240318222517.94017-2-brett.holman@canonical.com
There is a newer version of this series
src/util/virsysinfo.c | 2 ++
1 file changed, 2 insertions(+)
[PATCH] virsysinfo: Try reading DMI table
Posted by brett.holman@canonical.com 1 month, 1 week ago
From: Brett Holman <brett.holman@canonical.com>

The SMBIOS specification[1] includes RISC-V and mips, and some systems have
SMBIOS info. Attempt to read dmidecode and fall back to old behavior if that
fails.

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

Signed-off-by: Brett Holman <brett.holman@canonical.com>
---
 src/util/virsysinfo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/virsysinfo.c b/src/util/virsysinfo.c
index 36a861c53f..d8d660d694 100644
--- a/src/util/virsysinfo.c
+++ b/src/util/virsysinfo.c
@@ -1248,6 +1248,8 @@ virSysinfoRead(void)
 #elif !defined(WIN32) && \
     (defined(__x86_64__) || \
      defined(__i386__) || \
+     defined(__mips__) || \
+     defined(__riscv__) || \
      defined(__amd64__))
     return virSysinfoReadDMI();
 #else /* WIN32 || not supported arch */
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org
Re: [PATCH] virsysinfo: Try reading DMI table
Posted by brett.holman@canonical.com 1 month, 1 week ago
My apologies for this duplicate, please direct reviews to this thread -> https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/G6GPDHYL7CT7MFRECAPL7ZDSXOWQUABG/
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org
Re: [PATCH] virsysinfo: Try reading DMI table
Posted by Daniel P. Berrangé 1 month, 1 week ago
On Tue, Mar 19, 2024 at 07:53:35PM -0000, brett.holman@canonical.com wrote:
> My apologies for this duplicate, please direct reviews to this thread -> https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/G6GPDHYL7CT7MFRECAPL7ZDSXOWQUABG/

No worries, it was my oversight to blindly approve everything in the
moderator queue, without checking if you had since subscribed to the
list and re-sent the patches.

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org