aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorZelin Deng <[email protected]>2021-04-28 10:22:01 +0800
committerPaolo Bonzini <[email protected]>2021-09-06 07:07:03 -0400
commitd9130a2dfdd4b21736c91b818f87dbc0ccd1e757 (patch)
treeccefffafbd89e8eab9ee525e9b12fef527258da1 /tools/perf/util/trace-event-scripting.c
parent4ac214574d2d83b7ef20c603d75f1937c912bfd6 (diff)
KVM: x86: Update vCPU's hv_clock before back to guest when tsc_offset is adjusted
When MSR_IA32_TSC_ADJUST is written by guest due to TSC ADJUST feature especially there's a big tsc warp (like a new vCPU is hot-added into VM which has been up for a long time), tsc_offset is added by a large value then go back to guest. This causes system time jump as tsc_timestamp is not adjusted in the meantime and pvclock monotonic character. To fix this, just notify kvm to update vCPU's guest time before back to guest. Cc: [email protected] Signed-off-by: Zelin Deng <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions