qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v4 0/2] add new options to set smbios type 4 fields


From: Heyi Guo
Subject: [PATCH v4 0/2] add new options to set smbios type 4 fields
Date: Wed, 18 Mar 2020 14:48:18 +0800

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.

v3 -> v4:
- Fix the default value when not specifying "-smbios type=4" option;
  it would be 0 instead of 2000 in previous versions
- Use uint64_t type to check value overflow
- Add test case to check smbios type 4 CPU speed

Cc: "Michael S. Tsirkin" <address@hidden>
Cc: Igor Mammedov <address@hidden>
Cc: Philippe Mathieu-Daudé <address@hidden>
Cc: Thomas Huth <address@hidden>
Cc: Laurent Vivier <address@hidden>
Cc: Paolo Bonzini <address@hidden>

Heyi Guo (2):
  hw/smbios: add options for type 4 max-speed and current-speed
  tests/bios-tables-test: add smbios cpu speed test

 hw/smbios/smbios.c             | 36 +++++++++++++++++++++++++----
 qemu-options.hx                |  3 ++-
 tests/qtest/bios-tables-test.c | 42 ++++++++++++++++++++++++++++++++++
 3 files changed, 76 insertions(+), 5 deletions(-)

-- 
2.19.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]