From: Heyi Guo <guoheyi@huawei.com>
To: <qemu-devel@nongnu.org>
Cc: "Laurent Vivier" <lvivier@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Igor Mammedov" <imammedo@redhat.com>,
"Heyi Guo" <guoheyi@huawei.com>,
wanghaibin.wang@huawei.com,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: [PATCH v4 0/2] add new options to set smbios type 4 fields
Date: Wed, 18 Mar 2020 14:48:18 +0800 [thread overview]
Message-ID: <20200318064820.19363-1-guoheyi@huawei.com> (raw)
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
next reply other threads:[~2020-03-18 6:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-18 6:48 Heyi Guo [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200318064820.19363-1-guoheyi@huawei.com \
--to=guoheyi@huawei.com \
--cc=imammedo@redhat.com \
--cc=lvivier@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
--cc=wanghaibin.wang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.