Re: [Qemu-devel] Interest in hardware plugin functionality

2006-01-10 Thread Andre Pech
I've only implemented this functionality for the pc system emulator for PCI hardware plugin devices, since that's all I need it for at the moment. There's obviously more to be done to implement this in a nice way across all architectures for all hardware types, which I'm very interested in doing if

Re: [Qemu-devel] Interest in hardware plugin functionality

2006-01-10 Thread Jan Marten Simons
Lennert Buytenhek wrote: I think the biggest problem would be that a lot of operating systems don't support hotplug PCI. I think Michael's idea was rather to select the hardware to use during qemu startup rather then to change it while the system is up and runnning. Therefore hotplugging w

Re: [Qemu-devel] Interest in hardware plugin functionality

2006-01-10 Thread Andre Pech
This functionality is not strictly for hotplugging. Maybe my use of the term hardware plugin was misleading. The patch adds the ability to pass a .so file compiled against qemu's header files to qemu on the command line. This .so file is dlopened and registers itself as hardware appropriately, all

Re: [Qemu-devel] Interest in hardware plugin functionality

2006-01-10 Thread Anthony Liguori
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 mak

Re: [Qemu-devel] Interest in hardware plugin functionality

2006-01-10 Thread Lennert Buytenhek
On Mon, Jan 09, 2006 at 05:38:58PM -0800, Andre Pech wrote: > 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 hardwa

Re: [Qemu-devel] Interest in hardware plugin functionality

2006-01-09 Thread Michael Renzmann
Hi. On Mon, 2006-01-09 at 17:38 -0800, Andre Pech wrote: > I change a hardware simulation, I instead patched qemu to support > dynamically loading hardware plugin files at run time. > [...] > I am more than willing to put all the effort into turning this into a > nice patch, if there is a maintain

[Qemu-devel] Interest in hardware plugin functionality

2006-01-09 Thread Andre Pech
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 spe