]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: New BdrvChildRole.activate() for blk_resume_after_migration()
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 May 2017 16:52:37 +0000 (18:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 11 May 2017 10:08:24 +0000 (12:08 +0200)
commit4417ab7adf1613799054be5afedf810fc2524ee8
tree07b0be1c2077c7eecddab8e36fe4af21140b43d7
parentace21a58751824f9a3d399e332317233e880de3a
block: New BdrvChildRole.activate() for blk_resume_after_migration()

Instead of manually calling blk_resume_after_migration() in migration
code after doing bdrv_invalidate_cache_all(), integrate the BlockBackend
activation with cache invalidation into a single function. This is
achieved with a new callback in BdrvChildRole that is called by
bdrv_invalidate_cache_all().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c
block/block-backend.c
include/block/block.h
include/block/block_int.h
migration/migration.c
migration/savevm.c
qmp.c