diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2020-06-17 17:21:39 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-24 02:47:09 -0400 |
commit | 1b9d2ef25d1758d3f1a12da0e43517e8e5e2ac78 (patch) | |
tree | 37f3788460f8c21da557dc8407f0c481e88429a2 | |
parent | ca5efa6a3ed3b94776383eccfca3255f9745a8d7 (diff) | |
download | kvm-unit-tests-1b9d2ef25d1758d3f1a12da0e43517e8e5e2ac78.tar.gz |
x86: skip hyperv_clock test when host clocksource is not TSC
Hyper-V TSC page clocksource is TSC based so it requires host to use TSC
for clocksource. While TSC is more or less standard for x86 hardware
nowadays, when kvm-unit-tests are run in a VM the clocksource tends to be
different (e.g. kvm-clock).
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200617152139.402827-1-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | x86/unittests.cfg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/x86/unittests.cfg b/x86/unittests.cfg index 504e04e..3a79151 100644 --- a/x86/unittests.cfg +++ b/x86/unittests.cfg @@ -334,6 +334,7 @@ smp = 2 extra_params = -cpu kvm64,hv_time arch = x86_64 groups = hyperv +check = /sys/devices/system/clocksource/clocksource0/current_clocksource=tsc [intel_iommu] file = intel-iommu.flat |