qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qdev: hook up i440fx pcihost to system bus.


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] qdev: hook up i440fx pcihost to system bus.
Date: Mon, 08 Jun 2009 16:04:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2

On 06/08/09 15:04, Paul Brook wrote:
typedef struct {
+    DeviceState qdev;
...
+static struct DeviceInfo i440fx_pcihost_devinfo = {
+    .init = i440fx_initfn,
+    .bus_type = BUS_TYPE_SYSTEM,
+};

This is clearly a lie.

--verbose please.

Ok, looks like main_system_bus (qdev.c) is supposed to be the root bus. Is that correct? If so, then we'll have to link the (primary) pci bus to the system bus, so the devices show up in the device tree.

Or is the main_system_bus meant for embedded boards only which have some non-standard bus? In that case we'll needs some way to tell qdev what the root bus is, so qdev can operate on the tree. For now this is just printing the devices in "info qtree", but I'm sure one day we will do much more with the device tree.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]