mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
remove preconfig state
The preconfig state is only used if -incoming is not specified, which makes the RunState state machine more tricky than it need be. However there is already an equivalent condition which works even with -incoming, namely qdev_hotplug. Use it instead of a separate runstate. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
69e92bd558
commit
164dafd174
11 changed files with 34 additions and 29 deletions
|
@ -295,7 +295,7 @@ static void test_qmp_preconfig(void)
|
|||
rsp = qtest_qmp(qs, "{ 'execute': 'query-status' }");
|
||||
ret = qdict_get_qdict(rsp, "return");
|
||||
g_assert(ret);
|
||||
g_assert_cmpstr(qdict_get_try_str(ret, "status"), ==, "preconfig");
|
||||
g_assert_cmpstr(qdict_get_try_str(ret, "status"), ==, "prelaunch");
|
||||
qobject_unref(rsp);
|
||||
|
||||
/* exit preconfig state */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue