Received: from eggs.gnu.org ([2001:4830:134:3::10]:38285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLXak-0000Gf-El for qemu-devel@nongnu.org; Fri, 08 Jul 2016 11:21:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLXaf-0006UN-Hs for qemu-devel@nongnu.org; Fri, 08 Jul 2016 11:21:22 -0400 References: <1467816309-16657-1-git-send-email-kwolf@redhat.com> <1467816309-16657-3-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: <5e367b14-0ba4-ba8c-9dc3-9338787072d8@redhat.com> Date: Fri, 8 Jul 2016 17:21:10 +0200 MIME-Version: 1.0 In-Reply-To: <1467816309-16657-3-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vlsepqrAH9pOIQveaorhIF04ec85NPiek" Subject: Re: [Qemu-devel] [PATCH v3 2/6] block/qdev: Allow configuring WCE with qdev properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vlsepqrAH9pOIQveaorhIF04ec85NPiek From: Max Reitz To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, qemu-devel@nongnu.org Message-ID: <5e367b14-0ba4-ba8c-9dc3-9338787072d8@redhat.com> Subject: Re: [PATCH v3 2/6] block/qdev: Allow configuring WCE with qdev properties References: <1467816309-16657-1-git-send-email-kwolf@redhat.com> <1467816309-16657-3-git-send-email-kwolf@redhat.com> In-Reply-To: <1467816309-16657-3-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable 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. >=20 > For example: -drive if=3Dnone,file=3Dtest.img,node-name=3Dimg > -device ide-hd,drive=3Dimg,write-cache=3Doff >=20 > Signed-off-by: Kevin Wolf > --- > 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 --vlsepqrAH9pOIQveaorhIF04ec85NPiek Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEvBAEBCAAZBQJXf8TmEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRA7sUIC6DisrfWk B/sEtOrwpWEpbCg2z0R3dZvKbknqz7PJ6ncvUywwdDgNYjA4BigWzRvRpYHA57AL z0ExN8vx/5xiNyx6cQN+/L9ikwcf9QpeTsd5Ne8JpFt61+kL84HwCcRuyGYwHn09 +/jW97ogtQh+FwQnkpGktL2BWJ/S0MuEM4R+LW7pw10HMUeG5iPjk7R6HGbALtyI iQwGb0QEOp45mGO5DHyvwqgMZ/hiT7ru4AqI1FvzuIxFJlU12RMddTwFRCLyZcuR RmPi8wzkZ7oLFqowxEfTAqtBveOxzYZ46K4mIR2eLvrVhJ9jdW/KLAxj/BJYkK7Y F4e6LcpUXURNQduHk6uVXm58 =kO16 -----END PGP SIGNATURE----- --vlsepqrAH9pOIQveaorhIF04ec85NPiek--