linux-stable/tools/testing/selftests/kvm/lib/x86_64
Vitaly Kuznetsov 09951bf2cb KVM: selftests: Run clocksource dependent tests with hyperv_clocksource_tsc_page too
KVM's 'gtod_is_based_on_tsc()' recognizes two clocksources: 'tsc' and
'hyperv_clocksource_tsc_page' and enables kvmclock in 'masterclock'
mode when either is in use. Transform 'sys_clocksource_is_tsc()' into
'sys_clocksource_is_based_on_tsc()' to support the later. This affects
two tests: kvm_clock_test and vmx_nested_tsc_scaling_test, both seem
to work well when system clocksource is 'hyperv_clocksource_tsc_page'.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20240109141121.1619463-4-vkuznets@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2024-02-01 08:58:14 -08:00
..
apic.c KVM: selftests: Remove obsolete and incorrect test case metadata 2023-10-04 12:53:05 -07:00
handlers.S
hyperv.c KVM: selftests: Allocate Hyper-V partition assist page 2022-11-21 06:41:59 -05:00
memstress.c KVM: selftests: Assert in prepare_eptp() that nEPT is supported 2022-11-16 16:59:07 -08:00
processor.c KVM: selftests: Run clocksource dependent tests with hyperv_clocksource_tsc_page too 2024-02-01 08:58:14 -08:00
svm.c Revert "KVM: selftests: Fix nested SVM tests when built with clang" 2022-09-30 06:39:34 -04:00
ucall.c KVM: selftests: Add arch ucall.h and inline simple arch hooks 2023-08-02 14:42:52 -07:00
vmx.c KVM: selftests: x86_64: Remove redundant newlines 2024-01-30 12:31:56 -08:00