Re: [Qemu-devel] [PATCH 1/2] migration: fix the Unknown ending state error log

2018-07-24 Thread Peter Xu
On Tue, Jul 24, 2018 at 08:16:24PM +0800, Lidong Chen wrote: > When cancelling migration, the state is MIGRATION_STATUS_CANCELLING. > The state change to MIGRATION_STATUS_CANCELLED when cleanup_bh is scheduled. > So when migration_iteration_finish is invoked, the state should be >

[Qemu-devel] [PATCH 1/2] migration: fix the Unknown ending state error log

2018-07-24 Thread Lidong Chen
When cancelling migration, the state is MIGRATION_STATUS_CANCELLING. The state change to MIGRATION_STATUS_CANCELLED when cleanup_bh is scheduled. So when migration_iteration_finish is invoked, the state should be MIGRATION_STATUS_CANCELLING. Signed-off-by: Lidong Chen --- migration/migration.c