From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f3Cem-0001RS-Dg for qemu-devel@nongnu.org; Mon, 02 Apr 2018 23:30:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f3Cei-0000hO-F3 for qemu-devel@nongnu.org; Mon, 02 Apr 2018 23:30:48 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:45118 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f3Cei-0000gY-9c for qemu-devel@nongnu.org; Mon, 02 Apr 2018 23:30:44 -0400 Date: Tue, 3 Apr 2018 11:30:33 +0800 From: Fam Zheng Message-ID: <20180403033033.GD6839@lemon.usersys.redhat.com> References: <20180403031147.GC6839@lemon.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Loadable block drivers? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lindsay Mathieson Cc: qemu-devel@nongnu.org On Tue, 04/03 13:17, Lindsay Mathieson wrote: > On 3 April 2018 at 13:11, Fam Zheng wrote: > > > On Tue, 04/03 12:59, Lindsay Mathieson wrote: > > > Hi all, was looking at developing a block driver for qemu - have examined > > > the drivers at: > > > > > > https://github.com/qemu/qemu/tree/master/block > > > > > > And it seems straightforward enough. > > > > > > One thing that is unclear - all the drivers appear to be compiled > > directly > > > into qemu. Is there no way to load them dynamically as .so modules? > > > > './configure --enable-modules' will enable building block drivers as .so > > objects, and they are loaded dynamically. These are in-tree .so modules; > > out-of-tree modules like in Linux kernel are intentionally forbidden. > > > > Fam > > > > > > Rats, I take it that means I can't develop a testing block module and load > it with an pre-existing qemu install. No, that's not possible. Fam