From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLOiv-0001c8-Id for qemu-devel@nongnu.org; Tue, 01 Nov 2011 20:30:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLOiu-0005NY-4j for qemu-devel@nongnu.org; Tue, 01 Nov 2011 20:30:33 -0400 Date: Wed, 2 Nov 2011 11:12:28 +1100 From: David Gibson Message-ID: <20111102001228.GD5379@truffala.fritz.box> References: <1320006193-15219-1-git-send-email-agraf@suse.de> <4EB067A2.70203@codemonkey.ws> <9C67C675-3339-4467-A52B-73163DF07553@suse.de> <4EB06FD3.1040708@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [Qemu-ppc] [PULL 00/22] ppc patch queue 2011-10-30 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "qemu-ppc@nongnu.org" , "qemu-devel@nongnu.org" On Tue, Nov 01, 2011 at 03:28:05PM -0700, Alexander Graf wrote: > > On 01.11.2011, at 15:16, Anthony Liguori wrote: > > > On 11/01/2011 05:14 PM, Alexander Graf wrote: > >>> And specifically: > >>> > >>> QLIST_FOREACH(qdev,&phb->host_state.bus->qbus.children, sibling) { > >>> PCIDevice *dev = (PCIDevice *)qdev; > >>> if (dev->devfn == devfn) { > >>> return dev; > >>> } > >>> } > >>> > >>> QBus::children is a QTAILQ, not a QLIST. > >>> > >>> Was this code tested at all? > >> > >> Uh, yeah. Compile and execution tested O_o. > > > > Do you not have libfdt installed? > > I have libfdt installed on all boxes. I also verified that I could > see a PCI device in the guest, so the code worked. > > Maybe the list type was changed between the pullreq and now? It did. I actually found this one yesterday when I rebased agraf's series, but didn't get around to sending the fix out. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson