diff mbox series

[kvm-unit-tests,04/13] x86: hyperv_clock: print sequence field of reference TSC page

Message ID 20240306171823.761647-5-vkuznets@redhat.com (mailing list archive)
State New, archived
Headers show
Series x86: hyperv-v: Various unmerged patches | expand

Commit Message

Vitaly Kuznetsov March 6, 2024, 5:18 p.m. UTC
From: Metin Kaya <metikaya@amazon.com>

Having TscSequence in the log message for completeness.

Signed-off-by: Metin Kaya <metikaya@amazon.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
---
 x86/hyperv_clock.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/x86/hyperv_clock.c b/x86/hyperv_clock.c
index dcf101af6968..9c30fbebf249 100644
--- a/x86/hyperv_clock.c
+++ b/x86/hyperv_clock.c
@@ -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);