migration: prepare to access s->state outside critical sections
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Feb 2013 16:36:20 +0000 (17:36 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 11 Mar 2013 12:32:01 +0000 (13:32 +0100)
commitf4410a5d9926886c36d9fa9fdd969d0469d62724
tree00d009c49ee97694ba4573a5a6658e63b8866629
parentc09e5bb1d88ef38986bac7c6ed59dbd732cc4771
migration: prepare to access s->state outside critical sections

Accessing s->state outside the big QEMU lock will simplify a bit the
locking/unlocking of the iothread lock.

We need to keep the lock in migrate_fd_error and migrate_fd_completed,
however, because they call migrate_fd_cleanup.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration.c