From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLMsr-0000mQ-PW for qemu-devel@nongnu.org; Tue, 01 Nov 2011 18:32:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLMsq-0003Xh-PV for qemu-devel@nongnu.org; Tue, 01 Nov 2011 18:32:41 -0400 Message-ID: <4EB07382.4070909@codemonkey.ws> Date: Tue, 01 Nov 2011 17:32:34 -0500 From: Anthony Liguori MIME-Version: 1.0 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [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: Blue Swirl , "qemu-ppc@nongnu.org" , "qemu-devel@nongnu.org" On 11/01/2011 05:28 PM, 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? Yes. The patch that did it was old but only recently got into the tree. Regards, Anthony Liguori > > Alex > >> >> Regards, >> >> Anthony Liguori >> >>> >>> Alex >>> >>> >> >