migration.c (eab0ebc7fe3662ebb4348ac763e7aabc7e355566) migration.c (7fb1cf1606c78c9d5b538f29176fd5a101726a9d)
1/*
2 * QEMU live migration
3 *
4 * Copyright IBM, Corp. 2008
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *

--- 188 unchanged lines hidden (view full) ---

197 GlobalState *s = opaque;
198 Error *local_err = NULL;
199 int r;
200 char *runstate = (char *)s->runstate;
201
202 s->received = true;
203 trace_migrate_global_state_post_load(runstate);
204
1/*
2 * QEMU live migration
3 *
4 * Copyright IBM, Corp. 2008
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *

--- 188 unchanged lines hidden (view full) ---

197 GlobalState *s = opaque;
198 Error *local_err = NULL;
199 int r;
200 char *runstate = (char *)s->runstate;
201
202 s->received = true;
203 trace_migrate_global_state_post_load(runstate);
204
205 r = qapi_enum_parse(RunState_lookup, runstate, RUN_STATE_MAX,
205 r = qapi_enum_parse(RunState_lookup, runstate, RUN_STATE__MAX,
206 -1, &local_err);
207
208 if (r == -1) {
209 if (local_err) {
210 error_report_err(local_err);
211 }
212 return -EINVAL;
213 }

--- 260 unchanged lines hidden (view full) ---

474MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp)
475{
476 MigrationCapabilityStatusList *head = NULL;
477 MigrationCapabilityStatusList *caps;
478 MigrationState *s = migrate_get_current();
479 int i;
480
481 caps = NULL; /* silence compiler warning */
206 -1, &local_err);
207
208 if (r == -1) {
209 if (local_err) {
210 error_report_err(local_err);
211 }
212 return -EINVAL;
213 }

--- 260 unchanged lines hidden (view full) ---

474MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp)
475{
476 MigrationCapabilityStatusList *head = NULL;
477 MigrationCapabilityStatusList *caps;
478 MigrationState *s = migrate_get_current();
479 int i;
480
481 caps = NULL; /* silence compiler warning */
482 for (i = 0; i < MIGRATION_CAPABILITY_MAX; i++) {
482 for (i = 0; i < MIGRATION_CAPABILITY__MAX; i++) {
483 if (head == NULL) {
484 head = g_malloc0(sizeof(*caps));
485 caps = head;
486 } else {
487 caps->next = g_malloc0(sizeof(*caps));
488 caps = caps->next;
489 }
490 caps->value =

--- 1283 unchanged lines hidden ---
483 if (head == NULL) {
484 head = g_malloc0(sizeof(*caps));
485 caps = head;
486 } else {
487 caps->next = g_malloc0(sizeof(*caps));
488 caps = caps->next;
489 }
490 caps->value =

--- 1283 unchanged lines hidden ---