diff options
author | Gabriel L. Somlo <gsomlo@gmail.com> | 2014-05-19 10:09:55 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-05-21 15:47:50 +0300 |
commit | 0d73394ad93aa12755316b3a90b3193aeeb95f90 (patch) | |
tree | 49638615f5506b68dad6b1a923bf13e2a5d2f257 /include/hw | |
parent | 84351843eba330022e245a742899cf71fc817ec5 (diff) | |
download | qemu-0d73394ad93aa12755316b3a90b3193aeeb95f90.tar.gz qemu-0d73394ad93aa12755316b3a90b3193aeeb95f90.tar.bz2 qemu-0d73394ad93aa12755316b3a90b3193aeeb95f90.zip |
SMBIOS: Fix type 17 field sizes
Fields for configured_clock_speed and various voltage values
introduced in spec v2.7+ should be "word", i.e. 16 bits.
Reported-by: Laszlo Ersek <lersek@redhat.com>
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/hw')
-rw-r--r-- | include/hw/i386/smbios.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/hw/i386/smbios.h b/include/hw/i386/smbios.h index 5583f60405..a3f4d88bf0 100644 --- a/include/hw/i386/smbios.h +++ b/include/hw/i386/smbios.h @@ -182,10 +182,10 @@ struct smbios_type_17 { uint8_t part_number_str; uint8_t attributes; uint32_t extended_size; - uint32_t configured_clock_speed; - uint32_t minimum_voltage; - uint32_t maximum_voltage; - uint32_t configured_voltage; + uint16_t configured_clock_speed; + uint16_t minimum_voltage; + uint16_t maximum_voltage; + uint16_t configured_voltage; } QEMU_PACKED; /* SMBIOS type 19 - Memory Array Mapped Address (v2.7) */ |