<div dir="ltr"><div><div> Hi,<br><br>I am trying to get the TSC_OFFSET of my guest Qemu machine, <br>Some of the pre-requisites mentioned involve having a Stable TSC (i.e. TSC should not move backawards)<br><br>So when I enable the write_tsc events in /sys/kernel/debug/tracing/.../kvm_write_tsc_offset I get the following trace:<br><br><b> qemu-system-x86-6668  [003] d... 24541634690432: kvm_write_tsc_offset: vcpu=0 prev=18446721743031245116 next=18446719532074865476</b></div><div> qemu-system-x86-6668  [003] d... 24541659629082: kvm_write_tsc_offset: vcpu=0 prev=18446719532074865476 next=18446719532074865476</div><div><b> qemu-system-x86-6668  [001] d... 33935995282794: kvm_write_tsc_offset: vcpu=0 prev=18446719532074865476 next=18446710137714276900</b></div><div> qemu-system-x86-6668  [000] d... 33936022496954: kvm_write_tsc_offset: vcpu=0 prev=18446710137714276900 next=18446710137714276900<br><br>Here, the prev value is more than the next value, I think this means that my TSC is growing backwards.</div></div><div><br></div><div>Is the direction of TSC a configurable option ?<br>How to ensure the TSC grows forwards.<br><br>Also what does Synchronized TSC mean, how to know if the TSC is synchronized and how to fix it if it not synchronized.</div><div><br></div><div>Thanks</div><div><br></div></div>