| /qemu/block/ |
| 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() 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() local 220 static void throttle_drain_begin(BlockDriverState *bs) in throttle_drain_begin() [all …]
|
| 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()
|
| A D | snapshot.c | 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() local 548 BlockDriverState *bs = iterbdrvs->data; in bdrv_all_can_snapshot() local 583 BlockDriverState *bs = iterbdrvs->data; in bdrv_all_delete_snapshot() local 627 BlockDriverState *bs = iterbdrvs->data; in bdrv_all_goto_snapshot() local [all …]
|
| A D | copy-on-read.c | 39 cor_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) 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() 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 …]
|
| A D | raw-format.c | 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() 591 raw_co_copy_range_to(BlockDriverState *bs, in raw_co_copy_range_to() [all …]
|
| A D | io.c | 152 BlockDriverState *bs; member 253 BlockDriverState *bs; member 294 BlockDriverState *bs = data->bs; in bdrv_co_drain_bh_cb() local 431 void bdrv_drain(BlockDriverState *bs) in bdrv_drain() 454 BlockDriverState *bs = NULL; in bdrv_drain_all_poll() local 485 BlockDriverState *bs = NULL; in bdrv_drain_all_begin_nopoll() local 512 BlockDriverState *bs = NULL; in bdrv_drain_all_begin() local 552 BlockDriverState *bs = NULL; in bdrv_drain_all_end() local 787 BlockDriverState *bs = self->bs; in bdrv_wait_serialising_requests() local 904 BlockDriverState *bs = child->bs; in bdrv_make_zero() local [all …]
|
| 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() 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()
|
| 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()
|
| A D | preallocate.c | 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() 558 preallocate_set_perm(BlockDriverState *bs, uint64_t perm, uint64_t shared) in preallocate_set_perm() [all …]
|
| 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() local 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() 178 int cbw_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in cbw_co_pwritev() 246 cbw_snapshot_read_unlock(BlockDriverState *bs, BlockReq *req) in cbw_snapshot_read_unlock() 294 cbw_co_snapshot_block_status(BlockDriverState *bs, in cbw_co_snapshot_block_status() 350 static void GRAPH_RDLOCK cbw_refresh_filename(BlockDriverState *bs) in cbw_refresh_filename() 430 static int cbw_open(BlockDriverState *bs, QDict *options, int flags, in cbw_open() 513 static void cbw_close(BlockDriverState *bs) in cbw_close() [all …]
|
| A D | null.c | 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() 248 static void null_refresh_filename(BlockDriverState *bs) in null_refresh_filename() [all …]
|
| A D | write-threshold.c | 21 uint64_t bdrv_write_threshold_get(const BlockDriverState *bs) in bdrv_write_threshold_get() 26 void bdrv_write_threshold_set(BlockDriverState *bs, uint64_t threshold_bytes) in bdrv_write_threshold_set() 35 BlockDriverState *bs; in qmp_block_set_write_threshold() local 46 void bdrv_write_threshold_check_write(BlockDriverState *bs, int64_t offset, in bdrv_write_threshold_check_write()
|
| A D | blkio.c | 234 BlockDriverState *bs = opaque; in blkio_completion_fd_read() local 279 BlockDriverState *bs = opaque; in blkio_completion_fd_poll() local 299 static void blkio_attach_aio_context(BlockDriverState *bs, in blkio_attach_aio_context() 310 static void blkio_detach_aio_context(BlockDriverState *bs) in blkio_detach_aio_context() 335 static void blkio_submit_io(BlockDriverState *bs) in blkio_submit_io() 360 blkio_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkio_co_preadv() 442 static int coroutine_fn blkio_co_flush(BlockDriverState *bs) in blkio_co_flush() 458 static int coroutine_fn blkio_co_pwrite_zeroes(BlockDriverState *bs, in blkio_co_pwrite_zeroes() 501 blkio_mem_region_from_host(BlockDriverState *bs, in blkio_mem_region_from_host() 919 static void blkio_close(BlockDriverState *bs) in blkio_close() [all …]
|
| A D | replication.c | 139 static void replication_close(BlockDriverState *bs) in replication_close() 183 replication_co_getlength(BlockDriverState *bs) in replication_co_getlength() 311 secondary_do_checkpoint(BlockDriverState *bs, Error **errp) in secondary_do_checkpoint() 401 static void backup_job_cleanup(BlockDriverState *bs) in backup_job_cleanup() 419 BlockDriverState *bs = opaque; in backup_job_completed() local 431 check_top_bs(BlockDriverState *top_bs, BlockDriverState *bs) in check_top_bs() 453 BlockDriverState *bs = rs->opaque; in replication_start() local 612 BlockDriverState *bs = rs->opaque; in replication_do_checkpoint() local 632 BlockDriverState *bs = rs->opaque; in replication_get_error() local 648 BlockDriverState *bs = opaque; in replication_done() local [all …]
|
| A D | qcow2-snapshot.c | 34 static void qcow2_free_single_snapshot(BlockDriverState *bs, int i) in qcow2_free_single_snapshot() 45 void qcow2_free_snapshots(BlockDriverState *bs) in qcow2_free_snapshots() 81 int qcow2_do_read_snapshots(BlockDriverState *bs, bool repair, in qcow2_do_read_snapshots() 271 int qcow2_write_snapshots(BlockDriverState *bs) in qcow2_write_snapshots() 430 int coroutine_fn qcow2_check_read_snapshot_table(BlockDriverState *bs, in qcow2_check_read_snapshot_table() 551 int coroutine_fn qcow2_check_fix_snapshot_table(BlockDriverState *bs, in qcow2_check_fix_snapshot_table() 576 static void find_new_snapshot_id(BlockDriverState *bs, in find_new_snapshot_id() 593 static int find_snapshot_by_id_and_name(BlockDriverState *bs, in find_snapshot_by_id_and_name() 624 static int find_snapshot_by_id_or_name(BlockDriverState *bs, in find_snapshot_by_id_or_name() 909 int qcow2_snapshot_delete(BlockDriverState *bs, in qcow2_snapshot_delete() [all …]
|
| A D | blkverify.c | 28 BlockDriverState *bs; member 112 static int blkverify_open(BlockDriverState *bs, QDict *options, int flags, in blkverify_open() 150 static void blkverify_close(BlockDriverState *bs) in blkverify_close() 161 blkverify_co_getlength(BlockDriverState *bs) in blkverify_co_getlength() 196 blkverify_co_prwv(BlockDriverState *bs, BlkverifyRequest *r, uint64_t offset, in blkverify_co_prwv() 232 blkverify_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkverify_co_preadv() 261 blkverify_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in blkverify_co_pwritev() 268 static int coroutine_fn GRAPH_RDLOCK blkverify_co_flush(BlockDriverState *bs) in blkverify_co_flush() 277 blkverify_recurse_can_replace(BlockDriverState *bs, in blkverify_recurse_can_replace() 291 static void GRAPH_RDLOCK blkverify_refresh_filename(BlockDriverState *bs) in blkverify_refresh_filename() [all …]
|
| A D | parallels.c | 181 static int mark_used(BlockDriverState *bs, unsigned long *bitmap, in mark_used() 243 static void parallels_free_used_bitmap(BlockDriverState *bs) in parallels_free_used_bitmap() 251 allocate_clusters(BlockDriverState *bs, int64_t sector_num, in allocate_clusters() 387 parallels_co_flush_to_os(BlockDriverState *bs) in parallels_co_flush_to_os() 594 static void parallels_check_unclean(BlockDriverState *bs, in parallels_check_unclean() 742 parallels_check_leak(BlockDriverState *bs, BdrvCheckResult *res, in parallels_check_leak() 922 static void parallels_collect_statistics(BlockDriverState *bs, in parallels_collect_statistics() 954 parallels_co_check(BlockDriverState *bs, BdrvCheckResult *res, in parallels_co_check() 999 BlockDriverState *bs; in parallels_co_create() local 1100 BlockDriverState *bs = NULL; in parallels_co_create_opts() local [all …]
|
| A D | qcow2.c | 103 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_read_func() local 126 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_init_func() local 165 BlockDriverState *bs = opaque; in qcow2_crypto_hdr_write_func() local 510 int qcow2_mark_dirty(BlockDriverState *bs) in qcow2_mark_dirty() 575 qcow2_mark_consistent(BlockDriverState *bs) in qcow2_mark_consistent() 840 BlockDriverState *bs = opaque; in cache_clean_timer_cb() local 1922 BlockDriverState *bs; member 2278 BlockDriverState *bs; member 3517 BlockDriverState *bs = NULL; in qcow2_co_create() local 3902 BlockDriverState *bs = NULL; in qcow2_co_create_opts() local [all …]
|
| A D | crypto.c | 66 BlockDriverState *bs = opaque; in block_crypto_read_func() local 89 BlockDriverState *bs = opaque; in block_crypto_write_func() local 169 BlockDriverState *bs = NULL; in block_crypto_co_format_luks_payload() local 308 BlockDriverState *bs, in block_crypto_open_generic() 450 static void block_crypto_close(BlockDriverState *bs) in block_crypto_close() 603 block_crypto_co_getlength(BlockDriverState *bs) in block_crypto_co_getlength() 689 static int block_crypto_open_luks(BlockDriverState *bs, in block_crypto_open_luks() 704 BlockDriverState *bs = NULL; in block_crypto_co_create_luks() local 789 BlockDriverState *bs = NULL; in block_crypto_co_create_opts_luks() local 924 block_crypto_amend_cleanup(BlockDriverState *bs) in block_crypto_amend_cleanup() [all …]
|
| A D | qcow2-cluster.c | 35 int coroutine_fn qcow2_shrink_l1_table(BlockDriverState *bs, in qcow2_shrink_l1_table() 86 int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size, in qcow2_grow_l1_table() 211 l2_load(BlockDriverState *bs, uint64_t offset, in l2_load() 227 int qcow2_write_l1_entry(BlockDriverState *bs, int l1_index) in qcow2_write_l1_entry() 756 get_cluster_table(BlockDriverState *bs, uint64_t offset, in get_cluster_table() 888 perform_cow(BlockDriverState *bs, QCowL2Meta *m) in perform_cow() 1495 handle_copied(BlockDriverState *bs, uint64_t guest_offset, in handle_copied() 1662 handle_alloc(BlockDriverState *bs, uint64_t guest_offset, in handle_alloc() 2041 zero_in_l2_slice(BlockDriverState *bs, uint64_t offset, in zero_in_l2_slice() 2111 zero_l2_subclusters(BlockDriverState *bs, uint64_t offset, in zero_l2_subclusters() [all …]
|
| A D | file-posix.c | 185 static int fd_open(BlockDriverState *bs) in fd_open() 199 BlockDriverState *bs; member 359 static bool raw_needs_alignment(BlockDriverState *bs) in raw_needs_alignment() 2614 static void raw_close(BlockDriverState *bs) in raw_close() 2697 static int64_t raw_getlength(BlockDriverState *bs) in raw_getlength() 2716 static int64_t raw_getlength(BlockDriverState *bs) in raw_getlength() 2741 static int64_t raw_getlength(BlockDriverState *bs) in raw_getlength() 3646 BlockDriverState *bs, int64_t offset, in raw_co_pwrite_zeroes() 3847 raw_co_copy_range_to(BlockDriverState *bs, in raw_co_copy_range_to() 4065 static bool hdev_is_sg(BlockDriverState *bs) in hdev_is_sg() [all …]
|
| A D | qed.c | 350 static void bdrv_qed_detach_aio_context(BlockDriverState *bs) in bdrv_qed_detach_aio_context() 358 static void bdrv_qed_attach_aio_context(BlockDriverState *bs, in bdrv_qed_attach_aio_context() 371 static void bdrv_qed_drain_begin(BlockDriverState *bs) in bdrv_qed_drain_begin() 388 static void bdrv_qed_init_state(BlockDriverState *bs) in bdrv_qed_init_state() 554 BlockDriverState *bs; member 615 static void GRAPH_RDLOCK bdrv_qed_do_close(BlockDriverState *bs) in bdrv_qed_do_close() 634 static void GRAPH_UNLOCKED bdrv_qed_close(BlockDriverState *bs) in bdrv_qed_close() 647 BlockDriverState *bs = NULL; in bdrv_qed_co_create() local 770 BlockDriverState *bs = NULL; in bdrv_qed_co_create_opts() local 1314 BlockDriverState *bs = acb->bs; in qed_aio_read_data() local [all …]
|
| /qemu/ |
| A D | block.c | 413 BlockDriverState *bs; in bdrv_new() local 1744 BlockDriverState *bs; in bdrv_new_open_driver_opts() local 2582 BlockDriverState *bs; in bdrv_do_refresh_perms() local 3304 BlockDriverState *bs; member 3751 BlockDriverState *bs; in bdrv_open_child_common() local 3957 BlockDriverState *bs; in bdrv_open_inherit() local 5058 BlockDriverState *bs; in bdrv_reopen_commit() local 6216 BlockDriverState *bs; in bdrv_find_node() local 6234 BlockDriverState *bs; in bdrv_named_nodes_list() local 6341 BlockDriverState *bs; in bdrv_get_xdbg_block_graph() local [all …]
|
| /qemu/include/block/ |
| A D | block_int-io.h | 141 bdrv_cow_bs(BlockDriverState *bs) in bdrv_cow_bs() 148 bdrv_filter_bs(BlockDriverState *bs) in bdrv_filter_bs() 155 bdrv_filter_or_cow_bs(BlockDriverState *bs) in bdrv_filter_or_cow_bs() 162 bdrv_primary_bs(BlockDriverState *bs) in bdrv_primary_bs()
|
| /qemu/block/monitor/ |
| A D | bitmap-qmp-cmds.c | 58 BlockDriverState *bs; in block_dirty_bitmap_lookup() local 96 BlockDriverState *bs; in qmp_block_dirty_bitmap_add() local 151 BlockDriverState *bs; in block_dirty_bitmap_remove() local 197 BlockDriverState *bs; in qmp_block_dirty_bitmap_clear() local 214 BlockDriverState *bs; in qmp_block_dirty_bitmap_enable() local 232 BlockDriverState *bs; in qmp_block_dirty_bitmap_disable() local 252 BlockDriverState *bs; in block_dirty_bitmap_merge() local
|