I'm working on cleanly separating block device host and guest parts. I'd like to route all this work through Kevin's block tree. This is still just preliminaries.
This patch series is based available at git://repo.or.cz/qemu/armbru.git tag block-fixes-2-v2: this series, based on tag blockdev-base, which the current kevin/block There will be at least one more round of cleanup & fixes before blockdev_add proper. I intend to start with a minimal QMP-only version, then add features. v2: rebased, better error messages (new 07/13 and 08/13) Markus Armbruster (13): blockdev: Clean up how readonly persists across virtual media change block migration: Fix test for read-only drive raw-posix: Fix test for host CD-ROM fdc: Reject unimplemented error actions qdev: Don't hw_error() in qdev_init_nofail() scsi: Reject unimplemented error actions error: New qemu_opts_loc_restore() scsi: Error locations for -drive if=scsi device initialization ide: Improve error messages ide: Replace IDEState members is_cdrom, is_cf by drive_kind ide: Make ide_init_drive() return success ide: Reject readonly drives unless CD-ROM ide: Reject invalid CHS geometry block-migration.c | 2 +- block/raw-posix.c | 17 ++++-------- blockdev.c | 2 +- hw/fdc.c | 22 +++++++++++---- hw/ide/core.c | 70 +++++++++++++++++++++++++++++++++----------------- hw/ide/internal.h | 9 +++--- hw/ide/macio.c | 2 +- hw/ide/microdrive.c | 2 +- hw/ide/qdev.c | 13 ++++++--- hw/qdev.c | 6 +++- hw/scsi-bus.c | 4 +++ hw/scsi-disk.c | 5 +++ hw/scsi-generic.c | 9 ++++++ qemu-option.c | 5 +++ qemu-option.h | 1 + 15 files changed, 113 insertions(+), 56 deletions(-)