Ricardo Koller <ricarkol@xxxxxxxxxx> writes:
+void perf_test_set_random_access(struct kvm_vm *vm, bool random_access) +{ + perf_test_args.random_access = random_access; + sync_global_to_guest(vm, perf_test_args); +}
This can be merged onto the sync_global_to_guest() done for the seed.
That seems like a micro optimization. I'd prefer every perf_test_set* function have consistent behavior. If needed, sync_global_to_guest should work on the individual field.