Received: from eggs.gnu.org ([2001:4830:134:3::10]:45200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFf65-00038E-8X for qemu-devel@nongnu.org; Wed, 22 Jun 2016 06:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFf61-00023y-2d for qemu-devel@nongnu.org; Wed, 22 Jun 2016 06:09:25 -0400 Date: Wed, 22 Jun 2016 11:09:17 +0100 From: Stefan Hajnoczi Message-ID: <20160622100917.GA11330@stefanha-x1.localdomain> References: <1466016055-31351-1-git-send-email-clord@redhat.com> <20160617095451.GC6994@stefanha-x1.localdomain> <20160621093252.GF32560@stefanha-x1.localdomain> <42716482-40e8-64f3-8f57-f6bde71f4c20@redhat.com> <54119adb-1ae2-b2a5-d1e4-32e967cc87a1@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <54119adb-1ae2-b2a5-d1e4-32e967cc87a1@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/2] Dynamic module loading for block drivers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Colin Lord , kwolf@redhat.com, den@openvz.org, qemu-devel@nongnu.org, qemu-block@nongnu.org, mreitz@redhat.com --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 21, 2016 at 06:59:58PM +0200, Paolo Bonzini wrote: > On 21/06/2016 17:42, Colin Lord wrote: > > It could easily return the BlockDriver then > > using the name field. It seems to me that this would work, and would be > > a fairly minor change from how things are now (in particular I think > > that symlinks wouldn't be necessary with this). >=20 > Yes, I agree. I like that more than symlinks too. Regarding where names come from, in general: 1. From the format=3D, driver=3D, etc options during opening or creating images. Also from backing filenames inside image files. 2. From probing, see bdrv_find_protocol() and bdrv_find_format(). The simple approach to #2 is to load all modules, but this defeats the purpose of on-demand loading. There are solutions for #2 without loading all modules. You could move probing functions into the QEMU binary, for example, so that they don't require loading modules. Stefan --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXamPNAAoJEJykq7OBq3PIrqwIAIGVGyDk0j3nASlVsivL3ccv +Ea5HnLvX8CoXv40XjJgKP4mMWGH+0kiXeaKvAgdNgLINowAGL8aIGuvYkvY+KWT Pj5+SI0q9REe5LC2Ot9V/Uc4qtVXAkiMSMMAwp8qxuhrHe6LwFNggwoveTEdEbts RjhtIe3ZyhuDrkzo4E7Fjy+mfAiMLQ0usvNUZznvEZwzwfpiDV/IDvhniaSrtFgy l1doGZ6EEpNd9kFvKIVYXSJLhoOLk9mLrrzOleb0NVtZGoa+l4SUoy1/nEttU4/s vxytb7MxmYs7LF8gVNtfD4MfpYoNECIXiGRz5wkbZzD3cu2txnK6iqJdfsyiZfE= =qGaB -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--