hw/smbios: add options for type 4 max-speed and current-speed
authorYing Fang <fangying1@huawei.com>
Thu, 6 Aug 2020 03:56:33 +0000 (11:56 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 27 Aug 2020 12:29:13 +0000 (08:29 -0400)
commitc906e03909ec3eacbaa95367c1cb78a329a6c62f
treea1368bf7b022fdfbe8c11c353ab053283d0847ee
parenta4eef0711b2cf7a7476c3e2c202a414b68a1baa0
hw/smbios: add options for type 4 max-speed and current-speed

Common VM users sometimes care about CPU speed, so we add two new
options to allow VM vendors to present CPU speed to their users.
Normally these information can be fetched from host smbios.

Strictly speaking, the "max speed" and "current speed" in type 4
are not really for the max speed and current speed of processor, for
"max speed" identifies a capability of the system, and "current speed"
identifies the processor's speed at boot (see smbios spec), but some
applications do not tell the differences.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Ying Fang <fangying1@huawei.com>
Signed-off-by: Heyi Guo <guoheyi@huawei.com>
Message-Id: <20200806035634.376-2-fangying1@huawei.com>
hw/smbios/smbios.c
qemu-options.hx