From: Pekka Enberg Subject: Re: [PATCH] kvm tools: powerpc: convert spapr pci to new device iterators Date: Fri, 30 Nov 2012 10:35:45 +0200 (EET) Message-ID: References: <1354021228-19077-1-git-send-email-will.deacon@arm.com> <5804279d93c61731e615300d1540da80@ozlabs.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Will Deacon , kvm@vger.kernel.org To: Matt Evans Return-path: Received: from mail-lb0-f174.google.com ([209.85.217.174]:62179 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753853Ab2K3Ift (ORCPT ); Fri, 30 Nov 2012 03:35:49 -0500 Received: by mail-lb0-f174.google.com with SMTP id gi11so261106lbb.19 for ; Fri, 30 Nov 2012 00:35:48 -0800 (PST) In-Reply-To: <5804279d93c61731e615300d1540da80@ozlabs.org> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 28 Nov 2012, Matt Evans wrote: > On 2012-11-27 13:00, Will Deacon wrote: > > Commit 8d35d32d0148 ("kvm tools: add generic device registration > > mechanism") introduced a tree-based device lookup-by-bus mechanism as > > well as iterators to enumerate the devices on a particular bus. > > > > Whilst both x86 and ppc were converted by the original patch, the spapr > > pci changes were incomplete, so include the required changes here. > > > > Compile-tested only on ppc64 970mp. Note that I had to hack the Makefile > > in order to build guest_init.o with a toolchain defaulting to ppc: > > > > $(GUEST_INIT): guest/init.c > > $(E) " LINK " $@ > > - $(Q) $(CC) -static guest/init.c -o $@ > > - $(Q) $(LD) -r -b binary -o guest/guest_init.o $(GUEST_INIT) > > + $(Q) $(CC) -m64 -static guest/init.c -o $@ > > + $(Q) $(LD) -m elf64ppc -r -b binary -o guest/guest_init.o > > $(GUEST_INIT) > > > > $(DEPS): > > > > Cc: Matt Evans > > Signed-off-by: Will Deacon > > I lack PPC > But this patch appears too good > To be left aside > > Acked-by: Matt Evans Applied, thanks!