diff options
| author | David Woodhouse <dwmw@amazon.co.uk> | 2026-08-26 14:32:58 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-11 11:46:19 -0700 |
| commit | d4bbf2a8eb82ec8dfcdace0c56d024d3e83c21ad (patch) | |
| tree | 251b35060bd5b39a447d5a87c294f60292e41629 /tools/perf/scripts/python/bin | |
| parent | 2918af628d0dae8476f89abeb76fe9fe3fd029cb (diff) | |
KVM: x86: Remove implicit rdtsc() from kvm_compute_l1_tsc_offset()
Let the callers pass the host TSC value in as an explicit parameter.
This leaves some fairly obviously stupid code, which is using this
function to compare the guest TSC at some *other* time, with the
newly-minted TSC value from rdtsc(). Unless it's being used to measure
*elapsed* time, that isn't very sensible.
In this case, "obviously stupid" is an improvement over being
non-obviously so.
No functional change intended.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Link: https://patch.msgid.link/20260826213303.914988-19-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
