diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-22 17:36:25 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-11 13:32:01 +0100 |
commit | 52e850dea988585c3d693fd9cd4a4c38968d89b8 (patch) | |
tree | e5fe8eb730492bdb8ca258f2be35f3e8a5dfad8b /gdbstub.c | |
parent | 323920c4eac01de74cf2b5e941c97ca9b2d36b7f (diff) |
block-migration: add lock
Some state is shared between the block migration code and its AIO
callbacks. Once block migration will run outside the iothread,
the block migration code and the AIO callbacks will be able to
run concurrently. Protect the critical sections with a separate
lock. Do the same for completed_sectors, which can be used from
the monitor.
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>
Diffstat (limited to 'gdbstub.c')
0 files changed, 0 insertions, 0 deletions