SMBIOS: Fix endian-ness when populating multi-byte fields
commitfb5be2e833669dd95be1950ea7b1da4cf7f9556c
authorGabriel L. Somlo <gsomlo@gmail.com>
Mon, 19 May 2014 14:09:53 +0000 (19 10:09 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 May 2014 12:47:50 +0000 (21 15:47 +0300)
tree745fc03bfd03813ace06c8e96db115291d86dec3
parent13cc2c3e867605122351c68f34af838bc75d8692
SMBIOS: Fix endian-ness when populating multi-byte fields

When i386 guests are emulated on big endian hosts, make sure
multi-byte fields are populated safely via cpu_to_le*().

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