From: "Kaya, Metin" <metikaya@amazon.com>
To: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: [kvm-unit-tests PATCH 1/1] x86/hyperv: improve naming of stimer functions
Date: Tue, 4 Jan 2022 17:06:41 +0000 [thread overview]
Message-ID: <1641316001743.98051@amazon.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 114 bytes --]
- synic_supported() is renamed to hv_synic_supported().
- stimer_supported() is renamed to hv_stimer_supported().
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-x86-hyperv-improve-naming-of-stimer-functions.patch --]
[-- Type: text/x-patch; name="0001-x86-hyperv-improve-naming-of-stimer-functions.patch", Size: 2387 bytes --]
From 9d5ff263f25444d207974135daa6084300bcf286 Mon Sep 17 00:00:00 2001
From: Metin Kaya <metikaya@amazon.com>
Date: Tue, 4 Jan 2022 17:02:04 +0000
Subject: [kvm-unit-tests PATCH 3/3] x86/hyperv: improve naming of stimer
functions
- synic_supported() is renamed to hv_synic_supported().
- stimer_supported() is renamed to hv_stimer_supported().
Signed-off-by: Metin Kaya <metikaya@amazon.com>
---
x86/hyperv.h | 4 ++--
x86/hyperv_connections.c | 2 +-
x86/hyperv_stimer.c | 4 ++--
x86/hyperv_synic.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/x86/hyperv.h b/x86/hyperv.h
index bc165c3..3e1723e 100644
--- a/x86/hyperv.h
+++ b/x86/hyperv.h
@@ -183,12 +183,12 @@ struct hv_input_post_message {
u64 payload[HV_MESSAGE_PAYLOAD_QWORD_COUNT];
};
-static inline bool synic_supported(void)
+static inline bool hv_synic_supported(void)
{
return cpuid(HYPERV_CPUID_FEATURES).a & HV_X64_MSR_SYNIC_AVAILABLE;
}
-static inline bool stimer_supported(void)
+static inline bool hv_stimer_supported(void)
{
return cpuid(HYPERV_CPUID_FEATURES).a & HV_X64_MSR_SYNTIMER_AVAILABLE;
}
diff --git a/x86/hyperv_connections.c b/x86/hyperv_connections.c
index 6e8ac32..049fd78 100644
--- a/x86/hyperv_connections.c
+++ b/x86/hyperv_connections.c
@@ -266,7 +266,7 @@ int main(int ac, char **av)
{
int ncpus, ncpus_ok, i;
- if (!synic_supported()) {
+ if (!hv_synic_supported()) {
report_skip("Hyper-V SynIC is not supported");
goto summary;
}
diff --git a/x86/hyperv_stimer.c b/x86/hyperv_stimer.c
index 7b7c985..baa313f 100644
--- a/x86/hyperv_stimer.c
+++ b/x86/hyperv_stimer.c
@@ -352,12 +352,12 @@ static void stimer_test_all(void)
int main(int ac, char **av)
{
- if (!synic_supported()) {
+ if (!hv_synic_supported()) {
report_pass("Hyper-V SynIC is not supported");
goto done;
}
- if (!stimer_supported()) {
+ if (!hv_stimer_supported()) {
report_pass("Hyper-V SynIC timers are not supported");
goto done;
}
diff --git a/x86/hyperv_synic.c b/x86/hyperv_synic.c
index 5ca593c..dc17978 100644
--- a/x86/hyperv_synic.c
+++ b/x86/hyperv_synic.c
@@ -142,7 +142,7 @@ static void synic_test_cleanup(void *ctx)
int main(int ac, char **av)
{
- if (synic_supported()) {
+ if (hv_synic_supported()) {
int ncpus, i;
bool ok;
--
2.32.0
reply other threads:[~2022-01-04 17:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1641316001743.98051@amazon.com \
--to=metikaya@amazon.com \
--cc=kvm@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).