summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGabriel L. Somlo2014-05-19 16:09:54 +0200
committerMichael S. Tsirkin2014-05-21 14:47:50 +0200
commit84351843eba330022e245a742899cf71fc817ec5 (patch)
tree18828a991bb2da82108bbc65e21f3de9f49d09d7 /include
parentSMBIOS: Fix endian-ness when populating multi-byte fields (diff)
downloadqemu-84351843eba330022e245a742899cf71fc817ec5.tar.gz
qemu-84351843eba330022e245a742899cf71fc817ec5.tar.xz
qemu-84351843eba330022e245a742899cf71fc817ec5.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/i386/smbios.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i386/smbios.h b/include/hw/i386/smbios.h
index 6d854b7f1e..5583f60405 100644
--- a/include/hw/i386/smbios.h
+++ b/include/hw/i386/smbios.h
@@ -64,7 +64,7 @@ struct smbios_type_0 {
uint16_t bios_starting_address_segment;
uint8_t bios_release_date_str;
uint8_t bios_rom_size;
- uint8_t bios_characteristics[8];
+ uint64_t bios_characteristics;
uint8_t bios_characteristics_extension_bytes[2];
uint8_t system_bios_major_release;
uint8_t system_bios_minor_release;