[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v3 0/6] block: Move BB options from blockdev-add to
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PATCH v3 0/6] block: Move BB options from blockdev-add to qdev |
Date: |
Wed, 6 Jul 2016 16:45:03 +0200 |
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
- [Qemu-block] [PATCH v3 0/6] block: Move BB options from blockdev-add to qdev,
Kevin Wolf <=
- [Qemu-block] [PATCH v3 1/6] block/qdev: Allow node name for drive properties, Kevin Wolf, 2016/07/06
- [Qemu-block] [PATCH v3 6/6] block: Remove BB options from blockdev-add, Kevin Wolf, 2016/07/06
- [Qemu-block] [PATCH v3 5/6] qemu-iotests: Test setting WCE with qdev, Kevin Wolf, 2016/07/06
- [Qemu-block] [PATCH v3 3/6] commit: Fix use of error handling policy, Kevin Wolf, 2016/07/06
- [Qemu-block] [PATCH v3 2/6] block/qdev: Allow configuring WCE with qdev properties, Kevin Wolf, 2016/07/06