Skip to content

qemu: SMBIOS support

Alex Williamson kvm qemu-devel 2 versions – Applied

Status from this message: Applied all. Thanks, this turned out to be a really nice series.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyApplied
  2. v12 patches 11 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3qemu: Add prototype and make qemu_uuid_parse() non-staticsysemu.h vl.c+2 -11 reply
2/3qemu: Add support for SMBIOS command line otionsMakefile.target hw/pc.c hw/smbios.c +3 more+428 -10 replies
3/3qemu:bios: Load SMBIOS entries and files from qemubios/rombios32.c+236 -630 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] qemu: SMBIOS support

This is a new version based on everyone's feedback. I now support creating type 0 & 1 SMBIOS fields from the command line as well as loading binary blob entries. It should be pretty trivial to add support for modifying other generated tables from the command line.

Rather than moving the parsing code to vl.c, I made new smbios.[ch] files, which seems to clean things up nicely. I've implemented a collision detector, so you can't pass both a binary blob containing a type 1 entry and options to modify the entry. Useful error messages should be generated if this is attempted. I've also incorporated the -uuid option, so it's handled by the bios the same as any other modification to an smbios field. Let me know if there are any further suggestions. Thanks,

Alex

---

Alex Williamson (3):
qemu:bios: Load SMBIOS entries and files from qemu
qemu: Add support for SMBIOS command line otions
qemu: Add prototype and make qemu_uuid_parse() non-static

 Makefile.target  |    2 
 bios/rombios32.c |  299 +++++++++++++++++++++++++++++++++++++++++++------------
 hw/pc.c          |    9 +
 hw/smbios.c      |  224 +++++++++++++++++++++++++++++++++++++++++
 hw/smbios.h      |  162 +++++++++++++++++++++++++++++
 qemu-options.hx  |   21 +++
 sysemu.h         |    1 
 vl.c             |   13 ++
 8 files changed, 666 insertions(+), 65 deletions(-)
 create mode 100644 hw/smbios.c
 create mode 100644 hw/smbios.h