Lines Matching refs:bs

112     BlockDriverState *bs;  member
139 BlockDriverState *bs; member
151 BlockDriverState *bs; member
383 BlockDriverState *bs = dbms->bs; in send_bitmap_header() local
388 if (bs != s->prev_bs) { in send_bitmap_header()
389 s->prev_bs = bs; in send_bitmap_header()
475 bdrv_unref(dbms->bs); in dirty_bitmap_do_save_cleanup()
483 static int add_bitmaps_to_list(DBMSaveState *s, BlockDriverState *bs, in add_bitmaps_to_list() argument
493 assert(!alias_map || !strcmp(bs_name, bdrv_get_node_name(bs))); in add_bitmaps_to_list()
495 FOR_EACH_DIRTY_BITMAP(bs, bitmap) { in add_bitmaps_to_list()
534 FOR_EACH_DIRTY_BITMAP(bs, bitmap) { in add_bitmaps_to_list()
568 bdrv_ref(bs); in add_bitmaps_to_list()
572 dbms->bs = bs; in add_bitmaps_to_list()
576 dbms->total_sectors = bdrv_nb_sectors(bs); in add_bitmaps_to_list()
603 BlockDriverState *bs; in init_dirty_bitmap_migration() local
635 bs = blk_bs(blk); in init_dirty_bitmap_migration()
638 while (bs && bs->drv && bs->drv->is_filter && in init_dirty_bitmap_migration()
639 !bdrv_has_named_bitmaps(bs)) in init_dirty_bitmap_migration()
641 bs = bdrv_filter_bs(bs); in init_dirty_bitmap_migration()
644 if (bs && bs->drv && !bs->drv->is_filter) { in init_dirty_bitmap_migration()
645 if (add_bitmaps_to_list(s, bs, name, NULL, errp)) { in init_dirty_bitmap_migration()
648 g_hash_table_add(handled_by_blk, bs); in init_dirty_bitmap_migration()
653 for (bs = bdrv_next_all_states(NULL); bs; bs = bdrv_next_all_states(bs)) { in init_dirty_bitmap_migration()
654 if (g_hash_table_contains(handled_by_blk, bs)) { in init_dirty_bitmap_migration()
658 if (add_bitmaps_to_list(s, bs, bdrv_get_node_name(bs), alias_map, in init_dirty_bitmap_migration()
812 s->bitmap = bdrv_create_dirty_bitmap(s->bs, granularity, in dirty_bitmap_load_start()
850 b->bs = s->bs; in dirty_bitmap_load_start()
908 s->bs = NULL; in cancel_incoming_locked()
1072 s->bs = NULL; in dirty_bitmap_load_header()
1075 s->bs = bdrv_lookup_bs(NULL, amin->string, &local_err); in dirty_bitmap_load_header()
1078 s->bs = bdrv_lookup_bs(s->node_alias, s->node_alias, in dirty_bitmap_load_header()
1081 if (!s->bs) { in dirty_bitmap_load_header()
1086 } else if (s->bs) { in dirty_bitmap_load_header()
1119 s->bs->node_name, s->node_alias); in dirty_bitmap_load_header()
1130 s->bitmap = bdrv_find_dirty_bitmap(s->bs, s->bitmap_name); in dirty_bitmap_load_header()
1139 s->bitmap_name, s->bs->node_name); in dirty_bitmap_load_header()