All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] add new options to set smbios type 4 fields
@ 2020-03-18  6:48 Heyi Guo
  2020-03-18  6:48 ` [PATCH v4 1/2] hw/smbios: add options for type 4 max-speed and current-speed Heyi Guo
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Heyi Guo @ 2020-03-18  6:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Thomas Huth, Michael S. Tsirkin, Paolo Bonzini,
	Igor Mammedov, Heyi Guo, wanghaibin.wang,
	Philippe Mathieu-Daudé

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" <mst@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-23 12:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18  6:48 [PATCH v4 0/2] add new options to set smbios type 4 fields Heyi Guo
2020-03-18  6:48 ` [PATCH v4 1/2] hw/smbios: add options for type 4 max-speed and current-speed Heyi Guo
2020-03-19 11:46   ` Igor Mammedov
2020-03-18  6:48 ` [PATCH v4 2/2] tests/bios-tables-test: add smbios cpu speed test Heyi Guo
2020-03-19 13:30   ` Igor Mammedov
2020-03-23 12:20     ` Laszlo Ersek
2020-03-19 14:46 ` [PATCH v4 0/2] add new options to set smbios type 4 fields Igor Mammedov
2020-03-20  1:29   ` Heyi Guo
2020-03-20 11:51     ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.