I discovered that after KVM_SET_CLOCK(0) TSC page value in the guest can go through the roof and apparently we have a signedness issue when the update is performed. Fix the issue and add a selftest. Vitaly Kuznetsov (2): KVM: x86: hyper-v: Forbid unsigned hv_clock->system_time to go negative after KVM_REQ_CLOCK_UPDATE selftests: kvm: Check that TSC page value is small after KVM_SET_CLOCK(0) arch/x86/kvm/x86.c | 10 +++++++++- tools/testing/selftests/kvm/x86_64/hyperv_clock.c | 13 +++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) -- 2.30.2