summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw@amazon.co.uk>2026-08-26 14:32:50 -0700
committerSean Christopherson <seanjc@google.com>2026-09-11 11:46:18 -0700
commit25f75fb43fd53138c248869334fdff4555a7a1e4 (patch)
tree5f9f4bed3574ff54f9de9961580fbfa1cc4484d6 /tools/perf/scripts/python
parent8e7e24b88e26be5214a22995bb585065f4065c25 (diff)
KVM: x86: Fall back to non-master-clock if clockread fails in get_kvmclock()
When computing kvmclock and it's currently in master-clock mode, fall back to the non-master-clock path if the clock read fails, e.g. if the kernel's clocksource is transitioning away from TSC but ka->use_master_clock hasn't been updated yet. The rdtsc() fallback was added (well, kept) in commit c68dc1b577ea ("KVM: x86: Report host tsc and realtime values in KVM_GET_CLOCK") purely to avoid uninitialized variables and compilation problems on 32-bit kernels (already addressed). In hindsight, keeping the rdtsc() was a hack and a mistake. Link: https://lore.kernel.org/all/CAOQ_QsgVqS_PuJo8F10Gg5Xw+tKt+5gDx+kJf1j3CiPO4MAOqg@mail.gmail.com Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> [sean: isolate from refactoring changes, write changelog] Link: https://patch.msgid.link/20260826213303.914988-11-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions