qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [Qemu-devel] [PATCH 0/2] Dynamic module loading for blo


From: Stefan Hajnoczi
Subject: Re: [Qemu-block] [Qemu-devel] [PATCH 0/2] Dynamic module loading for block drivers
Date: Wed, 22 Jun 2016 11:09:17 +0100
User-agent: Mutt/1.6.1 (2016-04-27)

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).
> 
> Yes, I agree.

I like that more than symlinks too.

Regarding where names come from, in general:

1. From the format=, driver=, 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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]