OSDN Git Service

hw/i386/pc: Default to use SMBIOS 3.0 for newer machine models
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Wed, 7 Jun 2023 20:57:16 +0000 (15:57 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 26 Jun 2023 13:50:00 +0000 (09:50 -0400)
commitbf376f3020dfd7bcb2c4158b4ffa85c04d44f56d
tree26482a41bdbcfa10009e251a8535c7612281a172
parent42b1b9d7db48e72b10760869de20070b4afb6c2c
hw/i386/pc: Default to use SMBIOS 3.0 for newer machine models

Currently, pc-q35 and pc-i44fx machine models are default to use SMBIOS 2.8
(32-bit entry point). Since SMBIOS 3.0 (64-bit entry point) is now fully
supported since QEMU 7.0, default to use SMBIOS 3.0 for newer machine
models. This is necessary to avoid the following message when launching
a VM with large number of vcpus.

   "SMBIOS 2.1 table length 66822 exceeds 65535"

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Message-Id: <20230607205717.737749-2-suravee.suthikulpanit@amd.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/i386/pc.h
tests/qtest/bios-tables-test-allowed-diff.h