From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsbYv-0007wH-CT for qemu-devel@nongnu.org; Tue, 08 Jan 2013 10:58:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsbYq-0003hL-OX for qemu-devel@nongnu.org; Tue, 08 Jan 2013 10:58:01 -0500 Received: from smtp4.mundo-r.com ([212.51.32.151]:12127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsbYq-0003h7-I9 for qemu-devel@nongnu.org; Tue, 08 Jan 2013 10:57:56 -0500 Date: Tue, 8 Jan 2013 16:57:54 +0100 From: Alberto Garcia Message-ID: <20130108155754.GA25155@igalia.com> References: <4773138dce3a8e61f90ebc20837ff4a283137eb3.1357607262.git.agarcia@igalia.com> <50EC256C.5060607@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <50EC256C.5060607@suse.de> Subject: Re: [Qemu-devel] [PATCH v4 1/2] Add TEWS TPCI200 IndustryPack emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Blue Swirl , Paolo Bonzini , Anthony Liguori , qemu-devel@nongnu.org On Tue, Jan 08, 2013 at 02:55:56PM +0100, Andreas Färber wrote: > IPACK_DEVICE() > > You have them defined in the header, please use them consistently. > > Also, please avoid accessing internals like &s->bus.qbus > (BUS(s->bus)) or &s->dev.qdev (DEVICE(s->dev)). Ok, I'm using all the defined macros and replaced all instances of DO_UPCAST() with their checked equivalents. I also removed all accesses to internals. And I defined ipack_bus_new_inplace() (in the spirit of pci_bus_new_inplace()) and updated tpci200_initfn(). Tell me if there's anything else I should change, else I can post the new patches. > Another thing to check (could be a follow-up) is whether the initfn > can be split into instance_init (e.g., pci_set_*?) and initfn. What's exactly that for in this case? Berto