|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] New device API |
Date: | Fri, 15 May 2009 17:19:29 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090324 Fedora/3.0-2.1.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 05/15/09 11:40, Gerd Hoffmann wrote:
I think we should also have a generic BusState with a name and a list of devices attached (maybe more). Then have "BusState *bus" instead of "void *bus".
i.e. something like the attached patch. It is just a quick outline, far from being complete, and with some FIXMEs. Compiles and works though.
I also think we should switch to sys-queue.h list functions in qdev.[ch]. open-coded lists are easy as long as you only add elements, but some day we'll have to deal with hot-unplug.
cheers, Gerd
qemu-bus-state.diff
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |