Received: from eggs.gnu.org ([2001:4830:134:3::10]:60246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIcit-0006M3-1W for qemu-devel@nongnu.org; Thu, 30 Jun 2016 10:13:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIcir-0003KU-2j for qemu-devel@nongnu.org; Thu, 30 Jun 2016 10:13:41 -0400 From: Kevin Wolf Date: Thu, 30 Jun 2016 16:13:21 +0200 Message-Id: <1467296007-12252-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v2 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. 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 | 22 ++++++++-- hw/core/qdev-properties.c | 13 ++++++ hw/ide/qdev.c | 2 + hw/scsi/scsi-disk.c | 2 + hw/usb/dev-storage.c | 1 + include/hw/block/block.h | 13 +++++- include/hw/qdev-properties.h | 4 ++ qapi/block-core.json | 22 ++-------- tests/qemu-iotests/157 | 92 ++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/157.out | 22 ++++++++++ tests/qemu-iotests/group | 1 + 17 files changed, 208 insertions(+), 25 deletions(-) create mode 100755 tests/qemu-iotests/157 create mode 100644 tests/qemu-iotests/157.out -- 1.8.3.1