From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EwOOh-0002RO-6C for qemu-devel@nongnu.org; Tue, 10 Jan 2006 13:39:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EwOOc-0002Pg-Hx for qemu-devel@nongnu.org; Tue, 10 Jan 2006 13:39:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EwOOb-0002Ox-Es for qemu-devel@nongnu.org; Tue, 10 Jan 2006 13:39:01 -0500 Received: from [32.97.110.151] (helo=e33.co.us.ibm.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EwOR6-0000q8-4l for qemu-devel@nongnu.org; Tue, 10 Jan 2006 13:41:36 -0500 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e33.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id k0AIarwq019967 for ; Tue, 10 Jan 2006 13:36:53 -0500 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay04.boulder.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id k0AIcubO177836 for ; Tue, 10 Jan 2006 11:38:56 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id k0AIarJd024775 for ; Tue, 10 Jan 2006 11:36:53 -0700 Received: from [9.53.41.168] (dyn95341168.austin.ibm.com [9.53.41.168]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id k0AIaqAU024772 for ; Tue, 10 Jan 2006 11:36:53 -0700 Message-ID: <43C3FEBA.4060801@us.ibm.com> Date: Tue, 10 Jan 2006 12:36:42 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Interest in hardware plugin functionality References: <16af12af0601091738t2fbe336td1f7cfc19b832606@mail.gmail.com> In-Reply-To: <16af12af0601091738t2fbe336td1f7cfc19b832606@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Can you post the patch somewhere? I've looked into this myself in the past and some devices are more easily abstracted than others because of some strange dependencies. I'm curious to see what devices you've turned into plugins and how you've solved these problems (I assume that you would make all the current devices plugins and not just allow for custom device plugins). Regards, Anthony Liguori Andre Pech wrote: > Hi, > > I have been using qemu to simulate various types of custom hardware > for testing purposes. Rather than having to recompile qemu every time > I change a hardware simulation, I instead patched qemu to support > dynamically loading hardware plugin files at run time. The basic idea > is that you can specify .so files to load on the command line when you > boot qemu. These files will be dlopened by qemu at run time, and will > register themselves as hardware to the appropriate hardware controller > (ie a PCI device hardware plugin registers itself with the PCI bus). > > I was hoping to get people's reactions to / interest in this sort of > feature. Currently I have patched qemu to work for my own purposes, > which required having to hack around some issues I ran into. These > hacks do not require major changes in how qemu works, but are rather > structural changes. For example, the qemu header file naming structure > does not lend itself to being installed to somewhere like > /usr/include/qemu, and would need some changing. This includes > changing 'include "config.h"' to include 'include "qemu/config.h"' due > to the common use of config.h by other packages, as well as working > through the issues of how to structure things for building qemu > hardware plugins against multiple architecture types. > > I am more than willing to put all the effort into turning this into a > nice patch, if there is a maintainer interested in helping me shepherd > this into the mainline. > > Thanks, > Andre Pech > >------------------------------------------------------------------------ > >_______________________________________________ >Qemu-devel mailing list >Qemu-devel@nongnu.org >http://lists.nongnu.org/mailman/listinfo/qemu-devel > >