]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5004d00b2f98381dfb392087f022178d230f4572
treeb52364355ce6812cb99333e47f47d4411710b6c2
parenta189dacd46066fcbbad6b059c53bef6892f94043
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