Lines Matching +full:qemu +full:- +full:conf
2 * Tests for QEMU yank feature
7 * See the COPYING file in the top-level directory.
10 #include "qemu/osdep.h"
13 #include "qemu/config-file.h"
14 #include "qemu/module.h"
15 #include "qemu/option.h"
16 #include "chardev/char-fe.h"
19 #include "qapi/qapi-commands-char.h"
20 #include "qapi/qapi-types-char.h"
21 #include "qapi/qapi-commands-yank.h"
22 #include "qapi/qapi-types-yank.h"
23 #include "io/channel-socket.h"
24 #include "socket-helpers.h"
65 CharChangeTestConfig *conf = (gpointer) opaque; in char_change_test() local
79 qio_channel_socket_listen_sync(ioc, conf->addr, 1, &error_abort); in char_change_test()
92 .u.inet.data = &addr->u.inet in char_change_test()
130 if (conf->old_yank) { in char_change_test()
135 ret = qmp_chardev_add("chardev", &backend[conf->old_yank], &error_abort); in char_change_test()
140 g_assert(is_yank_instance_registered() == conf->old_yank); in char_change_test()
143 if (conf->old_yank) { in char_change_test()
148 /* allow chardev-change */ in char_change_test()
152 if (conf->fail) { in char_change_test()
154 ret = qmp_chardev_change("chardev", &fail_backend[conf->new_yank], in char_change_test()
158 g_assert(is_yank_instance_registered() == conf->old_yank); in char_change_test()
161 if (conf->new_yank) { in char_change_test()
165 ret = qmp_chardev_change("chardev", &backend[conf->new_yank], in char_change_test()
167 if (conf->new_yank) { in char_change_test()
172 g_assert(is_yank_instance_registered() == conf->new_yank); in char_change_test()