Home
last modified time | relevance | path

Searched refs:test_args (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/kvm/
A Darch_timer.c31 struct test_args test_args = { variable
121 usleep(msecs_to_usecs(test_args.migration_freq_ms)); in test_vcpu_migration()
123 for (n_done = 0, i = 0; i < test_args.nr_vcpus; i++) { in test_vcpu_migration()
135 } while (test_args.nr_vcpus != n_done); in test_vcpu_migration()
147 vcpu_done_map = bitmap_zalloc(test_args.nr_vcpus); in test_run()
157 if (test_args.migration_freq_ms) { in test_run()
166 for (i = 0; i < test_args.nr_vcpus; i++) in test_run()
169 if (test_args.migration_freq_ms) in test_run()
202 if (test_args.nr_vcpus > KVM_MAX_VCPUS) { in parse_args()
221 test_args.counter_offset = strtol(optarg, NULL, 0); in parse_args()
[all …]
A Dkvm_page_table_test.c47 struct test_args { struct
67 static struct test_args test_args; argument
90 struct test_args *p = &test_args; in guest_code()
256 guest_code, test_args.vcpus); in pre_init_before_test()
270 test_args.vm = vm; in pre_init_before_test()
271 test_args.guest_test_virt_mem = guest_test_virt_mem; in pre_init_before_test()
272 test_args.host_page_size = host_page_size; in pre_init_before_test()
274 test_args.large_page_size = large_page_size; in pre_init_before_test()
277 test_args.src_type = src_type; in pre_init_before_test()
290 sync_global_to_guest(vm, test_args); in pre_init_before_test()
[all …]
A Dmemslot_perf_test.c890 struct test_args { struct
898 static void help(char *name, struct test_args *targs) in help() argument
961 struct test_args *targs) in parse_args()
1047 const struct test_args *targs, in test_loop()
1100 struct test_args targs = { in main()
/tools/testing/selftests/kvm/arm64/
A Darch_timer.c31 timer_set_next_cval_ms(VIRTUAL, test_args.timer_period_ms); in guest_configure_timer_action()
36 timer_set_next_tval_ms(VIRTUAL, test_args.timer_period_ms); in guest_configure_timer_action()
41 timer_set_next_cval_ms(PHYSICAL, test_args.timer_period_ms); in guest_configure_timer_action()
46 timer_set_next_tval_ms(PHYSICAL, test_args.timer_period_ms); in guest_configure_timer_action()
129 udelay(msecs_to_usecs(test_args.timer_period_ms) + in guest_run_stage()
130 test_args.timer_err_margin_us); in guest_run_stage()
148 gic_init(GIC_V3, test_args.nr_vcpus); in guest_code()
185 int nr_vcpus = test_args.nr_vcpus; in test_vm_create()
192 if (!test_args.reserved) { in test_vm_create()
195 .counter_offset = test_args.counter_offset, in test_vm_create()
[all …]
A Darch_timer_edge_cases.c52 struct test_args { struct
67 struct test_args test_args = { argument
991 test_args.test_physical = true; in parse_args()
992 test_args.test_virtual = true; in parse_args()
995 test_args.iterations = in parse_args()
999 test_args.long_wait_ms = in parse_args()
1003 test_args.test_physical = true; in parse_args()
1004 test_args.test_virtual = false; in parse_args()
1007 test_args.test_virtual = true; in parse_args()
1051 if (test_args.test_virtual) { in main()
[all …]
A Dvgic_irq.c26 struct test_args { struct
468 static void guest_code(struct test_args *args) in guest_code()
510 struct test_args *test_args, bool expect_failure) in kvm_irq_line_check() argument
650 struct test_args *test_args) in run_guest_cmd() argument
667 kvm_irq_line_check(vm, i, 1, test_args, in run_guest_cmd()
670 kvm_irq_line_check(vm, i, 0, test_args, in run_guest_cmd()
675 kvm_irq_line_check(vm, i, level, test_args, in run_guest_cmd()
680 kvm_irq_line_check(vm, i, 1, test_args, in run_guest_cmd()
690 test_args->kvm_max_routes, in run_guest_cmd()
718 static void print_args(struct test_args *args) in print_args()
[all …]
/tools/testing/selftests/kvm/riscv/
A Darch_timer.c48 for (config_iter = 0; config_iter < test_args.nr_iter; config_iter++) { in guest_run()
50 timer_set_next_cmp_ms(test_args.timer_period_ms); in guest_run()
55 udelay(msecs_to_usecs(test_args.timer_period_ms) + in guest_run()
56 test_args.timer_err_margin_us); in guest_run()
83 int nr_vcpus = test_args.nr_vcpus; in test_vm_create()
101 sync_global_to_guest(vm, test_args); in test_vm_create()
A Dsbi_pmu_test.c43 struct test_args { struct
48 static struct test_args targs; argument
/tools/testing/selftests/kvm/include/
A Dtimer_test.h20 struct test_args { struct
38 extern struct test_args test_args; argument

Completed in 50 milliseconds