Lines Matching defs:test
33 "KVM_VCPU_TSC_OFFSET not supported; skipping test");
36 static void setup_system_counter(struct kvm_vcpu *vcpu, struct test_case *test)
39 &test->tsc_offset);
42 static uint64_t guest_read_system_counter(struct test_case *test)
47 static uint64_t host_read_guest_system_counter(struct test_case *test)
49 return rdtsc() + test->tsc_offset;
54 #error test not implemented for this architecture!
66 struct test_case *test = &test_cases[i];
68 GUEST_SYNC_CLOCK(i, guest_read_system_counter(test));
96 struct test_case *test = &test_cases[i];
98 setup_system_counter(vcpu, test);
99 start = host_read_guest_system_counter(test);
101 end = host_read_guest_system_counter(test);