All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: kvm@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>
Cc: Metin Kaya <metikaya@amazon.com>
Subject: [PATCH kvm-unit-tests 02/13] x86: hyperv: improve naming of stimer functions
Date: Wed,  6 Mar 2024 18:18:12 +0100	[thread overview]
Message-ID: <20240306171823.761647-3-vkuznets@redhat.com> (raw)
In-Reply-To: <20240306171823.761647-1-vkuznets@redhat.com>

From: Metin Kaya <metikaya@amazon.com>

- synic_supported() is renamed to hv_synic_supported().
- stimer_supported() is renamed to hv_stimer_supported().

Signed-off-by: Metin Kaya <metikaya@amazon.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.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 bc165c344a11..3e1723ee9609 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 cf043664b329..2c6841553ee4 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 f7c679160bdf..2344eaf56f11 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 9d61d8362ebd..00655db10131 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.44.0


  parent reply	other threads:[~2024-03-06 17:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-06 17:18 [PATCH kvm-unit-tests 00/13] x86: hyperv-v: Various unmerged patches Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 01/13] x86: hyperv: Use correct macro in checking SynIC timer support Vitaly Kuznetsov
2024-03-06 17:18 ` Vitaly Kuznetsov [this message]
2024-03-06 17:18 ` [PATCH kvm-unit-tests 03/13] x86: hyperv_clock: handle non-consecutive APIC IDs Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 04/13] x86: hyperv_clock: print sequence field of reference TSC page Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 05/13] x86: hyper-v: Use '-cpu host,hv_passhtrough' for Hyper-V tests Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 06/13] x86: hyper-v: Use report_skip() in hyperv_stimer when pre-requisites are not met Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 07/13] x86: hyper-v: Use 'goto' instead of putting the whole test in an 'if' branch in hyperv_synic Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 08/13] x86: hyper-v: Unify hyperv_clock with other Hyper-V tests Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 09/13] x86: hyperv_stimer: keep SINT number parameter in 'struct stimer' Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 10/13] x86: hyperv_stimer: define union hv_stimer_config Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 11/13] x86: hyperv_stimer: don't require hyperv-testdev Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 12/13] x86: hyperv_stimer: add direct mode tests Vitaly Kuznetsov
2024-03-06 17:18 ` [PATCH kvm-unit-tests 13/13] x86: hyperv-v: Rewrite flaky hv_clock_test() Vitaly Kuznetsov

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=20240306171823.761647-3-vkuznets@redhat.com \
    --to=vkuznets@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=metikaya@amazon.com \
    --cc=pbonzini@redhat.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.