From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgq6N-0000Mb-2n for qemu-devel@nongnu.org; Wed, 22 Oct 2014 03:13:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgq6H-0003nz-Op for qemu-devel@nongnu.org; Wed, 22 Oct 2014 03:12:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgq6H-0003nn-Hg for qemu-devel@nongnu.org; Wed, 22 Oct 2014 03:12:53 -0400 Message-ID: <544758F0.9080205@redhat.com> Date: Wed, 22 Oct 2014 09:12:48 +0200 From: Max Reitz MIME-Version: 1.0 References: <5444BECB.3040900@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] writing a QEMU block driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sandeep Joshi Cc: qemu-devel@nongnu.org On 2014-10-22 at 05:08, Sandeep Joshi wrote: > > Another small question. I noticed that all block drivers call > block_init ("module_init") and qemu_system binary has the > "--enable-modules" command line option. > > But does QEMU support building block drivers outside the main source > tree ? And can I load a new block driver module into running QEMU > system - like the Linux kernel allows ? Or do I have to distribute > an entire own QEMU image if I add a new driver ? I am not sure if > what I am asking is the same as https://wiki.ubuntu.com/QemuDiskHotplug No, this is a different question. Disk hotplug is something for the guest, whereas you want something for the host. As far as I know, people are aware of that issue and it may be implemented at some point in time. But right now it's not supported in vanilla qemu (I've heard something about at least one distribution already having implemented this). If you add a new driver, you either have to distribute its source so people can build qemu themselves with the driver included; or you build qemu yourself and then distribute the binary; or you find your driver good enough to submit it for upstream qemu. Max