From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55192 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwLGl-000473-LG for qemu-devel@nongnu.org; Sun, 06 Mar 2011 16:13:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwKpi-0003z1-J3 for qemu-devel@nongnu.org; Sun, 06 Mar 2011 15:45:43 -0500 Received: from mail-yi0-f45.google.com ([209.85.218.45]:37115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwKpi-0003yx-Gi for qemu-devel@nongnu.org; Sun, 06 Mar 2011 15:45:42 -0500 Received: by yib19 with SMTP id 19so1742226yib.4 for ; Sun, 06 Mar 2011 12:45:41 -0800 (PST) Message-ID: <4D73F272.50105@codemonkey.ws> Date: Sun, 06 Mar 2011 14:45:38 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <4D73B6CA.8070000@codemonkey.ws> <4D73C8CE.6080800@codemonkey.ws> <4D73CD43.1010004@web.de> In-Reply-To: <4D73CD43.1010004@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 4/4] i8254: convert to qdev List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Blue Swirl , qemu-devel On 03/06/2011 12:06 PM, Jan Kiszka wrote: >> In the system we model, the PIT is part of the PIIX3. The right way to >> model it is as a DeviceState that's no_user=1 and created as part of the >> initialized of PIIX3 (for the PC at least). >> >> LPC is still an expansion bus and it's primarily used for discrete >> components like a TPM. For components that are all part of a Super I/O >> chip, there really just isn't a bus in the middle. >> > There surely is some bus (or even multiple), just not external an one. > It almost doesn't matter. It would look like: I8254 is-a DeviceState SuperIO has-a I8254 And the has-a relationship might be some custom bus mechanism (even if it's purely a VHDL or software concept). But in terms of modelling, we make I8254 a DeviceState because we don't care what bus it sits on. > Most of the currently ISA-attached devices are chipset internal. Yeah, and making them ISA devices was the wrong thing to do. This is all going to have to be redone in the not too distant future. An is-a relationship only makes sense when the device is naturally represented as the parent object. > They > belong to the PIIX3, so they need to be attached to some bus that is > owned by this device. If that is its ISA bus or a separate one for > internal devices - really, this looks like an academic discussion to me. > It's far from academic as this is user-visible and visible via the command line. Regards, Anthony Liguori > Jan > >