]> git.ipfire.org Git - thirdparty/qemu.git/commit - qemu-options.hx
SMBIOS: Update Type 0 struct generator for machines >= 2.1
authorGabriel L. Somlo <gsomlo@gmail.com>
Mon, 19 May 2014 14:09:54 +0000 (10:09 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 May 2014 12:47:50 +0000 (15:47 +0300)
commit84351843eba330022e245a742899cf71fc817ec5
tree18828a991bb2da82108bbc65e21f3de9f49d09d7
parentfb5be2e833669dd95be1950ea7b1da4cf7f9556c
SMBIOS: Update Type 0 struct generator for machines >= 2.1

Update how type 0 (bios info) structures are generated, as follows:

  - convert bios_characteristics field to uin64_t (instead of
    uint8_t[8]), as described in the current smbios spec (v2.8)

  - enable "virtual machine" bit in bios_characteristics_extension_bits

  - add command line option to enable "uefi supported" bit in
    bios_characteristics_extension_bits

These updates should make this optional structure more useful when
used with edk2/ovmf. Only pc machines >= 2.1 are affected, and only
when a type 0 structure is explicitly specified on the command line.

Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/smbios.c
include/hw/i386/smbios.h
qemu-options.hx