Lines Matching +full:qemu +full:- +full:setup +full:-
1 #include "qemu/osdep.h"
7 /*** Test Setup & Teardown ***/
10 * Launch QEMU with the given command line,
22 qs->qts = qtest_init(cmdline); in qtest_vboot()
23 qs->ops = ops; in qtest_vboot()
25 ops->alloc_init(&qs->alloc, qs->qts, ALLOC_NO_FLAGS); in qtest_vboot()
26 qs->pcibus = ops->qpci_new(qs->qts, &qs->alloc); in qtest_vboot()
34 * Launch QEMU with the given command line,
50 * Tear down the QEMU instance.
54 if (qs->ops) { in qtest_common_shutdown()
55 if (qs->pcibus && qs->ops->qpci_free) { in qtest_common_shutdown()
56 qs->ops->qpci_free(qs->pcibus); in qtest_common_shutdown()
57 qs->pcibus = NULL; in qtest_common_shutdown()
60 alloc_destroy(&qs->alloc); in qtest_common_shutdown()
61 qtest_quit(qs->qts); in qtest_common_shutdown()
67 if (qs->ops && qs->ops->shutdown) { in qtest_shutdown()
68 qs->ops->shutdown(qs); in qtest_shutdown()
86 rsp = qmp_execute(from->qts, "query-status"); in migrate()
94 rsp = qtest_qmp(from->qts, in migrate()
102 qtest_qmp_eventwait(from->qts, "STOP"); in migrate()
107 migrate_allocator(&from->alloc, &to->alloc); in migrate()
108 qtest_qmp_eventwait(to->qts, "RESUME"); in migrate()
114 rsp = qmp_execute(from->qts, "query-migrate"); in migrate()
120 /* "setup", "active", "device", "completed", "failed", "cancelled" */ in migrate()
126 if ((strcmp(st, "setup") == 0) || (strcmp(st, "active") == 0) in migrate()
128 || (strcmp(st, "wait-unplug") == 0)) { in migrate()
138 migrate_allocator(&from->alloc, &to->alloc); in migrate()
151 fprintf(debug_file, "[inject-error]\n"); in prepare_blkdebug_script()
158 fprintf(debug_file, "[set-state]\n"); in prepare_blkdebug_script()
175 /* Write an indicative pattern that varies and is unique per-cycle */ in generate_pattern()
184 /* force uniqueness by writing an id per-cycle */ in generate_pattern()