diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2021-06-29 17:50:06 +0200 |
|---|---|---|
| committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2021-07-05 10:51:26 +0100 |
| commit | fde93d99d9c208c07e2dcc24cd04e824d2b65b35 (patch) | |
| tree | f046a0e42947a745383fd92f6178b24d0d957b4b /scripts/qapi/introspect.py | |
| parent | b7f9afd48e7bc5c341e55348f2c2eed08314be7d (diff) | |
| download | focaccia-qemu-fde93d99d9c208c07e2dcc24cd04e824d2b65b35.tar.gz focaccia-qemu-fde93d99d9c208c07e2dcc24cd04e824d2b65b35.zip | |
migration: move wait-unplug loop to its own function
The loop is used in migration_thread() and bg_migration_thread(), so we can move it to its own function and call it from these both places. Moreover, in migration_thread() we have a wrong state transition from SETUP to ACTIVE while state could be WAIT_UNPLUG. This is correctly managed in bg_migration_thread() so use this code instead. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Message-Id: <20210629155007.629086-2-lvivier@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions