Received: from eggs.gnu.org ([2001:4830:134:3::10]:46798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKo4x-0002wc-QQ for qemu-devel@nongnu.org; Wed, 06 Jul 2016 10:45:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKo4q-000809-PU for qemu-devel@nongnu.org; Wed, 06 Jul 2016 10:45:30 -0400 From: Kevin Wolf Date: Wed, 6 Jul 2016 16:45:03 +0200 Message-Id: <1467816309-16657-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/6] block: Move BB options from blockdev-add to qdev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, eblake@redhat.com, qemu-devel@nongnu.org This series adds some device level options (write-cache, werror, rerror) to qdev that used to be specified with -drive and made their way into blockdev-add. They are at the same time removed from blockdev-add, which is going to be changed in a later patch series so that it only creates block nodes without a BlockBackend. The -device drive=... option is also changed to allow specifying a node-name rather than a BlockBackend name. In this case, an anonymous BlockBackend is created internally. v3: - Fix usb-storage to work with node names as well [Max] - Fix initialisation order in virtio-blk so that the qdev property really takes precedence (s->original_wce must only be initialised after applying the properties) [Max] - Made the test case use virtio-blk and fixed up a few things [Max] Kevin Wolf (6): block/qdev: Allow node name for drive properties block/qdev: Allow configuring WCE with qdev properties commit: Fix use of error handling policy block/qdev: Allow configuring rerror/werror with qdev properties qemu-iotests: Test setting WCE with qdev block: Remove BB options from blockdev-add block/block-backend.c | 1 + block/commit.c | 6 +-- blockjob.c | 1 + hw/block/block.c | 28 +++++++++++++ hw/block/nvme.c | 1 + hw/block/virtio-blk.c | 2 + hw/core/qdev-properties-system.c | 37 ++++++++++++++--- hw/core/qdev-properties.c | 13 ++++++ hw/ide/qdev.c | 2 + hw/scsi/scsi-disk.c | 2 + hw/usb/dev-storage.c | 6 ++- include/hw/block/block.h | 13 +++++- include/hw/qdev-properties.h | 4 ++ qapi/block-core.json | 22 ++-------- tests/qemu-iotests/157 | 88 ++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/157.out | 22 ++++++++++ tests/qemu-iotests/group | 1 + 17 files changed, 221 insertions(+), 28 deletions(-) create mode 100755 tests/qemu-iotests/157 create mode 100644 tests/qemu-iotests/157.out -- 1.8.3.1