|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] New device API |
Date: | Fri, 15 May 2009 11:40:21 +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/14/09 23:39, Paul Brook wrote:
I've just pushed out changes implementing a new device API. This is based on my previous RFC[1], but with a few changes. The main one being increased used of proxies/wrappers to implement common bus functionality. For example there are frameworks for PCI, "ISA"[1] and I2C devices all built on top of a common core.
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". Then you can actually walk the device tree in common code, for example have a "info devtree" monitor command printing all devices of the machine.
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |