The BB is newly created and it should follow the BDS's current context. Signed-off-by: Fam Zheng <f...@redhat.com> --- migration/block.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/migration/block.c b/migration/block.c index ebc10e6..b7365ee 100644 --- a/migration/block.c +++ b/migration/block.c @@ -445,6 +445,7 @@ static void init_blk_migration(QEMUFile *f) BlockDriverState *bs = bmds_bs[i].bs; if (bmds) { + blk_set_aio_context(bmds->blk, bdrv_get_aio_context(bs)); blk_insert_bs(bmds->blk, bs); alloc_aio_bitmap(bmds); -- 2.7.4