Skip to contentSkip to conversation

x86/hyperv_clock: print sequence field of reference TSC page

PATCH New Kaya, Metin 1 participant 1 message Jan 24, 2022 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 x86/hyperv_clock: print sequence field of reference TSC page

Having TscSequence in the log message for completeness.

From c9f85d69716dd45c9f7662db4599f9cab2623fa3 Mon Sep 17 00:00:00 2001
From: Metin Kaya <[email protected]>
Date: Mon, 24 Jan 2022 10:26:58 +0000
Subject: [PATCH 2/3] x86/hyperv_clock: print sequence field of reference TSC
page

Having TscSequence in the log message for completeness.

---
 x86/hyperv_clock.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
x86/hyperv_clock.c +2 -1
index dcf101a..9c30fbe 100644
@@ -181,7 +181,8 @@ int main(int ac, char **av)
 		exit(1);
 	}
 
-	printf("scale: %" PRIx64" offset: %" PRId64"\n", shadow.tsc_scale, shadow.tsc_offset);
+	printf("sequence: %u. scale: %" PRIx64" offset: %" PRId64"\n",
+	       shadow.tsc_sequence, shadow.tsc_scale, shadow.tsc_offset);
 	ref1 = rdmsr(HV_X64_MSR_TIME_REF_COUNT);
 	tsc1 = rdtsc();
 	t1 = hvclock_tsc_to_ticks(&shadow, tsc1);
Signature · 1 line
2.32.0