Received: from eggs.gnu.org ([2001:4830:134:3::10]:53259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afWO7-0002S6-DC for qemu-devel@nongnu.org; Mon, 14 Mar 2016 13:34:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afWO6-0007yl-Ho for qemu-devel@nongnu.org; Mon, 14 Mar 2016 13:34:39 -0400 Date: Mon, 14 Mar 2016 18:34:31 +0100 From: Kevin Wolf Message-ID: <20160314173431.GC4812@noname.redhat.com> References: <1457454872-12183-1-git-send-email-kwolf@redhat.com> <20160314113141.GA4812@noname.redhat.com> <56E6ED01.3080800@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bCsyhTFzCvuiizWE" Content-Disposition: inline In-Reply-To: <56E6ED01.3080800@redhat.com> Subject: Re: [Qemu-devel] [PATCH 00/11] block: Use BB function in .bdrv_create() implementations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org --bCsyhTFzCvuiizWE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am 14.03.2016 um 17:55 hat Max Reitz geschrieben: > On 14.03.2016 12:31, Kevin Wolf wrote: > > Am 08.03.2016 um 17:34 hat Kevin Wolf geschrieben: > >> All users of the block layers are supposed to go through a BlockBacken= d. > >> The .bdrv_create() implementations are such users, so this series > >> converts them. > >> > >> This series (specifically patch 1) will also help with moving the > >> writethrough cache implementation from BDS to BB, where it really > >> belongs. Once this is moved, it wouldn't be possible to use bdrv_open() > >> to use a standalone BDS writethrough any more. > >> > >> Of course, writethrough doesn't make any sense in .bdrv_create() anywa= y, > >> so while I'm still converting everything to BB where it would keep > >> working (because that's the Right Thing), the drivers don't actually > >> make use of this fact any more after this series. > >=20 > > Applied to the block branch. >=20 > Now you can't name any BB "image" any more if you want to use e.g. > drive-mirror. Intended? Not really. :-/ Of course, you're supposed to use blockdev-mirror anyway (does it even exist?), but we should avoid that. Fortunately, your "Further BB work" will tie the name to a monitor reference and BBs without a name become valid then, I think. So this might be a good excuse for getting that series into 2.6. :-) Kevin > Example: >=20 > $ x86_64-softmmu/qemu-system-x86_64 -drive > if=3Dnone,id=3Dimage,file=3Dnull-co://,driver=3Draw -qmp stdio > {'execute':'qmp_capabilities'} > {"return": {}} > {'execute':'drive-mirror','arguments':{'device':'image','target':'foo.qco= w2','sync':'full','format':'qcow2'}} > Formatting 'foo.qcow2', fmt=3Dqcow2 size=3D1073741824 encryption=3Doff > cluster_size=3D65536 lazy_refcounts=3Doff refcount_bits=3D16 > {"error": {"class": "GenericError", "desc": "Device with id 'image' > already exists"}} >=20 > Max >=20 --bCsyhTFzCvuiizWE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJW5vYnAAoJEH8JsnLIjy/WR+UP/1qykZp41yNKZP0CCcsXt2Wr vgD7pPjL1vA+HmBQliyTUkPjHUAzz8hfw4TeNQJVlEIYFNg5gIbiINSWpd66rwwA RYQrRM0fTrcM/EdcUqH8At9D/WzRPawYlcGEO2p5rzuqnNAerqvWLF/lUts6KoVx mGdefucew2ZDQvsQp9UniAwYtd2qTBTm9QYA9VzSUnLtGC39HGPTG9gFWega4o3g iLNPoeAYmG2rnGSAhdQeqlHYdQOXlul6c1i/IndFwAp3Is4brQmtAkqgg+Y5Y5pZ dTdkDW21ekBHpjOQnzVrIvYFsTjmNsdW1T9FK5aDA6AXY9rbJYMeCwbw3VchvwW2 93J1YAsZHMvYv78F+D1YdFkw8zANqgAkn5oUS2MsOA+BwGO+mXX+TreFSz/r333U 4LDe9lxcVrxY0MqsevGeb90iH+G2ixwek2+K1cw1sXIb8Qkyq957lfXM92q1xV4r CNLxm31ht7nfEfEUhaZrbxJsAIi5mdq3TtcofgXdBvRa/v+cHNe5M8v2kLToKgGA HD52OFBRukoL06zyOylpISM0UasCY6vHG2J5ErQaXiQd7Vk4mC6zS94cmk2DsTt4 /XaMMZ7eNUnV2/UCqVf49+t3w3mIEjQ+T8UCTTDjr2c7ohI0x/J/MC8uD+98Q6Nd uApSb4A7lgbF7v83uRRJ =mOVT -----END PGP SIGNATURE----- --bCsyhTFzCvuiizWE--