From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVgL9-00020N-EZ for qemu-devel@nongnu.org; Wed, 11 Mar 2015 09:06:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVgL8-0001cf-JP for qemu-devel@nongnu.org; Wed, 11 Mar 2015 09:06:23 -0400 Date: Wed, 11 Mar 2015 13:06:12 +0000 From: Stefan Hajnoczi Message-ID: <20150311130612.GB10493@stefanha-thinkpad.redhat.com> References: <1425971164-9845-1-git-send-email-mjt@msgid.tls.msk.ru> <20150310085016.GC3770@noname.str.redhat.com> <20150310091759.GC14320@ad.nay.redhat.com> <20150310100936.GD3770@noname.str.redhat.com> <54FEF942.5010602@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OwLcNYc0lM97+oe1" Content-Disposition: inline In-Reply-To: <54FEF942.5010602@msgid.tls.msk.ru> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] block/dmg: make it modular if using additional library List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org, qemu-trivial , qemu-devel , Markus Armbruster , Peter Wu , Stefan Hajnoczi --OwLcNYc0lM97+oe1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 10, 2015 at 05:01:38PM +0300, Michael Tokarev wrote: > 10.03.2015 16:58, Stefan Hajnoczi =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Tue, Mar 10, 2015 at 10:09 AM, Kevin Wolf wrote: > >> Am 10.03.2015 um 10:17 hat Fam Zheng geschrieben: > >>> On Tue, 03/10 09:50, Kevin Wolf wrote: > >>>> Am 10.03.2015 um 08:06 hat Michael Tokarev geschrieben: > >>>> Also, should we consider making some more rarely used image formats > >>>> modules even if they don't pull in external dependencies? > >>> > >>> Sounds reasonable to me. Is the intention to reduce binary size? > >> > >> Yes, that and also that it allows compiling out some drivers without > >> having to mess with the Makefiles. You just don't install all of them. > >> > >> Related to that, Peter also mentioned that you (the user, not developer > >> or packager) could simply disable a single driver, for example as a > >> temporary hotfix in the case of security problems in a block driver. > >> That would actually be an argument for making _all_ drivers modules. > >=20 > > I am for making all block drivers built as modules. >=20 > That might be useful if module loading will be modified a bit, > like by loadin modules on demand only. Something like this, > search a "foo" block driver in the registered list, found -> > use it, if not, try to open block-foo.so (maybe after looking > in the "available" internal list before that) and look up in > the registered list again. >=20 > That will make it more useful. Even if all modules are automatically loaded, it gives packagers the ability to ship individual packages for Ceph, GlusterFS, etc to reduce library dependencies. Dynamic loading has advantages but there is no reason to wait for it. Stefan --OwLcNYc0lM97+oe1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVAD3EAAoJEJykq7OBq3PIGp8H/1ZP9RThrBYn0EZq93UdKQ2/ +L/p33XAj3uyfEW55D22j78G1FRSZRTQTxBn6WQEmctE7MXFlicdn/XDlH1Bk49c IWMPCKNarDAq2SHMxtUl1+HsvtvaIM45vGa6x00iqJbTrFh63uuFFCx4Rgos03wf NR3hSxDIQbcUr61P3yqRUtRatO7PHywDge2guWk2x+X5vwY4SpsN2Xkn0qxKBCYi LniGqhp75DcF+vjPrGyn12X/A+xUudmR4PDyRpidBbtQXOdZvcAXNi+sGuTR7zw5 lgRf4sc03Uhb3A7pEkFr0cOwmbdD4RME6EG2rrp710rAOwjJ6lvChEuQGtXWgSQ= =k37z -----END PGP SIGNATURE----- --OwLcNYc0lM97+oe1--