selftests: kvm: Check that TSC page value is small after KVM_SET_CLOCK(0)
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 26 Mar 2021 15:55:51 +0000 (16:55 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Apr 2021 09:14:19 +0000 (05:14 -0400)
commit55626ca9c6909d077eca71bccbe15fef6e5ad917
treeb52364355ce6812cb99333e47f47d4411710b6c2
parent77fcbe823f002ad18426545351fa2fb94f8d5e61
selftests: kvm: Check that TSC page value is small after KVM_SET_CLOCK(0)

Add a test for the issue when KVM_SET_CLOCK(0) call could cause
TSC page value to go very big because of a signedness issue around
hv_clock->system_time.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20210326155551.17446-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/hyperv_clock.c