]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsysinfo: Parse OEM strings
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Jun 2020 08:15:38 +0000 (10:15 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Jun 2020 12:00:38 +0000 (14:00 +0200)
commitb44898dd318958ca68acd889aa400e2975b43277
treeece2fdfd14c9235db8103a1bf9572096fc429b0e
parent994e56ba4215e46088bce633845cb31cba3769c5
virsysinfo: Parse OEM strings

Setting OEM strings for a domain was introduced in
v4.1.0-rc1~315. However, any application that wanted to use them
(e.g. to point to an URL where a config file is stored) had to
'dmidecode -u --oem-string N' (where N is index of the string).
Well, we can expose them under our <sysinfo/> XML and if the
domain is running Libvirt inside it can be obtained using
virConnectGetSysinfo() API.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virsysinfo.c
tests/sysinfodata/x86sysinfo.data
tests/sysinfodata/x86sysinfo.expect
tests/sysinfotest.c