| /* SPDX-License-Identifier: GPL-2.0-only */ |
| * Migration-related functions |
| * Copyright IBM Corp. 2022 |
| * Author: Nico Boehr <nrb@linux.ibm.com> |
| * Initiate migration and wait for it to complete. |
| puts("Now migrate the VM, then press a key to continue...\n"); |
| report_info("Migration complete"); |
| * Like migrate() but suppress output and logs, useful for intensive |
| * migration stress testing without polluting logs. Test cases should |
| * provide relevant information about migration in failure reports. |
| puts("Now migrate the VM (quiet)\n"); |
| * Initiate migration and wait for it to complete. |
| * If this function is called more than once, it is a no-op. |
| * When the test has been started in migration mode, but the test case is |
| * skipped and no migration point is reached, this can be used to tell the |
| * harness not to mark it as a failure to migrate. |
| static bool did_migrate_skip; |
| puts("Skipped VM migration (quiet)\n"); |