/openbmc/qemu/include/block/ |
H A D | block-global-state.h | 70 BlockDriverState *bdrv_new(void); 71 int bdrv_append(BlockDriverState *bs_new, BlockDriverState *bs_top, 75 bdrv_replace_node(BlockDriverState *from, BlockDriverState *to, Error **errp); 77 int bdrv_replace_child_bs(BdrvChild *child, BlockDriverState *new_bs, 79 BlockDriverState *bdrv_insert_node(BlockDriverState *bs, QDict *node_options, 81 int bdrv_drop_filter(BlockDriverState *bs, Error **errp); 85 BlockDriverState *parent, const BdrvChildClass *child_class, 90 BlockDriverState *parent, const BdrvChildClass *child_class, 95 BlockDriverState *parent, Error **errp); 97 BlockDriverState * no_coroutine_fn [all …]
|
H A D | block-io.h | 80 int64_t coroutine_fn GRAPH_RDLOCK bdrv_co_nb_sectors(BlockDriverState *bs); 81 int64_t coroutine_mixed_fn bdrv_nb_sectors(BlockDriverState *bs); 83 int64_t coroutine_fn GRAPH_RDLOCK bdrv_co_getlength(BlockDriverState *bs); 84 int64_t co_wrapper_mixed_bdrv_rdlock bdrv_getlength(BlockDriverState *bs); 87 bdrv_co_get_allocated_file_size(BlockDriverState *bs); 90 bdrv_get_allocated_file_size(BlockDriverState *bs); 93 BlockDriverState *in_bs, Error **errp); 96 bdrv_co_delete_file(BlockDriverState *bs, Error **errp); 99 bdrv_co_delete_file_noerr(BlockDriverState *bs); 107 bdrv_co_ioctl(BlockDriverState *bs, int req, void *buf); [all …]
|
H A D | block_int-common.h | 77 BlockDriverState *bs; 213 BlockDriverState *bs, Error **errp); 218 void GRAPH_RDLOCK_PTR (*bdrv_amend_clean)(BlockDriverState *bs); 226 BlockDriverState *bs, BlockDriverState *to_replace); 249 BlockDriverState *bs, QDict *options, int flags, Error **errp); 251 void (*bdrv_close)(BlockDriverState *bs); 260 BlockDriverState *bs, QemuOpts *opts, 264 int GRAPH_RDLOCK_PTR (*bdrv_make_empty)(BlockDriverState *bs); 270 void GRAPH_RDLOCK_PTR (*bdrv_refresh_filename)(BlockDriverState *bs); 294 BlockDriverState *bs, QDict *target, bool backing_overridden); [all …]
|
H A D | block_int-io.h | 41 BlockDriverState *bs, bool want_zero, int64_t offset, int64_t bytes, 42 int64_t *pnum, int64_t *map, BlockDriverState **file); 43 int coroutine_fn GRAPH_RDLOCK bdrv_co_pdiscard_snapshot(BlockDriverState *bs, 82 BdrvTrackedRequest *coroutine_fn bdrv_co_get_self_request(BlockDriverState *bs); 100 void bdrv_wakeup(BlockDriverState *bs); 102 const char * GRAPH_RDLOCK bdrv_get_parent_name(const BlockDriverState *bs); 106 void bdrv_set_dirty(BlockDriverState *bs, int64_t offset, int64_t bytes); 113 void bdrv_inc_in_flight(BlockDriverState *bs); 114 void bdrv_dec_in_flight(BlockDriverState *bs); 128 bdrv_co_refresh_total_sectors(BlockDriverState *bs, int64_t hint); [all …]
|
H A D | block_int-global-state.h | 67 void stream_start(const char *job_id, BlockDriverState *bs, 68 BlockDriverState *base, const char *backing_file_str, 70 BlockDriverState *bottom, 96 void commit_start(const char *job_id, BlockDriverState *bs, 97 BlockDriverState *base, BlockDriverState *top, 121 BlockJob *commit_active_start(const char *job_id, BlockDriverState *bs, 122 BlockDriverState *base, int creation_flags, 157 void mirror_start(const char *job_id, BlockDriverState *bs, 158 BlockDriverState *target, const char *replaces, 191 BlockJob *backup_job_create(const char *job_id, BlockDriverState *bs, [all …]
|
H A D | snapshot.h | 56 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 D | dirty-bitmap.h | 20 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); 40 bdrv_co_remove_persistent_dirty_bitmap(BlockDriverState *bs, const char *name, 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); [all …]
|
/openbmc/qemu/block/ |
H A D | qcow2.h | 307 BlockDriverState *bs; 644 static inline bool GRAPH_RDLOCK has_data_file(BlockDriverState *bs) in has_data_file() 650 static inline bool data_file_is_raw(BlockDriverState *bs) in data_file_is_raw() 713 qcow2_get_cluster_type(BlockDriverState *bs, uint64_t l2_entry) in qcow2_get_cluster_type() 747 QCow2SubclusterType qcow2_get_subcluster_type(BlockDriverState *bs, in qcow2_get_subcluster_type() 837 int GRAPH_RDLOCK qcow2_mark_dirty(BlockDriverState *bs); 838 int GRAPH_RDLOCK qcow2_mark_corrupt(BlockDriverState *bs); 839 int GRAPH_RDLOCK qcow2_update_header(BlockDriverState *bs); 842 qcow2_signal_corruption(BlockDriverState *bs, bool fatal, int64_t offset, 846 int qcow2_validate_table(BlockDriverState *bs, uint64_t offset, [all …]
|
H A D | coroutines.h | 41 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 D | snapshot.c | 53 int bdrv_snapshot_find(BlockDriverState *bs, QEMUSnapshotInfo *sn_info, in bdrv_snapshot_find() 98 bool bdrv_snapshot_find_by_id_and_name(BlockDriverState *bs, in bdrv_snapshot_find_by_id_and_name() 158 bdrv_snapshot_fallback_child(BlockDriverState *bs) in bdrv_snapshot_fallback_child() 188 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() 206 BlockDriverState *fallback_bs = bdrv_snapshot_fallback(bs); in bdrv_can_snapshot() 216 int bdrv_snapshot_create(BlockDriverState *bs, in bdrv_snapshot_create() 220 BlockDriverState *fallback_bs = bdrv_snapshot_fallback(bs); in bdrv_snapshot_create() 236 int bdrv_snapshot_goto(BlockDriverState *bs, in bdrv_snapshot_goto() [all …]
|
H A D | copy-on-read.c | 33 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() 128 static int64_t coroutine_fn GRAPH_RDLOCK cor_co_getlength(BlockDriverState *bs) in cor_co_getlength() 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() 212 cor_co_pwritev_compressed(BlockDriverState *bs, int64_t offset, int64_t bytes, in cor_co_pwritev_compressed() [all …]
|
H A D | snapshot-access.c | 30 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 D | throttle.c | 76 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() 140 throttle_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes, in throttle_co_pwrite_zeroes() 150 throttle_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in throttle_co_pdiscard() 159 throttle_co_pwritev_compressed(BlockDriverState *bs, int64_t offset, in throttle_co_pwritev_compressed() 166 static int coroutine_fn GRAPH_RDLOCK throttle_co_flush(BlockDriverState *bs) in throttle_co_flush() 171 static void throttle_detach_aio_context(BlockDriverState *bs) in throttle_detach_aio_context() [all …]
|
H A D | raw-format.c | 99 raw_apply_options(BlockDriverState *bs, BDRVRawState *s, uint64_t offset, in raw_apply_options() 189 static inline int raw_adjust_offset(BlockDriverState *bs, int64_t *offset, in raw_adjust_offset() 210 raw_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in raw_co_preadv() 225 raw_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in raw_co_pwritev() 286 raw_co_block_status(BlockDriverState *bs, bool want_zero, int64_t offset, in raw_co_block_status() 288 BlockDriverState **file) in raw_co_block_status() 298 raw_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes, in raw_co_pwrite_zeroes() 311 raw_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in raw_co_pdiscard() 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() [all …]
|
H A D | stream.c | 36 BlockDriverState *base_overlay; /* COW overlay (stream from this) */ 37 BlockDriverState *above_base; /* Node directly above the base */ 38 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 = NULL; in stream_run() 254 void stream_start(const char *job_id, BlockDriverState *bs, in stream_start() [all …]
|
H A D | null.c | 80 static int null_open(BlockDriverState *bs, QDict *options, int flags, in null_open() 103 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() [all …]
|
H A D | blkreplay.c | 24 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 D | filter-compress.c | 31 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 D | copy-before-write.c | 84 cbw_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in cbw_co_preadv() 92 BlockDriverState *bs = opaque; in block_copy_cb() 106 static coroutine_fn int cbw_do_copy_before_write(BlockDriverState *bs, in cbw_do_copy_before_write() 155 cbw_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in cbw_co_pdiscard() 166 cbw_co_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes, in cbw_co_pwrite_zeroes() 178 int cbw_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in cbw_co_pwritev() 189 static int coroutine_fn GRAPH_RDLOCK cbw_co_flush(BlockDriverState *bs) in cbw_co_flush() 209 cbw_snapshot_read_lock(BlockDriverState *bs, int64_t offset, int64_t bytes, in cbw_snapshot_read_lock() 246 cbw_snapshot_read_unlock(BlockDriverState *bs, BlockReq *req) in cbw_snapshot_read_unlock() 262 cbw_co_preadv_snapshot(BlockDriverState *bs, int64_t offset, int64_t bytes, in cbw_co_preadv_snapshot() [all …]
|
H A D | io.c | 46 bdrv_parent_cb_resize(BlockDriverState *bs); 48 static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs, 52 bdrv_parent_drained_begin(BlockDriverState *bs, BdrvChild *ignore) in bdrv_parent_drained_begin() 79 bdrv_parent_drained_end(BlockDriverState *bs, BdrvChild *ignore) in bdrv_parent_drained_end() 104 bdrv_parent_drained_poll(BlockDriverState *bs, BdrvChild *ignore, in bdrv_parent_drained_poll() 152 BlockDriverState *bs; 169 void bdrv_refresh_limits(BlockDriverState *bs, Transaction *tran, Error **errp) in bdrv_refresh_limits() 238 void bdrv_enable_copy_on_read(BlockDriverState *bs) in bdrv_enable_copy_on_read() 244 void bdrv_disable_copy_on_read(BlockDriverState *bs) in bdrv_disable_copy_on_read() 253 BlockDriverState *bs; [all …]
|
H A D | commit.c | 36 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() 221 bdrv_commit_top_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in bdrv_commit_top_preadv() 227 static GRAPH_RDLOCK void bdrv_commit_top_refresh_filename(BlockDriverState *bs) in bdrv_commit_top_refresh_filename() 233 static void bdrv_commit_top_child_perm(BlockDriverState *bs, BdrvChild *c, in bdrv_commit_top_child_perm() 255 void commit_start(const char *job_id, BlockDriverState *bs, in commit_start() 256 BlockDriverState *base, BlockDriverState *top, in commit_start() [all …]
|
H A D | preallocate.c | 83 static int preallocate_drop_resize(BlockDriverState *bs, Error **errp); 108 BlockDriverState *child_bs, Error **errp) in preallocate_absorb_opts() 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() 278 preallocate_co_preadv_part(BlockDriverState *bs, int64_t offset, int64_t bytes, in preallocate_co_preadv_part() 287 preallocate_co_pdiscard(BlockDriverState *bs, int64_t offset, int64_t bytes) in preallocate_co_pdiscard() 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() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-bdrv-graph-mod.c | 34 static void no_perm_default_perms(BlockDriverState *bs, BdrvChild *c, in no_perm_default_perms() 50 static void exclusive_write_perms(BlockDriverState *bs, BdrvChild *c, in exclusive_write_perms() 67 static BlockDriverState *no_perm_node(const char *name) in no_perm_node() 72 static BlockDriverState *pass_through_node(const char *name) in pass_through_node() 78 static BlockDriverState *exclusive_writer_node(const char *name) in exclusive_writer_node() 135 BlockDriverState *bs = no_perm_node("node"); in test_update_perm_tree() 136 BlockDriverState *filter = pass_through_node("filter"); 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() 201 BlockDriverState *target = no_perm_node("target"); in test_should_update_child() [all …]
|
/openbmc/qemu/ |
H A D | block.c | 72 static QTAILQ_HEAD(, BlockDriverState) graph_bdrv_states = 76 static QTAILQ_HEAD(, BlockDriverState) all_bdrv_states = 83 static BlockDriverState *bdrv_open_inherit(const char *filename, 86 BlockDriverState *parent, 92 static bool bdrv_recurse_has_child(BlockDriverState *bs, 93 BlockDriverState *child); 96 bdrv_replace_child_noperm(BdrvChild *child, BlockDriverState *new_bs); 107 static bool bdrv_backing_overridden(BlockDriverState *bs); 109 static bool bdrv_change_aio_context(BlockDriverState *bs, AioContext *ctx, 136 size_t bdrv_opt_mem_align(BlockDriverState *bs) in bdrv_opt_mem_align() [all …]
|
/openbmc/qemu/block/monitor/ |
H A D | bitmap-qmp-cmds.c | 55 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()
|