Re: [PATCH v10 21/21] KVM: x86: Use kernel timekeeping snapshot to get walltime+TSC
From: Sean Christopherson
Date: Tue Sep 01 2026 - 15:17:25 EST
On Wed, Aug 26, 2026, Sean Christopherson wrote:
> Replace the KVM-private vgettsc()+/do_do_realtime() timekeeping
> reimplementation with calls to the recently crafted, generic
> ktime_get_snapshot_id() interface. As noted previously, the snapshot
> provides both the system time and the raw_cycles (TSC), atomically paired
> using a sequence counter.
>
> With great pleasure, delete the now unused read_tsc() and vgettsc()
>
> Signed-off-by: David Woodhouse <dwmw@xxxxxxxxxxxx>
> [sean: separate from other conversions, express joy at vgettsc()'s demise]
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Note to self, this needs to be fixed up so that David is the Author. I'll check
the other patches too, I suspect I forgot to specify --author when splitting the
original patch into 3.