aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/system_counter_offset_test.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-03-02 19:49:16 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-11 11:46:22 -0400
commit9367504f77ebb47d09847993aae01f8a38d5b4f6 (patch)
tree509e1fb34f0d428bd155d5a214950bf9d3a20e96 /tools/testing/selftests/kvm/system_counter_offset_test.c
parent279eacbefad5d163a20f8fcde2fd9362bc24f7c7 (diff)
KVM: selftests: Rename KVM_HAS_DEVICE_ATTR helpers for consistency
Rename kvm_device_check_attr() and its variants to kvm_has_device_attr() to be consistent with the ioctl names and with other helpers in the KVM selftests framework. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/system_counter_offset_test.c')
-rw-r--r--tools/testing/selftests/kvm/system_counter_offset_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/system_counter_offset_test.c b/tools/testing/selftests/kvm/system_counter_offset_test.c
index b337bbbfa41f..2b10c53abf4f 100644
--- a/tools/testing/selftests/kvm/system_counter_offset_test.c
+++ b/tools/testing/selftests/kvm/system_counter_offset_test.c
@@ -30,7 +30,7 @@ static struct test_case test_cases[] = {
static void check_preconditions(struct kvm_vm *vm)
{
- if (!_vcpu_has_device_attr(vm, VCPU_ID, KVM_VCPU_TSC_CTRL, KVM_VCPU_TSC_OFFSET))
+ if (!__vcpu_has_device_attr(vm, VCPU_ID, KVM_VCPU_TSC_CTRL, KVM_VCPU_TSC_OFFSET))
return;
print_skip("KVM_VCPU_TSC_OFFSET not supported; skipping test");