@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;