Lines Matching +full:migration +full:- +full:skey +full:- +full:parallel
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Storage Key migration tests
6 * - sequential: set storage keys on some pages, migrates the VM and then
8 * - parallel: start migration and set and check storage keys on some
9 * pages while migration is in process.
28 union skey expected_key;
29 union skey actual_key;
53 * XOR-ing that with the given seed and then multipling the result with two.
87 union skey expected_key, actual_key; in verify_test_pattern()
123 if (result->verify_failed) in report_verify_result()
124 report_fail("page skey mismatch: first page idx = %lu, addr = 0x%lx, " in report_verify_result()
126 result->page_mismatch_idx, result->page_mismatch_addr, in report_verify_result()
127 result->expected_key.val, result->actual_key.val); in report_verify_result()
155 * we left off and can do an additional verify round after migration finished. in set_skeys_thread()
168 report_prefix_push("parallel"); in test_skey_migration_parallel()
189 report_prefix_push("during migration"); in test_skey_migration_parallel()
196 * To be sure, make another verification round after the migration in test_skey_migration_parallel()
200 report_prefix_push("after migration"); in test_skey_migration_parallel()
202 result = verify_test_pattern(thread_iters - 1); in test_skey_migration_parallel()
212 report_info("Usage: migration-skey [--parallel|--sequential]"); in print_usage()
223 if (!strcmp("--parallel", argv[1])) in parse_args()
225 else if (!strcmp("--sequential", argv[1])) in parse_args()
233 report_prefix_push("migration-skey"); in main()