qemu-e2k/hw
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
..
9pfs
acpi module: Rename machine_init() to opts_init() 2016-03-16 15:54:23 -03:00
alpha
arm machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
audio
block blockdev: Split monitor reference from BB creation 2016-03-17 15:47:56 +01:00
bt
char bcm2835_aux: add emulation of BCM2835 AUX (aka UART1) block 2016-03-16 17:42:18 +00:00
core
cpu
cris
display bcm2835_fb: add framebuffer device for Raspberry Pi 2016-03-16 17:42:18 +00:00
dma bcm2835_dma: add emulation of Raspberry Pi DMA controller 2016-03-16 17:42:18 +00:00
gpio
i2c i.MX: Add missing descriptions in devices. 2016-03-16 17:42:18 +00:00
i386 kvm: x86: q35: Add support for -machine kernel_irqchip=split for q35 2016-03-15 18:23:33 +01:00
ide
input
intc hw/intc: Add (new) ASPEED VIC device model 2016-03-16 17:42:18 +00:00
ipack
ipmi ipmi: add some local variables in ipmi_sdr_init 2016-03-11 16:59:13 +02:00
isa ich9lpc: fix typo 2016-03-11 16:45:21 +02:00
lm32 machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
m68k
mem pc-dimm: fix error handling in pc_dimm_check_memdev_is_busy() 2016-03-11 14:55:15 +02:00
microblaze
mips machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
misc bcm2835_property: implement framebuffer control/configuration properties 2016-03-16 17:42:18 +00:00
moxie
net i.MX: Add missing descriptions in devices. 2016-03-16 17:42:18 +00:00
nvram fw_cfg: expose control register size in fw_cfg.h 2016-03-08 10:46:30 +01:00
openrisc
pci msi_supported -> msi_nonbroken 2016-03-11 16:45:21 +02:00
pci-bridge pxb: cleanup 2016-03-11 16:59:12 +02:00
pci-host
pcmcia
ppc machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
s390x machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
scsi scsi-bus: Remove tape command from scsi_req_xfer 2016-03-07 17:56:23 +01:00
sd sd: Fix "info qtree" on boards with SD cards 2016-03-16 17:42:19 +00:00
sh4
smbios module: Rename machine_init() to opts_init() 2016-03-16 15:54:23 -03:00
sparc machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
sparc64 machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
ssi
timer hw/timer: Add ASPEED timer device model 2016-03-16 17:42:18 +00:00
tpm
tricore
unicore32
usb
vfio vfio: Eliminate vfio_container_ioctl() 2016-03-16 09:55:11 +11:00
virtio virtio-pci: call pci reset variant when guest requests reset. 2016-03-11 16:45:21 +02:00
watchdog
xen
xenpv
xtensa machine: Use type_init() to register machine classes 2016-03-16 15:34:05 -03:00
Makefile.objs