All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 2/3] x86/hyperv_clock: print sequence field of reference TSC page
@ 2022-01-24 16:17 Kaya, Metin
  0 siblings, 0 replies; only message in thread
From: Kaya, Metin @ 2022-01-24 16:17 UTC (permalink / raw)
  To: kvm

[-- Attachment #1: Type: text/plain, Size: 57 bytes --]

Having TscSequence in the log message for completeness.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-x86-hyperv_clock-print-sequence-field-of-reference-T.patch --]
[-- Type: text/x-patch; name="0002-x86-hyperv_clock-print-sequence-field-of-reference-T.patch", Size: 956 bytes --]

From c9f85d69716dd45c9f7662db4599f9cab2623fa3 Mon Sep 17 00:00:00 2001
From: Metin Kaya <metikaya@amazon.com>
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.

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

diff --git a/x86/hyperv_clock.c b/x86/hyperv_clock.c
index dcf101a..9c30fbe 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);
-- 
2.32.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-24 16:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 16:17 [kvm-unit-tests PATCH 2/3] x86/hyperv_clock: print sequence field of reference TSC page Kaya, Metin

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.