qemu-e2k/hw/block
Markus Armbruster 7e7d56d9e0 block: Connect BlockBackend to BlockDriverState
Convenience function blk_new_with_bs() creates a BlockBackend with its
BlockDriverState.  Callers have to unref both.  The commit after next
will relieve them of the need to unref the BlockDriverState.

Complication: due to the silly way drive_del works, we need a way to
hide a BlockBackend, just like bdrv_make_anon().  To emphasize its
"special" status, give the function a suitably off-putting name:
blk_hide_on_behalf_of_do_drive_del().  Unfortunately, hiding turns the
BlockBackend's name into the empty string.  Can't avoid that without
breaking the blk->bs->device_name equals blk->name invariant.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-10-20 13:41:26 +02:00
..
dataplane dataplane: fix virtio_blk_data_plane_create() op blocker error path 2014-09-11 16:21:46 +02:00
block.c block: Pass errp in blkconf_geometry 2014-08-26 13:20:44 +02:00
cdrom.c
ecc.c savevm: Remove all the unneeded version_minimum_id_old (arm) 2014-05-13 16:09:35 +01:00
fdc.c bootindex: move calling add_boot_device_patch to bootindex setter function 2014-10-15 10:46:01 +02:00
hd-geometry.c
m25p80.c block: m25p80: Support read only bdrvs. 2014-06-21 16:40:14 +08:00
Makefile.objs block: Always compile virtio-blk dataplane 2014-09-22 11:39:51 +01:00
nand.c savevm: Remove all the unneeded version_minimum_id_old (arm) 2014-05-13 16:09:35 +01:00
nvme.c nvma: ide: add bootindex to qom property 2014-10-15 10:27:52 +02:00
nvme.h
onenand.c memory: add parameter errp to memory_region_init_ram 2014-09-09 13:41:43 +02:00
pflash_cfi01.c - Memory: improve error reporting and avoid crashes on hotplug 2014-09-12 16:55:49 +01:00
pflash_cfi02.c memory: add parameter errp to memory_region_init_rom_device 2014-09-09 13:41:44 +02:00
tc58128.c
virtio-blk.c bootindex: move calling add_boot_device_patch to bootindex setter function 2014-10-15 10:46:01 +02:00
xen_blkif.h
xen_disk.c block: Connect BlockBackend to BlockDriverState 2014-10-20 13:41:26 +02:00