summary refs log tree commit diff stats
path: root/hw/core/qdev-clock.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2020-09-23 14:38:02 +0100
committerMichael S. Tsirkin <mst@redhat.com>2020-09-29 02:15:24 -0400
commitbb99f4772f54017490e3356ecbb3df25c5d4537f (patch)
treea1076c271360bc0cc676c0602fbb0b1a50d4f21b /hw/core/qdev-clock.c
parent6e2e2e8a422040358effc9eb8c840875cdb351bc (diff)
downloadfocaccia-qemu-bb99f4772f54017490e3356ecbb3df25c5d4537f.tar.gz
focaccia-qemu-bb99f4772f54017490e3356ecbb3df25c5d4537f.zip
hw/smbios: support loading OEM strings values from a file
Some applications want to pass quite large values for the OEM strings
entries. Rather than having huge strings on the command line, it would
be better to load them from a file, as supported with -fw_cfg.

This introduces the "path" parameter allowing for:

  $ echo -n "thisthing" > mydata.txt
  $ qemu-system-x86_64 \
    -smbios type=11,value=something \
    -smbios type=11,path=mydata.txt \
    -smbios type=11,value=somemore \
    ...other args...

Now in the guest

$ dmidecode -t 11
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.

Handle 0x0E00, DMI type 11, 5 bytes
OEM Strings
	String 1: something
	String 2: thisthing
	String 3: somemore

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200923133804.2089190-2-berrange@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/core/qdev-clock.c')
0 files changed, 0 insertions, 0 deletions