From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHAza-00031U-2z for qemu-devel@nongnu.org; Mon, 20 Jul 2015 09:20:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHAzV-00067E-Nu for qemu-devel@nongnu.org; Mon, 20 Jul 2015 09:20:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHAzV-00066j-JH for qemu-devel@nongnu.org; Mon, 20 Jul 2015 09:20:21 -0400 Date: Mon, 20 Jul 2015 15:20:17 +0200 From: Andrew Jones Message-ID: <20150720132017.GB29546@hawk.localdomain> References: <1437134200-13086-1-git-send-email-drjones@redhat.com> <1437134200-13086-2-git-send-email-drjones@redhat.com> <20150720040233.GD19189@voom.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150720040233.GD19189@voom.fritz.box> Subject: Re: [Qemu-devel] [RFC PATCH 1/2] spapr: add dumpdtb support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: dgibson@redhat.com, thuth@redhat.com, qemu-devel@nongnu.org, agraf@suse.de On Mon, Jul 20, 2015 at 02:02:33PM +1000, David Gibson wrote: > On Fri, Jul 17, 2015 at 01:56:39PM +0200, Andrew Jones wrote: > > Signed-off-by: Andrew Jones > > Looks good to me, but I'd like an actual commit message: what's > dumpdtb, how and why would you use it. Ok, just sent it separately with a commit message and the RFC dropped. Thanks, drew > > > --- > > hw/ppc/spapr.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > > index a6f19473cf278..c1cbf3387ae0c 100644 > > --- a/hw/ppc/spapr.c > > +++ b/hw/ppc/spapr.c > > @@ -30,6 +30,7 @@ > > #include "hw/fw-path-provider.h" > > #include "elf.h" > > #include "net/net.h" > > +#include "sysemu/device_tree.h" > > #include "sysemu/block-backend.h" > > #include "sysemu/cpus.h" > > #include "sysemu/kvm.h" > > @@ -822,6 +823,7 @@ static void spapr_finalize_fdt(sPAPRMachineState *spapr, > > exit(1); > > } > > > > + qemu_fdt_dumpdtb(fdt, fdt_totalsize(fdt)); > > cpu_physical_memory_write(fdt_addr, fdt, fdt_totalsize(fdt)); > > > > g_free(bootlist); > > -- > 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