The following changes since commit 358c360feb346dff8f911e2d1dbcdd6319393f1d: Anthony Liguori (1): Merge remote branch 'kwolf/for-anthony' into staging
are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Jes Sorensen (4): Cleanup: bdrv_open() no need to shift total_size just to shift back. Cleanup: Be consistent and use BDRV_SECTOR_SIZE instead of 512 Cleanup: raw-posix.c: Be more consistent using BDRV_SECTOR_SIZE instead of 512 Cleanup: virtio-blk.c: Be more consistent using BDRV_SECTOR_SIZE instead Kevin Wolf (3): qemu-io: Fix error messages Fix error message in drive_init block: Assume raw for drives without media Luiz Capitulino (1): block: Fix serial number assignment MORITA Kazutaka (2): close all the block drivers before the qemu process exits block: call the snapshot handlers of the protocol drivers Markus Armbruster (17): blockdev: Belatedly remove MAX_DRIVES blockdev: Belatedly remove driveopts usb: Remove unused usb_device_add() parameter is_hotplug ide: Remove useless IDEDeviceInfo members unit, drive ide: Remove redundant IDEState member conf ide: Split ide_init1() off ide_init2() ide: Change ide_init_drive() to require valid dinfo argument ide: Split non-qdev code off ide_init2() qdev: New qdev_prop_set_string() qdev: Don't leak string property value on hot unplug ide: Turn drive serial into a qdev property ide-drive.serial ide: Fix info qtree for ide-drive.ver scsi: Turn drive serial into a qdev property scsi-disk.serial scsi: Fix info qtree for scsi-disk.ver blockdev: Hide QEMUMachine from drive_init() qdev: Move declaration of qdev_init_bdrv() into qdev.h blockdev: Collect block device code in new blockdev.c Makefile.objs | 2 +- block.c | 91 ++++++--- block.h | 1 + block/raw-posix.c | 20 +- blockdev.c | 600 ++++++++++++++++++++++++++++++++++++++++++++++++++ blockdev.h | 71 ++++++ hw/acpi_piix4.c | 1 + hw/apb_pci.c | 1 + hw/device-hotplug.c | 4 +- hw/fdc.c | 1 - hw/fdc.h | 2 +- hw/ide/cmd646.c | 4 +- hw/ide/core.c | 108 +++++---- hw/ide/internal.h | 13 +- hw/ide/isa.c | 2 +- hw/ide/macio.c | 2 +- hw/ide/microdrive.c | 3 +- hw/ide/mmio.c | 2 +- hw/ide/piix.c | 4 +- hw/ide/qdev.c | 21 ++- hw/lan9118.c | 1 + hw/nand.c | 3 +- hw/omap2.c | 2 + hw/onenand.c | 3 +- hw/parallel.c | 1 + hw/pc.c | 1 + hw/pc_piix.c | 1 + hw/pci-hotplug.c | 2 - hw/pcmcia.h | 2 +- hw/pl181.c | 1 - hw/qdev-properties.c | 12 +- hw/qdev.c | 6 + hw/qdev.h | 6 +- hw/scsi-bus.c | 1 - hw/scsi-disk.c | 26 ++- hw/scsi-generic.c | 1 - hw/serial.c | 1 + hw/ssi-sd.c | 1 - hw/usb-hid.c | 1 + hw/usb-msd.c | 4 +- hw/virtio-blk.c | 9 +- hw/virtio-pci.c | 1 - monitor.c | 104 +--------- qemu-char.c | 1 - qemu-io.c | 4 +- savevm.c | 2 +- sysemu.h | 52 ----- vl.c | 499 +----------------------------------------- 48 files changed, 916 insertions(+), 785 deletions(-) create mode 100644 blockdev.c create mode 100644 blockdev.h