summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-rlock-softirq.h
diff options
context:
space:
mode:
authorZelin Deng <zelin.deng@linux.alibaba.com>2021-04-28 10:22:01 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-22 11:47:56 +0200
commitc086bf77be04888157e7a94ba7d43dadffe2ca55 (patch)
treec359d908f9d6602a998b4e647fb818c32bca3457 /lib/locking-selftest-rlock-softirq.h
parente726fa6971f145a23830ded7ce1f17086a0cf82e (diff)
downloadlinux-stable-c086bf77be04888157e7a94ba7d43dadffe2ca55.tar.gz
linux-stable-c086bf77be04888157e7a94ba7d43dadffe2ca55.tar.bz2
linux-stable-c086bf77be04888157e7a94ba7d43dadffe2ca55.zip
KVM: x86: Update vCPU's hv_clock before back to guest when tsc_offset is adjusted
commit d9130a2dfdd4b21736c91b818f87dbc0ccd1e757 upstream. 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: stable@vger.kernel.org Signed-off-by: Zelin Deng <zelin.deng@linux.alibaba.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1619576521-81399-2-git-send-email-zelin.deng@linux.alibaba.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/locking-selftest-rlock-softirq.h')
0 files changed, 0 insertions, 0 deletions