diff options
author | Sean Christopherson <seanjc@google.com> | 2025-02-01 04:38:25 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-02-12 21:45:55 +0300 |
commit | 39d61b46adfd784f601534a6d488697bf53f2633 (patch) | |
tree | 7b690ad38a6c4a06c1aa6dfe78d3278e17ba510d /tools/perf/scripts/python/stat-cpi.py | |
parent | 46aed4d4a7db828e0019d16c575e93cc318571db (diff) | |
download | linux-39d61b46adfd784f601534a6d488697bf53f2633.tar.xz |
KVM: x86: Remove per-vCPU "cache" of its reference pvclock
Remove the per-vCPU "cache" of the reference pvclock and instead cache
only the TSC shift+multiplier. All other fields in pvclock are fully
recomputed by kvm_guest_time_update(), i.e. aren't actually persisted.
In addition to shaving a few bytes, explicitly tracking the TSC shift/mul
fields makes it easier to see that those fields are tied to hw_tsc_khz
(they exist to avoid having to do expensive math in the common case).
And conversely, not tracking the other fields makes it easier to see that
things like the version number are pulled from the guest's copy, not from
KVM's reference.
Reviewed-by: Paul Durrant <paul@xen.org>
Link: https://lore.kernel.org/r/20250201013827.680235-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions