mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
fb5be2e833
commit
84351843eb
3 changed files with 14 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue