Home
last modified time | relevance | path

Searched refs:BlockDriverState (Results 1 – 25 of 122) sorted by relevance

12345

/qemu/include/block/
H A Dblock-global-state.h71 int bdrv_append(BlockDriverState *bs_new, BlockDriverState *bs_top,
103 int bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd,
135 BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs,
146 int bdrv_drop_intermediate(BlockDriverState *top, BlockDriverState *base,
151 bdrv_find_overlay(BlockDriverState *active, BlockDriverState *bs);
153 BlockDriverState * GRAPH_RDLOCK bdrv_find_base(BlockDriverState *bs);
156 bdrv_freeze_backing_chain(BlockDriverState *bs, BlockDriverState *base,
205 bdrv_chain_contains(BlockDriverState *top, BlockDriverState *base);
207 BlockDriverState *bdrv_next_node(BlockDriverState *bs);
208 BlockDriverState *bdrv_next_all_states(BlockDriverState *bs);
[all …]
H A Dblock-io.h99 bdrv_co_delete_file_noerr(BlockDriverState *bs);
138 bdrv_co_block_status_above(BlockDriverState *bs, BlockDriverState *base,
142 bdrv_block_status_above(BlockDriverState *bs, BlockDriverState *base,
154 bdrv_co_is_allocated_above(BlockDriverState *top, BlockDriverState *base,
158 bdrv_is_allocated_above(BlockDriverState *bs, BlockDriverState *base,
169 bool bdrv_is_read_only(BlockDriverState *bs);
170 bool bdrv_is_writable(BlockDriverState *bs);
171 bool bdrv_is_sg(BlockDriverState *bs);
172 int bdrv_get_flags(BlockDriverState *bs);
357 void bdrv_drain(BlockDriverState *bs);
[all …]
H A Dblock_int-common.h77 BlockDriverState *bs;
226 BlockDriverState *bs, BlockDriverState *to_replace);
403 BlockDriverState *parent, BlockDriverState *child, Error **errp);
634 BlockDriverState *bs,
687 BlockDriverState *bs);
695 BlockDriverState *bs);
715 BlockDriverState *bs);
718 BlockDriverState *bs);
755 BlockDriverState *bs);
1018 BlockDriverState *bs;
[all …]
H A Dblock_int-io.h100 void bdrv_wakeup(BlockDriverState *bs);
137 BlockDriverState * GRAPH_RDLOCK bdrv_skip_filters(BlockDriverState *bs);
138 BlockDriverState * GRAPH_RDLOCK bdrv_backing_chain_next(BlockDriverState *bs);
140 static inline BlockDriverState * GRAPH_RDLOCK
141 bdrv_cow_bs(BlockDriverState *bs) in bdrv_cow_bs()
147 static inline BlockDriverState * GRAPH_RDLOCK
148 bdrv_filter_bs(BlockDriverState *bs) in bdrv_filter_bs()
154 static inline BlockDriverState * GRAPH_RDLOCK
155 bdrv_filter_or_cow_bs(BlockDriverState *bs) in bdrv_filter_or_cow_bs()
161 static inline BlockDriverState * GRAPH_RDLOCK
[all …]
H A Dblock_int-global-state.h67 void stream_start(const char *job_id, BlockDriverState *bs,
70 BlockDriverState *bottom,
96 void commit_start(const char *job_id, BlockDriverState *bs,
97 BlockDriverState *base, BlockDriverState *top,
157 void mirror_start(const char *job_id, BlockDriverState *bs,
245 void bdrv_default_perms(BlockDriverState *bs, BdrvChild *c,
257 void bdrv_set_monitor_owned(BlockDriverState *bs);
286 BlockDriverState * GRAPH_RDLOCK
287 bdrv_skip_implicit_filters(BlockDriverState *bs);
300 void bdrv_add_aio_context_notifier(BlockDriverState *bs,
[all …]
H A Dsnapshot.h56 int bdrv_snapshot_find(BlockDriverState *bs, QEMUSnapshotInfo *sn_info,
58 bool bdrv_snapshot_find_by_id_and_name(BlockDriverState *bs,
64 int GRAPH_RDLOCK bdrv_can_snapshot(BlockDriverState *bs);
67 bdrv_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info);
70 bdrv_snapshot_goto(BlockDriverState *bs, const char *snapshot_id, Error **errp);
73 bdrv_snapshot_delete(BlockDriverState *bs, const char *snapshot_id,
76 int bdrv_snapshot_list(BlockDriverState *bs,
78 int bdrv_snapshot_load_tmp(BlockDriverState *bs,
82 int bdrv_snapshot_load_tmp_by_id_or_name(BlockDriverState *bs,
103 BlockDriverState *vm_state_bs,
[all …]
H A Ddirty-bitmap.h20 bool bdrv_supports_persistent_dirty_bitmap(BlockDriverState *bs);
21 BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs,
32 BdrvDirtyBitmap *bdrv_find_dirty_bitmap(BlockDriverState *bs,
37 void bdrv_release_named_dirty_bitmaps(BlockDriverState *bs);
43 bdrv_remove_persistent_dirty_bitmap(BlockDriverState *bs, const char *name,
49 BlockDirtyInfoList *bdrv_query_dirty_bitmaps(BlockDriverState *bs);
50 uint32_t bdrv_get_default_bitmap_granularity(BlockDriverState *bs);
103 void bdrv_dirty_bitmap_truncate(BlockDriverState *bs, int64_t bytes);
105 bool bdrv_has_readonly_bitmaps(BlockDriverState *bs);
106 bool bdrv_has_named_bitmaps(BlockDriverState *bs);
[all …]
/qemu/block/
H A Dqcow2.h307 BlockDriverState *bs;
650 static inline bool data_file_is_raw(BlockDriverState *bs) in data_file_is_raw()
837 int GRAPH_RDLOCK qcow2_mark_dirty(BlockDriverState *bs);
838 int GRAPH_RDLOCK qcow2_mark_corrupt(BlockDriverState *bs);
853 void qcow2_refcount_close(BlockDriverState *bs);
864 qcow2_refcount_area(BlockDriverState *bs, uint64_t offset,
870 qcow2_alloc_clusters(BlockDriverState *bs, uint64_t size);
962 qcow2_expand_zero_clusters(BlockDriverState *bs,
984 void qcow2_free_snapshots(BlockDriverState *bs);
986 qcow2_read_snapshots(BlockDriverState *bs, Error **errp);
[all …]
H A Dcoroutines.h41 bdrv_co_check(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix);
44 bdrv_co_invalidate_cache(BlockDriverState *bs, Error **errp);
47 bdrv_co_common_block_status_above(BlockDriverState *bs,
48 BlockDriverState *base,
55 BlockDriverState **file,
59 bdrv_co_readv_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
62 bdrv_co_writev_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos);
65 nbd_co_do_establish_connection(BlockDriverState *bs, bool blocking,
78 bdrv_common_block_status_above(BlockDriverState *bs,
79 BlockDriverState *base,
[all …]
H A Dsnapshot.c188 static BlockDriverState * GRAPH_RDLOCK
189 bdrv_snapshot_fallback(BlockDriverState *bs) in bdrv_snapshot_fallback()
195 int bdrv_can_snapshot(BlockDriverState *bs) in bdrv_can_snapshot()
216 int bdrv_snapshot_create(BlockDriverState *bs, in bdrv_snapshot_create()
236 int bdrv_snapshot_goto(BlockDriverState *bs, in bdrv_snapshot_goto()
349 int bdrv_snapshot_delete(BlockDriverState *bs, in bdrv_snapshot_delete()
388 int bdrv_snapshot_list(BlockDriverState *bs, in bdrv_snapshot_list()
505 BlockDriverState *bs; in bdrv_all_get_snapshot_devices()
548 BlockDriverState *bs = iterbdrvs->data; in bdrv_all_can_snapshot()
583 BlockDriverState *bs = iterbdrvs->data; in bdrv_all_delete_snapshot()
[all …]
H A Dcopy-on-read.c33 BlockDriverState *bottom_bs;
39 cor_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) in cor_open()
41 BlockDriverState *bottom_bs = NULL; in cor_open()
111 static void cor_child_perm(BlockDriverState *bs, BdrvChild *c, in cor_child_perm()
135 cor_co_preadv_part(BlockDriverState *bs, int64_t offset, int64_t bytes, in cor_co_preadv_part()
187 cor_co_pwritev_part(BlockDriverState *bs, int64_t offset, int64_t bytes, in cor_co_pwritev_part()
197 cor_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes, in cor_co_pwrite_zeroes()
205 cor_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in cor_co_pdiscard()
221 cor_co_eject(BlockDriverState *bs, bool eject_flag) in cor_co_eject()
228 cor_co_lock_medium(BlockDriverState *bs, bool locked) in cor_co_lock_medium()
[all …]
H A Dsnapshot-access.c30 snapshot_access_co_preadv_part(BlockDriverState *bs, in snapshot_access_co_preadv_part()
43 snapshot_access_co_block_status(BlockDriverState *bs, in snapshot_access_co_block_status()
46 int64_t *map, BlockDriverState **file) in snapshot_access_co_block_status()
53 snapshot_access_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in snapshot_access_co_pdiscard()
59 snapshot_access_co_pwrite_zeroes(BlockDriverState *bs, in snapshot_access_co_pwrite_zeroes()
67 snapshot_access_co_pwritev_part(BlockDriverState *bs, in snapshot_access_co_pwritev_part()
76 static void GRAPH_RDLOCK snapshot_access_refresh_filename(BlockDriverState *bs) in snapshot_access_refresh_filename()
82 static int snapshot_access_open(BlockDriverState *bs, QDict *options, int flags, in snapshot_access_open()
100 static void snapshot_access_child_perm(BlockDriverState *bs, BdrvChild *c, in snapshot_access_child_perm()
H A Dthrottle.c76 static int throttle_open(BlockDriverState *bs, QDict *options, in throttle_open()
105 static void throttle_close(BlockDriverState *bs) in throttle_close()
113 throttle_co_getlength(BlockDriverState *bs) in throttle_co_getlength()
119 throttle_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in throttle_co_preadv()
130 throttle_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in throttle_co_pwritev()
159 throttle_co_pwritev_compressed(BlockDriverState *bs, int64_t offset, in throttle_co_pwritev_compressed()
171 static void throttle_detach_aio_context(BlockDriverState *bs) in throttle_detach_aio_context()
177 static void throttle_attach_aio_context(BlockDriverState *bs, in throttle_attach_aio_context()
200 BlockDriverState *bs = reopen_state->bs; in throttle_reopen_commit()
220 static void throttle_drain_begin(BlockDriverState *bs) in throttle_drain_begin()
[all …]
H A Dcopy-before-write.c82 cbw_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in cbw_co_preadv()
90 BlockDriverState *bs = opaque; in block_copy_cb()
153 cbw_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in cbw_co_pdiscard()
244 cbw_snapshot_read_unlock(BlockDriverState *bs, BlockReq *req) in cbw_snapshot_read_unlock()
292 cbw_co_snapshot_block_status(BlockDriverState *bs, in cbw_co_snapshot_block_status()
295 BlockDriverState **file) in cbw_co_snapshot_block_status()
486 static void cbw_close(BlockDriverState *bs) in cbw_close()
521 BlockDriverState *bdrv_cbw_append(BlockDriverState *source, in bdrv_cbw_append()
522 BlockDriverState *target, in bdrv_cbw_append()
528 BlockDriverState *top; in bdrv_cbw_append()
[all …]
H A Draw-format.c288 BlockDriverState **file) in raw_co_block_status()
323 raw_co_zone_report(BlockDriverState *bs, int64_t offset, in raw_co_zone_report()
331 raw_co_zone_mgmt(BlockDriverState *bs, BlockZoneOp op, in raw_co_zone_mgmt()
345 raw_co_getlength(BlockDriverState *bs) in raw_co_getlength()
397 raw_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) in raw_co_get_info()
436 raw_co_eject(BlockDriverState *bs, bool eject_flag) in raw_co_eject()
442 raw_co_lock_medium(BlockDriverState *bs, bool locked) in raw_co_lock_medium()
546 raw_probe_blocksizes(BlockDriverState *bs, BlockSizes *bsz) in raw_probe_blocksizes()
564 raw_probe_geometry(BlockDriverState *bs, HDGeometry *geo) in raw_probe_geometry()
574 raw_co_copy_range_from(BlockDriverState *bs, in raw_co_copy_range_from()
[all …]
H A Dstream.c38 BlockDriverState *cor_filter_bs;
39 BlockDriverState *target_bs;
57 BlockDriverState *unfiltered_bs; in stream_prepare()
58 BlockDriverState *unfiltered_bs_cow; in stream_prepare()
59 BlockDriverState *base; in stream_prepare()
60 BlockDriverState *unfiltered_base; in stream_prepare()
158 BlockDriverState *unfiltered_bs; in stream_run()
257 BlockDriverState *bottom, in stream_start()
264 BlockDriverState *iter; in stream_start()
267 BlockDriverState *base_overlay; in stream_start()
[all …]
H A Dnull.c103 static int64_t coroutine_fn null_co_getlength(BlockDriverState *bs) in null_co_getlength()
109 static coroutine_fn int null_co_common(BlockDriverState *bs) in null_co_common()
119 static coroutine_fn int null_co_preadv(BlockDriverState *bs, in null_co_preadv()
133 static coroutine_fn int null_co_pwritev(BlockDriverState *bs, in null_co_pwritev()
141 static coroutine_fn int null_co_flush(BlockDriverState *bs) in null_co_flush()
170 static inline BlockAIOCB *null_aio_common(BlockDriverState *bs, in null_aio_common()
192 static BlockAIOCB *null_aio_preadv(BlockDriverState *bs, in null_aio_preadv()
207 static BlockAIOCB *null_aio_pwritev(BlockDriverState *bs, in null_aio_pwritev()
216 static BlockAIOCB *null_aio_flush(BlockDriverState *bs, in null_aio_flush()
248 static void null_refresh_filename(BlockDriverState *bs) in null_refresh_filename()
[all …]
H A Dblkreplay.c24 static int blkreplay_open(BlockDriverState *bs, QDict *options, int flags, in blkreplay_open()
44 blkreplay_co_getlength(BlockDriverState *bs) in blkreplay_co_getlength()
62 static void block_request_create(uint64_t reqid, BlockDriverState *bs, in block_request_create()
74 blkreplay_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkreplay_co_preadv()
86 blkreplay_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkreplay_co_pwritev()
98 blkreplay_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkreplay_co_pwrite_zeroes()
110 blkreplay_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in blkreplay_co_pdiscard()
120 static int coroutine_fn GRAPH_RDLOCK blkreplay_co_flush(BlockDriverState *bs) in blkreplay_co_flush()
130 static int blkreplay_snapshot_goto(BlockDriverState *bs, in blkreplay_snapshot_goto()
133 BlockDriverState *file_bs; in blkreplay_snapshot_goto()
H A Dfilter-compress.c31 static int compress_open(BlockDriverState *bs, QDict *options, int flags, in compress_open()
61 compress_co_getlength(BlockDriverState *bs) in compress_co_getlength()
68 compress_co_preadv_part(BlockDriverState *bs, int64_t offset, int64_t bytes, in compress_co_preadv_part()
78 compress_co_pwritev_part(BlockDriverState *bs, int64_t offset, int64_t bytes, in compress_co_pwritev_part()
88 compress_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes, in compress_co_pwrite_zeroes()
96 compress_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in compress_co_pdiscard()
103 compress_refresh_limits(BlockDriverState *bs, Error **errp) in compress_refresh_limits()
122 compress_co_eject(BlockDriverState *bs, bool eject_flag) in compress_co_eject()
129 compress_co_lock_medium(BlockDriverState *bs, bool locked) in compress_co_lock_medium()
H A Dio.c152 BlockDriverState *bs;
253 BlockDriverState *bs;
294 BlockDriverState *bs = data->bs; in bdrv_co_drain_bh_cb()
431 void bdrv_drain(BlockDriverState *bs) in bdrv_drain()
454 BlockDriverState *bs = NULL; in bdrv_drain_all_poll()
485 BlockDriverState *bs = NULL; in bdrv_drain_all_begin_nopoll()
512 BlockDriverState *bs = NULL; in bdrv_drain_all_begin()
552 BlockDriverState *bs = NULL; in bdrv_drain_all_end()
787 BlockDriverState *bs = self->bs; in bdrv_wait_serialising_requests()
2332 BlockDriverState *bs = NULL; in bdrv_flush_all()
[all …]
H A Dpreallocate.c83 static int preallocate_drop_resize(BlockDriverState *bs, Error **errp);
140 static int preallocate_open(BlockDriverState *bs, QDict *options, int flags, in preallocate_open()
177 preallocate_truncate_to_real_size(BlockDriverState *bs, Error **errp) in preallocate_truncate_to_real_size()
204 static void preallocate_close(BlockDriverState *bs) in preallocate_close()
297 static bool GRAPH_RDLOCK has_prealloc_perms(BlockDriverState *bs) in has_prealloc_perms()
322 handle_write(BlockDriverState *bs, int64_t offset, int64_t bytes, in handle_write()
399 preallocate_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, in preallocate_co_pwrite_zeroes()
423 preallocate_co_truncate(BlockDriverState *bs, int64_t offset, in preallocate_co_truncate()
495 preallocate_co_getlength(BlockDriverState *bs) in preallocate_co_getlength()
514 preallocate_drop_resize(BlockDriverState *bs, Error **errp) in preallocate_drop_resize()
[all …]
H A Dcommit.c36 BlockDriverState *commit_top_bs;
39 BlockDriverState *base_bs;
40 BlockDriverState *base_overlay;
72 BlockDriverState *top_bs = blk_bs(s->top); in commit_abort()
73 BlockDriverState *commit_top_backing_bs; in commit_abort()
256 BlockDriverState *base, BlockDriverState *top, in commit_start()
263 BlockDriverState *iter; in commit_start()
264 BlockDriverState *commit_top_bs = NULL; in commit_start()
265 BlockDriverState *filtered_base; in commit_start()
452 int bdrv_commit(BlockDriverState *bs) in bdrv_commit()
[all …]
/qemu/tests/unit/
H A Dtest-bdrv-graph-mod.c67 static BlockDriverState *no_perm_node(const char *name) in no_perm_node()
135 BlockDriverState *bs = no_perm_node("node"); in test_update_perm_tree()
199 BlockDriverState *bs = no_perm_node("node"); in test_should_update_child()
200 BlockDriverState *filter = no_perm_node("filter"); in test_should_update_child()
232 BlockDriverState *base = no_perm_node("base"); in test_parallel_exclusive_write()
233 BlockDriverState *fl1 = pass_through_node("fl1"); in test_parallel_exclusive_write()
234 BlockDriverState *fl2 = pass_through_node("fl2"); in test_parallel_exclusive_write()
350 BlockDriverState *top = no_perm_node("top"); in test_parallel_perm_update()
351 BlockDriverState *ws = in test_parallel_perm_update()
355 BlockDriverState *base = no_perm_node("base"); in test_parallel_perm_update()
[all …]
/qemu/
H A Dblock.c2262 bdrv_child_perm(BlockDriverState *bs, BlockDriverState *child_bs, in bdrv_child_perm()
5686 BlockDriverState *bdrv_find_overlay(BlockDriverState *active, in bdrv_find_overlay()
5707 BlockDriverState *bdrv_find_base(BlockDriverState *bs) in bdrv_find_base()
6415 BlockDriverState *bdrv_next_node(BlockDriverState *bs) in bdrv_next_node()
6424 BlockDriverState *bdrv_next_all_states(BlockDriverState *bs) in bdrv_next_all_states()
6681 BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs, in bdrv_find_backing_image()
7537 BlockDriverState *bs = (BlockDriverState *) state->bs; in bdrv_set_aio_context_clean()
7548 BlockDriverState *bs = (BlockDriverState *) state->bs; in bdrv_set_aio_context_commit()
8312 BlockDriverState *bdrv_skip_implicit_filters(BlockDriverState *bs) in bdrv_skip_implicit_filters()
8322 BlockDriverState *bdrv_skip_filters(BlockDriverState *bs) in bdrv_skip_filters()
[all …]
/qemu/block/monitor/
H A Dbitmap-qmp-cmds.c55 BlockDriverState **pbs, in block_dirty_bitmap_lookup()
58 BlockDriverState *bs; in block_dirty_bitmap_lookup()
96 BlockDriverState *bs; in qmp_block_dirty_bitmap_add()
148 BlockDriverState **bitmap_bs, in block_dirty_bitmap_remove()
151 BlockDriverState *bs; in block_dirty_bitmap_remove()
197 BlockDriverState *bs; in qmp_block_dirty_bitmap_clear()
214 BlockDriverState *bs; in qmp_block_dirty_bitmap_enable()
232 BlockDriverState *bs; in qmp_block_dirty_bitmap_disable()
252 BlockDriverState *bs; in block_dirty_bitmap_merge()

12345