On 06.07.2016 16:45, Kevin Wolf wrote: > As cache.writeback is a BlockBackend property and as such more related > to the guest device than the BlockDriverState, we already removed it > from the blockdev-add interface. This patch adds the new way to set it, > as a qdev property of the corresponding guest device. > > For example: -drive if=none,file=test.img,node-name=img > -device ide-hd,drive=img,write-cache=off > > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > hw/block/block.c | 16 ++++++++++++++++ > hw/block/nvme.c | 1 + > hw/block/virtio-blk.c | 1 + > hw/ide/qdev.c | 1 + > hw/scsi/scsi-disk.c | 1 + > hw/usb/dev-storage.c | 1 + > include/hw/block/block.h | 5 ++++- > 7 files changed, 25 insertions(+), 1 deletion(-)
Reviewed-by: Max Reitz <mre...@redhat.com>
signature.asc
Description: OpenPGP digital signature