qemu-e2k/include
Max Reitz efaa7c4eeb blockdev: Split monitor reference from BB creation
Before this patch, blk_new() automatically assigned a name to the new
BlockBackend and considered it referenced by the monitor. This patch
removes the implicit monitor_add_blk() call from blk_new() (and
consequently the monitor_remove_blk() call from blk_delete(), too) and
thus blk_new() (and related functions) no longer take a BB name
argument.

In fact, there is only a single point where blk_new()/blk_new_open() is
called and the new BB is monitor-owned, and that is in blockdev_init().
Besides thus relieving us from having to invent names for all of the BBs
we use in qemu-img, this fixes a bug where qemu cannot create a new
image if there already is a monitor-owned BB named "image".

If a BB and its BDS tree are created in a single operation, as of this
patch the BDS tree will be created before the BB is given a name
(whereas it was the other way around before). This results in minor
change to the output of iotest 087, whose reference output is amended
accordingly.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2016-03-17 15:47:56 +01:00
..
block block: Remove unused typedef of BlockDriverDirtyHandler 2016-03-14 17:35:05 +01:00
crypto include: Clean up includes 2016-02-23 12:43:05 +00:00
disas
exec exec: Pass RAMBlock pointer to qemu_ram_free 2016-03-07 13:26:37 +01:00
fpu include: Clean up includes 2016-02-23 12:43:05 +00:00
hw machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
io io: implement socket watch for win32 using WSAEventSelect+select 2016-03-10 17:19:07 +00:00
libdecnumber include: Clean up includes 2016-02-23 12:43:05 +00:00
migration migration (ordinary): move bdrv_invalidate_cache_all of of coroutine context 2016-02-26 20:39:50 +05:30
monitor qom: add helpers for UserCreatable object types 2016-02-16 17:12:57 +01:00
net filter: Add 'status' property for filter object 2016-03-08 15:34:18 +08:00
qapi qapi: Drop QERR_UNKNOWN_BLOCK_FORMAT_FEATURE 2016-03-17 15:47:56 +01:00
qemu module: Rename machine_init() to opts_init() 2016-03-16 15:54:23 -03:00
qom typedefs: Add CPUState 2016-03-01 13:27:09 +00:00
standard-headers virtio-balloon: add 'available' counter 2016-03-11 14:55:15 +02:00
sysemu blockdev: Split monitor reference from BB creation 2016-03-17 15:47:56 +01:00
ui input: linux evdev support 2016-03-08 12:20:11 +01:00
elf.h include: Clean up includes 2016-02-23 12:43:05 +00:00
glib-compat.h
qemu-common.h cutils: add avx2 instruction optimization 2016-03-08 16:53:26 +05:30
qemu-io.h
qjson.h
trace-tcg.h
trace.h