Lines Matching refs:test_args
45 struct test_args { struct
52 static struct test_args test_args = { argument
93 timer_set_next_cval_ms(VIRTUAL, test_args.timer_period_ms); in guest_configure_timer_action()
98 timer_set_next_tval_ms(VIRTUAL, test_args.timer_period_ms); in guest_configure_timer_action()
103 timer_set_next_cval_ms(PHYSICAL, test_args.timer_period_ms); in guest_configure_timer_action()
108 timer_set_next_tval_ms(PHYSICAL, test_args.timer_period_ms); in guest_configure_timer_action()
174 for (config_iter = 0; config_iter < test_args.nr_iter; config_iter++) { in guest_run_stage()
179 udelay(msecs_to_usecs(test_args.timer_period_ms) + in guest_run_stage()
195 gic_init(GIC_V3, test_args.nr_vcpus, in guest_code()
294 usleep(msecs_to_usecs(test_args.migration_freq_ms)); in test_vcpu_migration()
296 for (n_done = 0, i = 0; i < test_args.nr_vcpus; i++) { in test_vcpu_migration()
308 } while (test_args.nr_vcpus != n_done); in test_vcpu_migration()
320 vcpu_done_map = bitmap_zalloc(test_args.nr_vcpus); in test_run()
323 for (i = 0; i < (unsigned long)test_args.nr_vcpus; i++) { in test_run()
330 if (test_args.migration_freq_ms) { in test_run()
339 for (i = 0; i < test_args.nr_vcpus; i++) in test_run()
342 if (test_args.migration_freq_ms) in test_run()
368 int nr_vcpus = test_args.nr_vcpus; in test_vm_create()
384 sync_global_to_guest(vm, test_args); in test_vm_create()
417 test_args.nr_vcpus = atoi(optarg); in parse_args()
418 if (test_args.nr_vcpus <= 0) { in parse_args()
421 } else if (test_args.nr_vcpus > KVM_MAX_VCPUS) { in parse_args()
428 test_args.nr_iter = atoi(optarg); in parse_args()
429 if (test_args.nr_iter <= 0) { in parse_args()
435 test_args.timer_period_ms = atoi(optarg); in parse_args()
436 if (test_args.timer_period_ms <= 0) { in parse_args()
442 test_args.migration_freq_ms = atoi(optarg); in parse_args()
443 if (test_args.migration_freq_ms < 0) { in parse_args()
471 __TEST_REQUIRE(!test_args.migration_freq_ms || get_nprocs() >= 2, in main()