Home
last modified time | relevance | path

Searched refs:BlockDriverState (Results 51 – 75 of 122) sorted by relevance

12345

/qemu/block/
H A Dqcow2-threads.c42 qcow2_co_process(BlockDriverState *bs, ThreadPoolFunc *func, void *arg) in qcow2_co_process()
339 qcow2_co_do_compress(BlockDriverState *bs, void *dest, size_t dest_size, in qcow2_co_do_compress()
368 qcow2_co_compress(BlockDriverState *bs, void *dest, size_t dest_size, in qcow2_co_compress()
405 qcow2_co_decompress(BlockDriverState *bs, void *dest, size_t dest_size, in qcow2_co_decompress()
457 qcow2_co_encdec(BlockDriverState *bs, uint64_t host_offset, in qcow2_co_encdec()
508 qcow2_co_encrypt(BlockDriverState *bs, uint64_t host_offset, in qcow2_co_encrypt()
522 qcow2_co_decrypt(BlockDriverState *bs, uint64_t host_offset, in qcow2_co_decrypt()
H A Dqed.c350 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;
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()
770 BlockDriverState *bs = NULL; in bdrv_qed_co_create_opts()
837 BlockDriverState **file) in bdrv_qed_co_block_status()
[all …]
H A Dqcow2-refcount.c39 static int update_refcount(BlockDriverState *bs,
101 int coroutine_fn qcow2_refcount_init(BlockDriverState *bs) in qcow2_refcount_init()
136 void qcow2_refcount_close(BlockDriverState *bs) in qcow2_refcount_close()
736 void qcow2_process_discards(BlockDriverState *bs, int ret) in qcow2_process_discards()
757 static void update_refcount_discard(BlockDriverState *bs, in update_refcount_discard()
943 int qcow2_update_cluster_refcount(BlockDriverState *bs, in qcow2_update_cluster_refcount()
1144 void qcow2_free_clusters(BlockDriverState *bs, in qcow2_free_clusters()
1208 int qcow2_write_caches(BlockDriverState *bs) in qcow2_write_caches()
1228 int qcow2_flush_caches(BlockDriverState *bs) in qcow2_flush_caches()
1244 int qcow2_update_snapshot_refcount(BlockDriverState *bs, in qcow2_update_snapshot_refcount()
[all …]
H A Dqcow2-cluster.c35 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 …]
H A Dqcow2-snapshot.c34 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 …]
H A Dvhdx-log.c59 vhdx_log_peek_hdr(BlockDriverState *bs, VHDXLogEntries *log, in vhdx_log_peek_hdr()
111 static void GRAPH_RDLOCK vhdx_log_reset(BlockDriverState *bs, BDRVVHDXState *s) in vhdx_log_reset()
132 vhdx_log_read_sectors(BlockDriverState *bs, VHDXLogEntries *log, in vhdx_log_read_sectors()
175 vhdx_log_write_sectors(BlockDriverState *bs, VHDXLogEntries *log, in vhdx_log_write_sectors()
339 vhdx_log_read_desc(BlockDriverState *bs, BDRVVHDXState *s, VHDXLogEntries *log, in vhdx_log_read_desc()
418 vhdx_log_flush_desc(BlockDriverState *bs, VHDXLogDescriptor *desc, in vhdx_log_flush_desc()
491 vhdx_log_flush(BlockDriverState *bs, BDRVVHDXState *s, VHDXLogSequence *logs) in vhdx_log_flush()
591 vhdx_validate_log_entry(BlockDriverState *bs, BDRVVHDXState *s, in vhdx_validate_log_entry()
754 int vhdx_parse_log(BlockDriverState *bs, BDRVVHDXState *s, bool *flushed, in vhdx_parse_log()
861 vhdx_log_write(BlockDriverState *bs, BDRVVHDXState *s, in vhdx_log_write()
[all …]
H A Dnbd.c95 BlockDriverState *bs;
113 static void nbd_clear_bdrvstate(BlockDriverState *bs) in nbd_clear_bdrvstate()
218 static void nbd_teardown_connection(BlockDriverState *bs) in nbd_teardown_connection()
278 nbd_handle_updated_info(BlockDriverState *bs, Error **errp) in nbd_handle_updated_info()
1489 BlockDriverState *bs = opaque; in nbd_yank()
1497 static void nbd_client_close(BlockDriverState *bs) in nbd_client_close()
2002 static void nbd_close(BlockDriverState *bs) in nbd_close()
2042 static void nbd_refresh_filename(BlockDriverState *bs) in nbd_refresh_filename()
2099 static void nbd_cancel_in_flight(BlockDriverState *bs) in nbd_cancel_in_flight()
2114 static void nbd_attach_aio_context(BlockDriverState *bs, in nbd_attach_aio_context()
[all …]
H A Drbd.c105 BlockDriverState *bs;
1225 static void qemu_rbd_close(BlockDriverState *bs) in qemu_rbd_close()
1237 static int qemu_rbd_resize(BlockDriverState *bs, uint64_t size) in qemu_rbd_resize()
1276 static int coroutine_fn qemu_rbd_start_co(BlockDriverState *bs, in qemu_rbd_start_co()
1382 static int coroutine_fn qemu_rbd_co_flush(BlockDriverState *bs) in qemu_rbd_co_flush()
1387 static int coroutine_fn qemu_rbd_co_pdiscard(BlockDriverState *bs, in qemu_rbd_co_pdiscard()
1404 qemu_rbd_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) in qemu_rbd_co_get_info()
1641 static int qemu_rbd_snap_create(BlockDriverState *bs, in qemu_rbd_snap_create()
1673 static int qemu_rbd_snap_remove(BlockDriverState *bs, in qemu_rbd_snap_remove()
1702 static int qemu_rbd_snap_rollback(BlockDriverState *bs, in qemu_rbd_snap_rollback()
[all …]
H A Dssh.c994 static void ssh_close(BlockDriverState *bs) in ssh_close()
1001 static int ssh_has_zero_init(BlockDriverState *bs) in ssh_has_zero_init()
1015 BlockDriverState *bs;
1022 BlockDriverState *bs = restart->bs; in restart_coroutine()
1062 static coroutine_fn int ssh_read(BDRVSSHState *s, BlockDriverState *bs, in ssh_read()
1123 static coroutine_fn int ssh_co_readv(BlockDriverState *bs, in ssh_co_readv()
1197 static coroutine_fn int ssh_co_writev(BlockDriverState *bs, in ssh_co_writev()
1249 static coroutine_fn int ssh_co_flush(BlockDriverState *bs) in ssh_co_flush()
1261 static int64_t coroutine_fn ssh_co_getlength(BlockDriverState *bs) in ssh_co_getlength()
1297 static void ssh_refresh_filename(BlockDriverState *bs) in ssh_refresh_filename()
[all …]
H A Dcloop.c63 static int cloop_open(BlockDriverState *bs, QDict *options, int flags, in cloop_open()
216 static void cloop_refresh_limits(BlockDriverState *bs, Error **errp) in cloop_refresh_limits()
222 cloop_read_block(BlockDriverState *bs, int block_num) in cloop_read_block()
255 cloop_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in cloop_co_preadv()
289 static void cloop_close(BlockDriverState *bs) in cloop_close()
H A Dbochs.c100 static int bochs_open(BlockDriverState *bs, QDict *options, int flags, in bochs_open()
207 static void bochs_refresh_limits(BlockDriverState *bs, Error **errp) in bochs_refresh_limits()
213 seek_to_sector(BlockDriverState *bs, int64_t sector_num) in seek_to_sector()
248 bochs_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in bochs_co_preadv()
296 static void bochs_close(BlockDriverState *bs) in bochs_close()
H A Ddmg.c74 read_uint64(BlockDriverState *bs, int64_t offset, uint64_t *result) in read_uint64()
89 read_uint32(BlockDriverState *bs, int64_t offset, uint32_t *result) in read_uint32()
151 BlockDriverState *file_bs = file->bs; in dmg_find_koly_offset()
327 dmg_read_resource_fork(BlockDriverState *bs, DmgHeaderState *ds, in dmg_read_resource_fork()
395 dmg_read_plist_xml(BlockDriverState *bs, DmgHeaderState *ds, in dmg_read_plist_xml()
449 static int dmg_open(BlockDriverState *bs, QDict *options, int flags, in dmg_open()
593 static void dmg_refresh_limits(BlockDriverState *bs, Error **errp) in dmg_refresh_limits()
631 dmg_read_chunk(BlockDriverState *bs, uint64_t sector_num) in dmg_read_chunk()
729 dmg_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in dmg_co_preadv()
769 static void dmg_close(BlockDriverState *bs) in dmg_close()
H A Dqcow.c96 decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset);
110 static int qcow_open(BlockDriverState *bs, QDict *options, int flags, in qcow_open()
533 qcow_co_block_status(BlockDriverState *bs, bool want_zero, in qcow_co_block_status()
535 int64_t *map, BlockDriverState **file) in qcow_co_block_status()
596 decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset) in decompress_cluster()
619 static void qcow_refresh_limits(BlockDriverState *bs, Error **errp) in qcow_refresh_limits()
796 static void qcow_close(BlockDriverState *bs) in qcow_close()
819 BlockDriverState *bs; in qcow_co_create()
936 BlockDriverState *bs = NULL; in qcow_co_create_opts()
1030 static int GRAPH_RDLOCK qcow_make_empty(BlockDriverState *bs) in qcow_make_empty()
[all …]
H A Dvpc.c200 static void vpc_parse_options(BlockDriverState *bs, QemuOpts *opts, in vpc_parse_options()
219 static int vpc_open(BlockDriverState *bs, QDict *options, int flags, in vpc_open()
557 alloc_block(BlockDriverState *bs, int64_t offset) in alloc_block()
604 vpc_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) in vpc_co_get_info()
616 vpc_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in vpc_co_preadv()
724 vpc_co_block_status(BlockDriverState *bs, bool want_zero, in vpc_co_block_status()
727 BlockDriverState **file) in vpc_co_block_status()
977 BlockDriverState *bs = NULL; in vpc_co_create()
1099 BlockDriverState *bs = NULL; in vpc_co_create_opts()
1173 static int GRAPH_RDLOCK vpc_has_zero_init(BlockDriverState *bs) in vpc_has_zero_init()
[all …]
H A Dvmdk.c269 static void vmdk_free_extents(BlockDriverState *bs) in vmdk_free_extents()
291 static void vmdk_free_last_extent(BlockDriverState *bs) in vmdk_free_last_extent()
347 vmdk_write_cid(BlockDriverState *bs, uint32_t cid) in vmdk_write_cid()
402 BlockDriverState *p_bs = bs->backing->bs; in vmdk_is_cid_valid()
529 static int vmdk_add_extent(BlockDriverState *bs, in vmdk_add_extent()
1453 get_whole_cluster(BlockDriverState *bs, VmdkExtent *extent, in get_whole_cluster()
1781 vmdk_co_block_status(BlockDriverState *bs, bool want_zero, in vmdk_co_block_status()
2664 BlockDriverState *bs = NULL; in vmdk_co_create_opts_cb()
2814 BlockDriverState *bs; in vmdk_co_create_cb()
2885 static void vmdk_close(BlockDriverState *bs) in vmdk_close()
[all …]
H A Dbackup.c34 BlockDriverState *cbw;
35 BlockDriverState *source_bs;
36 BlockDriverState *target_bs;
355 BlockJob *backup_job_create(const char *job_id, BlockDriverState *bs, in backup_job_create()
356 BlockDriverState *target, int64_t speed, in backup_job_create()
371 BlockDriverState *cbw = NULL; in backup_job_create()
H A Dgluster.c796 static int qemu_gluster_open(BlockDriverState *bs, QDict *options, in qemu_gluster_open()
889 static void qemu_gluster_refresh_limits(BlockDriverState *bs, Error **errp) in qemu_gluster_refresh_limits()
1179 static coroutine_fn int qemu_gluster_co_rw(BlockDriverState *bs, in qemu_gluster_co_rw()
1210 static coroutine_fn int qemu_gluster_co_truncate(BlockDriverState *bs, in qemu_gluster_co_truncate()
1221 static coroutine_fn int qemu_gluster_co_readv(BlockDriverState *bs, in qemu_gluster_co_readv()
1229 static coroutine_fn int qemu_gluster_co_writev(BlockDriverState *bs, in qemu_gluster_co_writev()
1238 static void qemu_gluster_close(BlockDriverState *bs) in qemu_gluster_close()
1295 static coroutine_fn int qemu_gluster_co_pdiscard(BlockDriverState *bs, in qemu_gluster_co_pdiscard()
1333 qemu_gluster_co_get_allocated_file_size(BlockDriverState *bs) in qemu_gluster_co_get_allocated_file_size()
1359 static int find_allocation(BlockDriverState *bs, off_t start, in find_allocation()
[all …]
H A Dvdi.c331 vdi_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) in vdi_co_get_info()
342 static int vdi_make_empty(BlockDriverState *bs) in vdi_make_empty()
372 static int vdi_open(BlockDriverState *bs, QDict *options, int flags, in vdi_open()
524 vdi_co_block_status(BlockDriverState *bs, bool want_zero, int64_t offset, in vdi_co_block_status()
526 BlockDriverState **file) in vdi_co_block_status()
549 vdi_co_preadv(BlockDriverState *bs, int64_t offset, int64_t bytes, in vdi_co_preadv()
605 vdi_co_pwritev(BlockDriverState *bs, int64_t offset, int64_t bytes, in vdi_co_pwritev()
751 BlockDriverState *bs_file = NULL; in vdi_co_do_create()
909 BlockDriverState *bs_file = NULL; in vdi_co_create_opts()
984 static void vdi_close(BlockDriverState *bs) in vdi_close()
[all …]
H A Dvhdx.c314 BlockDriverState *bs_file = file->bs; in vhdx_write_header()
357 vhdx_update_header(BlockDriverState *bs, BDRVVHDXState *s, in vhdx_update_header()
640 vhdx_parse_metadata(BlockDriverState *bs, BDRVVHDXState *s) in vhdx_parse_metadata()
892 vhdx_check_bat_entries(BlockDriverState *bs, int *errcnt) in vhdx_check_bat_entries()
981 static void vhdx_close(BlockDriverState *bs) in vhdx_close()
1171 vhdx_co_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) in vhdx_co_get_info()
1260 vhdx_allocate_block(BlockDriverState *bs, BDRVVHDXState *s, in vhdx_allocate_block()
1520 BlockDriverState *bs = blk_bs(blk); in vhdx_create_new_headers()
1916 BlockDriverState *bs = NULL; in vhdx_co_create()
2080 BlockDriverState *bs = NULL; in vhdx_co_create_opts()
[all …]
H A Dparallels-ext.c63 parallels_load_bitmap_data(BlockDriverState *bs, const uint64_t *l1_table, in parallels_load_bitmap_data()
123 parallels_load_bitmap(BlockDriverState *bs, uint8_t *data, size_t data_size, in parallels_load_bitmap()
185 parallels_parse_format_extension(BlockDriverState *bs, uint8_t *ext_cluster, in parallels_parse_format_extension()
281 int parallels_read_format_extension(BlockDriverState *bs, in parallels_read_format_extension()
/qemu/tests/unit/
H A Dtest-block-iothread.c35 static int coroutine_fn bdrv_test_co_preadv(BlockDriverState *bs, in bdrv_test_co_preadv()
43 static int coroutine_fn bdrv_test_co_pwritev(BlockDriverState *bs, in bdrv_test_co_pwritev()
51 static int coroutine_fn bdrv_test_co_pdiscard(BlockDriverState *bs, in bdrv_test_co_pdiscard()
358 BlockDriverState *bs = blk_bs(blk); in test_sync_op_blk_flush()
471 BlockDriverState *bs; in test_sync_op()
554 BlockDriverState *bs; in test_attach_blockjob()
618 BlockDriverState *bs_a, *bs_b, *bs_verify; in test_propagate_basic()
682 BlockDriverState *bs_a, *bs_b, *bs_c, *bs_verify; in test_propagate_diamond()
746 BlockDriverState *src, *target, *filter; in test_propagate_mirror()
818 BlockDriverState *bs, *filter; in test_attach_second_node()
[all …]
H A Dtest-write-threshold.c17 BlockDriverState bs; in test_threshold_not_trigger()
30 BlockDriverState bs; in test_threshold_trigger()
/qemu/stubs/
H A Dbdrv-next-monitor-owned.c4 BlockDriverState *bdrv_next_monitor_owned(BlockDriverState *bs) in bdrv_next_monitor_owned()
/qemu/migration/
H A Dchannel-block.h41 BlockDriverState *bs;
57 qio_channel_block_new(BlockDriverState *bs);
/qemu/include/block/
H A Dblockjob.h142 block_job_add_bdrv(BlockJob *job, const char *name, BlockDriverState *bs,
161 bool block_job_has_bdrv(BlockJob *job, BlockDriverState *bs);

12345