Revision | 8be2094648f85acbd443ea0b5710e5988fda6741 (tree) |
---|---|
Time | 2019-06-06 18:51:19 |
Author | Peter Maydell <peter.maydell@lina...> |
Commiter | Peter Maydell |
Merge remote-tracking branch 'remotes/juanquintela/tags/migration-pull-request' into staging
Migration Pull request
# gpg: Signature made Wed 05 Jun 2019 12:52:06 BST
# gpg: using RSA key 1899FF8EDEBF58CCEE034B82F487EF185872D723
# gpg: Good signature from "Juan Quintela <quintela@redhat.com>" [full]
# gpg: aka "Juan Quintela <quintela@trasno.org>" [full]
# Primary key fingerprint: 1899 FF8E DEBF 58CC EE03 4B82 F487 EF18 5872 D723
* remotes/juanquintela/tags/migration-pull-request:
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
@@ -52,12 +52,14 @@ static gboolean fd_accept_incoming_migration(QIOChannel *ioc, | ||
52 | 52 | return G_SOURCE_REMOVE; |
53 | 53 | } |
54 | 54 | |
55 | -void fd_start_incoming_migration(const char *infd, Error **errp) | |
55 | +void fd_start_incoming_migration(const char *fdname, Error **errp) | |
56 | 56 | { |
57 | 57 | QIOChannel *ioc; |
58 | - int fd; | |
58 | + int fd = monitor_fd_param(cur_mon, fdname, errp); | |
59 | + if (fd == -1) { | |
60 | + return; | |
61 | + } | |
59 | 62 | |
60 | - fd = strtol(infd, NULL, 0); | |
61 | 63 | trace_migration_fd_incoming(fd); |
62 | 64 | |
63 | 65 | ioc = qio_channel_new_fd(fd, errp); |
@@ -16,7 +16,7 @@ | ||
16 | 16 | |
17 | 17 | #ifndef QEMU_MIGRATION_FD_H |
18 | 18 | #define QEMU_MIGRATION_FD_H |
19 | -void fd_start_incoming_migration(const char *path, Error **errp); | |
19 | +void fd_start_incoming_migration(const char *fdname, Error **errp); | |
20 | 20 | |
21 | 21 | void fd_start_outgoing_migration(MigrationState *s, const char *fdname, |
22 | 22 | Error **errp); |
@@ -661,8 +661,6 @@ typedef struct { | ||
661 | 661 | uint64_t num_packets; |
662 | 662 | /* pages sent through this channel */ |
663 | 663 | uint64_t num_pages; |
664 | - /* syncs main thread and channels */ | |
665 | - QemuSemaphore sem_sync; | |
666 | 664 | } MultiFDSendParams; |
667 | 665 | |
668 | 666 | typedef struct { |
@@ -894,8 +892,6 @@ static int multifd_recv_unfill_packet(MultiFDRecvParams *p, Error **errp) | ||
894 | 892 | |
895 | 893 | struct { |
896 | 894 | MultiFDSendParams *params; |
897 | - /* number of created threads */ | |
898 | - int count; | |
899 | 895 | /* array of pages to sent */ |
900 | 896 | MultiFDPages_t *pages; |
901 | 897 | /* syncs main thread and channels */ |
@@ -1027,7 +1023,6 @@ void multifd_save_cleanup(void) | ||
1027 | 1023 | p->c = NULL; |
1028 | 1024 | qemu_mutex_destroy(&p->mutex); |
1029 | 1025 | qemu_sem_destroy(&p->sem); |
1030 | - qemu_sem_destroy(&p->sem_sync); | |
1031 | 1026 | g_free(p->name); |
1032 | 1027 | p->name = NULL; |
1033 | 1028 | multifd_pages_clear(p->pages); |
@@ -1174,8 +1169,6 @@ static void multifd_new_send_channel_async(QIOTask *task, gpointer opaque) | ||
1174 | 1169 | p->running = true; |
1175 | 1170 | qemu_thread_create(&p->thread, p->name, multifd_send_thread, p, |
1176 | 1171 | QEMU_THREAD_JOINABLE); |
1177 | - | |
1178 | - atomic_inc(&multifd_send_state->count); | |
1179 | 1172 | } |
1180 | 1173 | } |
1181 | 1174 |
@@ -1191,7 +1184,6 @@ int multifd_save_setup(void) | ||
1191 | 1184 | thread_count = migrate_multifd_channels(); |
1192 | 1185 | multifd_send_state = g_malloc0(sizeof(*multifd_send_state)); |
1193 | 1186 | multifd_send_state->params = g_new0(MultiFDSendParams, thread_count); |
1194 | - atomic_set(&multifd_send_state->count, 0); | |
1195 | 1187 | multifd_send_state->pages = multifd_pages_init(page_count); |
1196 | 1188 | qemu_sem_init(&multifd_send_state->sem_sync, 0); |
1197 | 1189 | qemu_sem_init(&multifd_send_state->channels_ready, 0); |
@@ -1201,7 +1193,6 @@ int multifd_save_setup(void) | ||
1201 | 1193 | |
1202 | 1194 | qemu_mutex_init(&p->mutex); |
1203 | 1195 | qemu_sem_init(&p->sem, 0); |
1204 | - qemu_sem_init(&p->sem_sync, 0); | |
1205 | 1196 | p->quit = false; |
1206 | 1197 | p->pending_job = 0; |
1207 | 1198 | p->id = i; |
@@ -3182,11 +3173,11 @@ static int ram_state_init(RAMState **rsp) | ||
3182 | 3173 | QSIMPLEQ_INIT(&(*rsp)->src_page_requests); |
3183 | 3174 | |
3184 | 3175 | /* |
3185 | - * Count the total number of pages used by ram blocks not including any | |
3186 | - * gaps due to alignment or unplugs. | |
3176 | + * This must match with the initial values of dirty bitmap. | |
3177 | + * Currently we initialize the dirty bitmap to all zeros so | |
3178 | + * here the total dirty page count is zero. | |
3187 | 3179 | */ |
3188 | - (*rsp)->migration_dirty_pages = ram_bytes_total() >> TARGET_PAGE_BITS; | |
3189 | - | |
3180 | + (*rsp)->migration_dirty_pages = 0; | |
3190 | 3181 | ram_state_reset(*rsp); |
3191 | 3182 | |
3192 | 3183 | return 0; |
@@ -3201,8 +3192,16 @@ static void ram_list_init_bitmaps(void) | ||
3201 | 3192 | if (ram_bytes_total()) { |
3202 | 3193 | RAMBLOCK_FOREACH_NOT_IGNORED(block) { |
3203 | 3194 | pages = block->max_length >> TARGET_PAGE_BITS; |
3195 | + /* | |
3196 | + * The initial dirty bitmap for migration must be set with all | |
3197 | + * ones to make sure we'll migrate every guest RAM page to | |
3198 | + * destination. | |
3199 | + * Here we didn't set RAMBlock.bmap simply because it is already | |
3200 | + * set in ram_list.dirty_memory[DIRTY_MEMORY_MIGRATION] in | |
3201 | + * ram_block_add, and that's where we'll sync the dirty bitmaps. | |
3202 | + * Here setting RAMBlock.bmap would be fine too but not necessary. | |
3203 | + */ | |
3204 | 3204 | block->bmap = bitmap_new(pages); |
3205 | - bitmap_set(block->bmap, 0, pages); | |
3206 | 3205 | if (migrate_postcopy_ram()) { |
3207 | 3206 | block->unsentmap = bitmap_new(pages); |
3208 | 3207 | bitmap_set(block->unsentmap, 0, pages); |
@@ -32,6 +32,7 @@ | ||
32 | 32 | |
33 | 33 | #define MAX_IRQ 256 |
34 | 34 | #define SOCKET_TIMEOUT 50 |
35 | +#define SOCKET_MAX_FDS 16 | |
35 | 36 | |
36 | 37 | QTestState *global_qtest; |
37 | 38 |
@@ -391,6 +392,40 @@ static void GCC_FMT_ATTR(2, 3) qtest_sendf(QTestState *s, const char *fmt, ...) | ||
391 | 392 | va_end(ap); |
392 | 393 | } |
393 | 394 | |
395 | +/* Sends a message and file descriptors to the socket. | |
396 | + * It's needed for qmp-commands like getfd/add-fd */ | |
397 | +static void socket_send_fds(int socket_fd, int *fds, size_t fds_num, | |
398 | + const char *buf, size_t buf_size) | |
399 | +{ | |
400 | + ssize_t ret; | |
401 | + struct msghdr msg = { 0 }; | |
402 | + char control[CMSG_SPACE(sizeof(int) * SOCKET_MAX_FDS)] = { 0 }; | |
403 | + size_t fdsize = sizeof(int) * fds_num; | |
404 | + struct cmsghdr *cmsg; | |
405 | + struct iovec iov = { .iov_base = (char *)buf, .iov_len = buf_size }; | |
406 | + | |
407 | + msg.msg_iov = &iov; | |
408 | + msg.msg_iovlen = 1; | |
409 | + | |
410 | + if (fds && fds_num > 0) { | |
411 | + g_assert_cmpuint(fds_num, <, SOCKET_MAX_FDS); | |
412 | + | |
413 | + msg.msg_control = control; | |
414 | + msg.msg_controllen = CMSG_SPACE(fdsize); | |
415 | + | |
416 | + cmsg = CMSG_FIRSTHDR(&msg); | |
417 | + cmsg->cmsg_len = CMSG_LEN(fdsize); | |
418 | + cmsg->cmsg_level = SOL_SOCKET; | |
419 | + cmsg->cmsg_type = SCM_RIGHTS; | |
420 | + memcpy(CMSG_DATA(cmsg), fds, fdsize); | |
421 | + } | |
422 | + | |
423 | + do { | |
424 | + ret = sendmsg(socket_fd, &msg, 0); | |
425 | + } while (ret < 0 && errno == EINTR); | |
426 | + g_assert_cmpint(ret, >, 0); | |
427 | +} | |
428 | + | |
394 | 429 | static GString *qtest_recv_line(QTestState *s) |
395 | 430 | { |
396 | 431 | GString *line; |
@@ -545,7 +580,8 @@ QDict *qtest_qmp_receive(QTestState *s) | ||
545 | 580 | * in the case that they choose to discard all replies up until |
546 | 581 | * a particular EVENT is received. |
547 | 582 | */ |
548 | -void qmp_fd_vsend(int fd, const char *fmt, va_list ap) | |
583 | +void qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num, | |
584 | + const char *fmt, va_list ap) | |
549 | 585 | { |
550 | 586 | QObject *qobj; |
551 | 587 |
@@ -569,25 +605,49 @@ void qmp_fd_vsend(int fd, const char *fmt, va_list ap) | ||
569 | 605 | fprintf(stderr, "%s", str); |
570 | 606 | } |
571 | 607 | /* Send QMP request */ |
572 | - socket_send(fd, str, qstring_get_length(qstr)); | |
608 | + if (fds && fds_num > 0) { | |
609 | + socket_send_fds(fd, fds, fds_num, str, qstring_get_length(qstr)); | |
610 | + } else { | |
611 | + socket_send(fd, str, qstring_get_length(qstr)); | |
612 | + } | |
573 | 613 | |
574 | 614 | qobject_unref(qstr); |
575 | 615 | qobject_unref(qobj); |
576 | 616 | } |
577 | 617 | } |
578 | 618 | |
619 | +void qmp_fd_vsend(int fd, const char *fmt, va_list ap) | |
620 | +{ | |
621 | + qmp_fd_vsend_fds(fd, NULL, 0, fmt, ap); | |
622 | +} | |
623 | + | |
624 | +void qtest_qmp_vsend_fds(QTestState *s, int *fds, size_t fds_num, | |
625 | + const char *fmt, va_list ap) | |
626 | +{ | |
627 | + qmp_fd_vsend_fds(s->qmp_fd, fds, fds_num, fmt, ap); | |
628 | +} | |
629 | + | |
579 | 630 | void qtest_qmp_vsend(QTestState *s, const char *fmt, va_list ap) |
580 | 631 | { |
581 | - qmp_fd_vsend(s->qmp_fd, fmt, ap); | |
632 | + qmp_fd_vsend_fds(s->qmp_fd, NULL, 0, fmt, ap); | |
582 | 633 | } |
583 | 634 | |
584 | 635 | QDict *qmp_fdv(int fd, const char *fmt, va_list ap) |
585 | 636 | { |
586 | - qmp_fd_vsend(fd, fmt, ap); | |
637 | + qmp_fd_vsend_fds(fd, NULL, 0, fmt, ap); | |
587 | 638 | |
588 | 639 | return qmp_fd_receive(fd); |
589 | 640 | } |
590 | 641 | |
642 | +QDict *qtest_vqmp_fds(QTestState *s, int *fds, size_t fds_num, | |
643 | + const char *fmt, va_list ap) | |
644 | +{ | |
645 | + qtest_qmp_vsend_fds(s, fds, fds_num, fmt, ap); | |
646 | + | |
647 | + /* Receive reply */ | |
648 | + return qtest_qmp_receive(s); | |
649 | +} | |
650 | + | |
591 | 651 | QDict *qtest_vqmp(QTestState *s, const char *fmt, va_list ap) |
592 | 652 | { |
593 | 653 | qtest_qmp_vsend(s, fmt, ap); |
@@ -616,6 +676,18 @@ void qmp_fd_send(int fd, const char *fmt, ...) | ||
616 | 676 | va_end(ap); |
617 | 677 | } |
618 | 678 | |
679 | +QDict *qtest_qmp_fds(QTestState *s, int *fds, size_t fds_num, | |
680 | + const char *fmt, ...) | |
681 | +{ | |
682 | + va_list ap; | |
683 | + QDict *response; | |
684 | + | |
685 | + va_start(ap, fmt); | |
686 | + response = qtest_vqmp_fds(s, fds, fds_num, fmt, ap); | |
687 | + va_end(ap); | |
688 | + return response; | |
689 | +} | |
690 | + | |
619 | 691 | QDict *qtest_qmp(QTestState *s, const char *fmt, ...) |
620 | 692 | { |
621 | 693 | va_list ap; |
@@ -85,6 +85,21 @@ QTestState *qtest_init_with_serial(const char *extra_args, int *sock_fd); | ||
85 | 85 | void qtest_quit(QTestState *s); |
86 | 86 | |
87 | 87 | /** |
88 | + * qtest_qmp_fds: | |
89 | + * @s: #QTestState instance to operate on. | |
90 | + * @fds: array of file descriptors | |
91 | + * @fds_num: number of elements in @fds | |
92 | + * @fmt...: QMP message to send to qemu, formatted like | |
93 | + * qobject_from_jsonf_nofail(). See parse_escape() for what's | |
94 | + * supported after '%'. | |
95 | + * | |
96 | + * Sends a QMP message to QEMU with fds and returns the response. | |
97 | + */ | |
98 | +QDict *qtest_qmp_fds(QTestState *s, int *fds, size_t fds_num, | |
99 | + const char *fmt, ...) | |
100 | + GCC_FMT_ATTR(4, 5); | |
101 | + | |
102 | +/** | |
88 | 103 | * qtest_qmp: |
89 | 104 | * @s: #QTestState instance to operate on. |
90 | 105 | * @fmt...: QMP message to send to qemu, formatted like |
@@ -120,7 +135,23 @@ void qtest_qmp_send_raw(QTestState *s, const char *fmt, ...) | ||
120 | 135 | GCC_FMT_ATTR(2, 3); |
121 | 136 | |
122 | 137 | /** |
123 | - * qtest_qmpv: | |
138 | + * qtest_vqmp_fds: | |
139 | + * @s: #QTestState instance to operate on. | |
140 | + * @fds: array of file descriptors | |
141 | + * @fds_num: number of elements in @fds | |
142 | + * @fmt: QMP message to send to QEMU, formatted like | |
143 | + * qobject_from_jsonf_nofail(). See parse_escape() for what's | |
144 | + * supported after '%'. | |
145 | + * @ap: QMP message arguments | |
146 | + * | |
147 | + * Sends a QMP message to QEMU with fds and returns the response. | |
148 | + */ | |
149 | +QDict *qtest_vqmp_fds(QTestState *s, int *fds, size_t fds_num, | |
150 | + const char *fmt, va_list ap) | |
151 | + GCC_FMT_ATTR(4, 0); | |
152 | + | |
153 | +/** | |
154 | + * qtest_vqmp: | |
124 | 155 | * @s: #QTestState instance to operate on. |
125 | 156 | * @fmt: QMP message to send to QEMU, formatted like |
126 | 157 | * qobject_from_jsonf_nofail(). See parse_escape() for what's |
@@ -133,6 +164,22 @@ QDict *qtest_vqmp(QTestState *s, const char *fmt, va_list ap) | ||
133 | 164 | GCC_FMT_ATTR(2, 0); |
134 | 165 | |
135 | 166 | /** |
167 | + * qtest_qmp_vsend_fds: | |
168 | + * @s: #QTestState instance to operate on. | |
169 | + * @fds: array of file descriptors | |
170 | + * @fds_num: number of elements in @fds | |
171 | + * @fmt: QMP message to send to QEMU, formatted like | |
172 | + * qobject_from_jsonf_nofail(). See parse_escape() for what's | |
173 | + * supported after '%'. | |
174 | + * @ap: QMP message arguments | |
175 | + * | |
176 | + * Sends a QMP message to QEMU and leaves the response in the stream. | |
177 | + */ | |
178 | +void qtest_qmp_vsend_fds(QTestState *s, int *fds, size_t fds_num, | |
179 | + const char *fmt, va_list ap) | |
180 | + GCC_FMT_ATTR(4, 0); | |
181 | + | |
182 | +/** | |
136 | 183 | * qtest_qmp_vsend: |
137 | 184 | * @s: #QTestState instance to operate on. |
138 | 185 | * @fmt: QMP message to send to QEMU, formatted like |
@@ -888,6 +935,8 @@ static inline int64_t clock_step(int64_t step) | ||
888 | 935 | } |
889 | 936 | |
890 | 937 | QDict *qmp_fd_receive(int fd); |
938 | +void qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num, | |
939 | + const char *fmt, va_list ap) GCC_FMT_ATTR(4, 0); | |
891 | 940 | void qmp_fd_vsend(int fd, const char *fmt, va_list ap) GCC_FMT_ATTR(2, 0); |
892 | 941 | void qmp_fd_send(int fd, const char *fmt, ...) GCC_FMT_ATTR(2, 3); |
893 | 942 | void qmp_fd_send_raw(int fd, const char *fmt, ...) GCC_FMT_ATTR(2, 3); |
@@ -177,6 +177,21 @@ static void stop_cb(void *opaque, const char *name, QDict *data) | ||
177 | 177 | /* |
178 | 178 | * Events can get in the way of responses we are actually waiting for. |
179 | 179 | */ |
180 | +GCC_FMT_ATTR(3, 4) | |
181 | +static QDict *wait_command_fd(QTestState *who, int fd, const char *command, ...) | |
182 | +{ | |
183 | + va_list ap; | |
184 | + | |
185 | + va_start(ap, command); | |
186 | + qtest_qmp_vsend_fds(who, &fd, 1, command, ap); | |
187 | + va_end(ap); | |
188 | + | |
189 | + return qtest_qmp_receive_success(who, stop_cb, NULL); | |
190 | +} | |
191 | + | |
192 | +/* | |
193 | + * Events can get in the way of responses we are actually waiting for. | |
194 | + */ | |
180 | 195 | GCC_FMT_ATTR(2, 3) |
181 | 196 | static QDict *wait_command(QTestState *who, const char *command, ...) |
182 | 197 | { |
@@ -480,6 +495,7 @@ static void migrate(QTestState *who, const char *uri, const char *fmt, ...) | ||
480 | 495 | qdict_put_str(args, "uri", uri); |
481 | 496 | |
482 | 497 | rsp = qmp("{ 'execute': 'migrate', 'arguments': %p}", args); |
498 | + | |
483 | 499 | g_assert(qdict_haskey(rsp, "return")); |
484 | 500 | qobject_unref(rsp); |
485 | 501 | } |
@@ -1027,6 +1043,90 @@ static void test_precopy_tcp(void) | ||
1027 | 1043 | g_free(uri); |
1028 | 1044 | } |
1029 | 1045 | |
1046 | +static void test_migrate_fd_proto(void) | |
1047 | +{ | |
1048 | + QTestState *from, *to; | |
1049 | + int ret; | |
1050 | + int pair[2]; | |
1051 | + QDict *rsp; | |
1052 | + const char *error_desc; | |
1053 | + | |
1054 | + if (test_migrate_start(&from, &to, "defer", false, false)) { | |
1055 | + return; | |
1056 | + } | |
1057 | + | |
1058 | + /* | |
1059 | + * We want to pick a speed slow enough that the test completes | |
1060 | + * quickly, but that it doesn't complete precopy even on a slow | |
1061 | + * machine, so also set the downtime. | |
1062 | + */ | |
1063 | + /* 1 ms should make it not converge */ | |
1064 | + migrate_set_parameter(from, "downtime-limit", 1); | |
1065 | + /* 1GB/s */ | |
1066 | + migrate_set_parameter(from, "max-bandwidth", 1000000000); | |
1067 | + | |
1068 | + /* Wait for the first serial output from the source */ | |
1069 | + wait_for_serial("src_serial"); | |
1070 | + | |
1071 | + /* Create two connected sockets for migration */ | |
1072 | + ret = socketpair(PF_LOCAL, SOCK_STREAM, 0, pair); | |
1073 | + g_assert_cmpint(ret, ==, 0); | |
1074 | + | |
1075 | + /* Send the 1st socket to the target */ | |
1076 | + rsp = wait_command_fd(to, pair[0], | |
1077 | + "{ 'execute': 'getfd'," | |
1078 | + " 'arguments': { 'fdname': 'fd-mig' }}"); | |
1079 | + qobject_unref(rsp); | |
1080 | + close(pair[0]); | |
1081 | + | |
1082 | + /* Start incoming migration from the 1st socket */ | |
1083 | + rsp = wait_command(to, "{ 'execute': 'migrate-incoming'," | |
1084 | + " 'arguments': { 'uri': 'fd:fd-mig' }}"); | |
1085 | + qobject_unref(rsp); | |
1086 | + | |
1087 | + /* Send the 2nd socket to the target */ | |
1088 | + rsp = wait_command_fd(from, pair[1], | |
1089 | + "{ 'execute': 'getfd'," | |
1090 | + " 'arguments': { 'fdname': 'fd-mig' }}"); | |
1091 | + qobject_unref(rsp); | |
1092 | + close(pair[1]); | |
1093 | + | |
1094 | + /* Start migration to the 2nd socket*/ | |
1095 | + migrate(from, "fd:fd-mig", "{}"); | |
1096 | + | |
1097 | + wait_for_migration_pass(from); | |
1098 | + | |
1099 | + /* 300ms should converge */ | |
1100 | + migrate_set_parameter(from, "downtime-limit", 300); | |
1101 | + | |
1102 | + if (!got_stop) { | |
1103 | + qtest_qmp_eventwait(from, "STOP"); | |
1104 | + } | |
1105 | + qtest_qmp_eventwait(to, "RESUME"); | |
1106 | + | |
1107 | + /* Test closing fds */ | |
1108 | + /* We assume, that QEMU removes named fd from its list, | |
1109 | + * so this should fail */ | |
1110 | + rsp = qtest_qmp(from, "{ 'execute': 'closefd'," | |
1111 | + " 'arguments': { 'fdname': 'fd-mig' }}"); | |
1112 | + g_assert_true(qdict_haskey(rsp, "error")); | |
1113 | + error_desc = qdict_get_str(qdict_get_qdict(rsp, "error"), "desc"); | |
1114 | + g_assert_cmpstr(error_desc, ==, "File descriptor named 'fd-mig' not found"); | |
1115 | + qobject_unref(rsp); | |
1116 | + | |
1117 | + rsp = qtest_qmp(to, "{ 'execute': 'closefd'," | |
1118 | + " 'arguments': { 'fdname': 'fd-mig' }}"); | |
1119 | + g_assert_true(qdict_haskey(rsp, "error")); | |
1120 | + error_desc = qdict_get_str(qdict_get_qdict(rsp, "error"), "desc"); | |
1121 | + g_assert_cmpstr(error_desc, ==, "File descriptor named 'fd-mig' not found"); | |
1122 | + qobject_unref(rsp); | |
1123 | + | |
1124 | + /* Complete migration */ | |
1125 | + wait_for_serial("dest_serial"); | |
1126 | + wait_for_migration_complete(from); | |
1127 | + test_migrate_end(from, to, true); | |
1128 | +} | |
1129 | + | |
1030 | 1130 | int main(int argc, char **argv) |
1031 | 1131 | { |
1032 | 1132 | char template[] = "/tmp/migration-test-XXXXXX"; |
@@ -1081,6 +1181,7 @@ int main(int argc, char **argv) | ||
1081 | 1181 | qtest_add_func("/migration/precopy/tcp", test_precopy_tcp); |
1082 | 1182 | /* qtest_add_func("/migration/ignore_shared", test_ignore_shared); */ |
1083 | 1183 | qtest_add_func("/migration/xbzrle/unix", test_xbzrle_unix); |
1184 | + qtest_add_func("/migration/fd_proto", test_migrate_fd_proto); | |
1084 | 1185 | |
1085 | 1186 | ret = g_test_run(); |
1086 | 1187 |