qemu-patch-raspberry4/include/migration
Paolo Bonzini 32c835ba39 migration: run pending/iterate callbacks out of big lock
This makes it possible to do blocking writes directly to the socket,
with no buffer in the middle.  For RAM, only the migration_bitmap_sync()
call needs the iothread lock.  For block migration, it is needed by
the block layer (including bdrv_drain_all and dirty bitmap access),
but because some code is shared between iterate and complete, all of
mig_save_device_dirty is run with the lock taken.

In the savevm case, the iterate callback runs within the big lock.
This is annoying because it complicates the rules.  Luckily we do not
need to do anything about it: the RAM iterate callback does not need
the iothread lock, and block migration never runs during savevm.

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>
2013-03-11 13:32:01 +01:00
..
block.h migration: move include files to include/migration/ 2012-12-19 08:31:32 +01:00
migration.h migration: cleanup migration (including thread) in the iothread 2013-03-11 13:32:01 +01:00
page_cache.h migration: move include files to include/migration/ 2012-12-19 08:31:32 +01:00
qemu-file.h qemu-file: temporarily expose qemu_file_set_error and qemu_fflush 2013-03-11 13:32:01 +01:00
vmstate.h migration: run pending/iterate callbacks out of big lock 2013-03-11 13:32:01 +01:00