Received: from eggs.gnu.org ([2001:4830:134:3::10]:58080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afVGk-0008PO-9v for qemu-devel@nongnu.org; Mon, 14 Mar 2016 12:22:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afVGj-0004bu-8Z for qemu-devel@nongnu.org; Mon, 14 Mar 2016 12:22:58 -0400 Date: Mon, 14 Mar 2016 17:22:50 +0100 From: Kevin Wolf Message-ID: <20160314162250.GB4812@noname.redhat.com> References: <1457970292-12291-1-git-send-email-kwolf@redhat.com> <1457970292-12291-4-git-send-email-kwolf@redhat.com> <56E6E27A.3080308@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <56E6E27A.3080308@redhat.com> Subject: Re: [Qemu-devel] [PATCH 3/5] block: Remove cache.writeback from blockdev-add List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, jsnow@redhat.com, armbru@redhat.com, qemu-block@nongnu.org, mreitz@redhat.com --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am 14.03.2016 um 17:10 hat Eric Blake geschrieben: > On 03/14/2016 09:44 AM, Kevin Wolf wrote: > > The WCE bit is a frontend property and should not be part of the backend > > configuration. This is especially important because the same BDS can be > > used by different users with different WCE requirements. > >=20 > > Signed-off-by: Kevin Wolf > > --- > > qapi/block-core.json | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > >=20 > > diff --git a/qapi/block-core.json b/qapi/block-core.json > > index 9bf1b22..e3617e2 100644 > > --- a/qapi/block-core.json > > +++ b/qapi/block-core.json > > @@ -1614,7 +1614,6 @@ > > # > > # Includes cache-related options for block devices > > # > > -# @writeback: #optional enables writeback mode for any caches (defau= lt: true) > > # @direct: #optional enables use of O_DIRECT (bypass the host pag= e cache; > > # default: false) > > # @no-flush: #optional ignore any flush requests for the device (de= fault: > > @@ -1623,8 +1622,7 @@ > > # Since: 1.7 > > ## > > { 'struct': 'BlockdevCacheOptions', > > - 'data': { '*writeback': 'bool', > > - '*direct': 'bool', > > + 'data': { '*direct': 'bool', > > '*no-flush': 'bool' } } >=20 > Observable through introspection. Not quite backwards-compatible, but > at least clients can learn about it, and arguably clients shouldn't have > been using it. I can accept it as a bug fix, even though it does risk > breaking old clients that were trying to use it. >=20 > If it helps, libvirt does not seem to have been using it. I think we declared that blockdev-add is still experimental, so it should be okay. And I was actually pondering whether this struct even makes sense any more or whether we should move 'direct' and 'no-flush' directly to the parent struct. Kevin --liOOAslEiF7prFVr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJW5uVaAAoJEH8JsnLIjy/WDEgQAMT/O1n6MeQTMhtwHAYvZF5O ziKWZCW9HWI7+ckCoXGEYzMqFluDbzAqHkxyfXNMR0VFF8C9i3Kh4lnjKkRtloCV KK75B5ANlaTXG54Z78rrZc5pHNkWsC+icnyxJB4gRuu2I01z2TG9XKNCqQ7cUUTx iPv5vgaiZmr+XdIdCE+gaMGR6wJZ0H/swc1iEgdtD59bM2eNUDLOGtI4MjBxxzap yWLYk+2pJ4frblDncG15U0L2g+D//Jf9H8GCx8xIYTB5WUZXsIdl8wbx/kZpkHo/ H0XmVYgsjhCcNpWYcvQ9EvqQOGMZndzN1zWI6va5mNV7eIv+I2oXPGdJmB+oBNd5 7rFOYj8X04dgypH2DmMuotF5JbvvRSs9xKof291Bol5kzdSCLHJoKo0bIyaxSU6t 9ePX8pL0O5VomoKIqfDMfv/oU1Mnrcq2/1gFLor+QBYnRMedrG5MnooVFS4KLBxZ lS/DM0VFsOhVU2JFNlw6VT9MggOb7/Sf/uJCAnYPS+QUK2ymyDoj/kcNECaAWDdZ fpRJf7giL8ol/n2IzJWqg0fxgoxUZE+OTD9gYfan2azfzy0eTDwqe1q5ZpGB576T 2k88VpgRcBkAiSv/dS64T0UtRc1PktPLh8B0wco6KaDmzB1YM5l8+BXW1GLKsoaH +PanKQVGFzXG9vz61mNk =zMZI -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--