diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-06-23 15:12:35 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-13 13:32:27 +0200 |
commit | f6166a06ffdb1cd5dd80adf2d82c35c3bda88239 (patch) | |
tree | 36aa065e263e1adcdc7a923ae55528ea3224e91b /hw/usb | |
parent | 8daea510951dd309a44cea8de415c685c43851cf (diff) | |
download | qemu-f6166a06ffdb1cd5dd80adf2d82c35c3bda88239.zip qemu-f6166a06ffdb1cd5dd80adf2d82c35c3bda88239.tar.gz qemu-f6166a06ffdb1cd5dd80adf2d82c35c3bda88239.tar.bz2 |
block/qdev: Allow configuring WCE with qdev properties
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 <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r-- | hw/usb/dev-storage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c index 78038a2..c607f76 100644 --- a/hw/usb/dev-storage.c +++ b/hw/usb/dev-storage.c @@ -603,6 +603,7 @@ static void usb_msd_realize_storage(USBDevice *dev, Error **errp) blkconf_serial(&s->conf, &dev->serial); blkconf_blocksizes(&s->conf); + blkconf_apply_backend_options(&s->conf); /* * Hack alert: this pretends to be a block device, but it's really |