Received: from eggs.gnu.org ([2001:4830:134:3::10]:54649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZ71v-0008Um-QA for qemu-devel@nongnu.org; Mon, 17 Dec 2018 23:30:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZ71r-0000Gb-Kx for qemu-devel@nongnu.org; Mon, 17 Dec 2018 23:30:51 -0500 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:45599) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZ71r-0000Fs-AA for qemu-devel@nongnu.org; Mon, 17 Dec 2018 23:30:47 -0500 Received: by mail-pl1-x642.google.com with SMTP id a14so7193770plm.12 for ; Mon, 17 Dec 2018 20:30:47 -0800 (PST) References: <20181214015520.20467-1-aik@ozlabs.ru> <20181217062133.GK5597@umbus.fritz.box> <20181218020924.GB23604@umbus.fritz.box> <1e2449a7-d89b-3ca5-db66-7da34ff59a35@ozlabs.ru> <20181218034910.GF23604@umbus.fritz.box> From: Alexey Kardashevskiy Message-ID: Date: Tue, 18 Dec 2018 15:30:38 +1100 MIME-Version: 1.0 In-Reply-To: <20181218034910.GF23604@umbus.fritz.box> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH qemu v3] ppc/spapr: Receive and store device tree blob from SLOF List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Greg Kurz , gkurz@linux.ibm.com On 18/12/2018 14:49, David Gibson wrote: > On Tue, Dec 18, 2018 at 02:04:54PM +1100, Alexey Kardashevskiy wrote: >> >> >> On 18/12/2018 13:09, David Gibson wrote: >>> On Mon, Dec 17, 2018 at 05:21:33PM +1100, David Gibson wrote: >>>> On Fri, Dec 14, 2018 at 12:55:20PM +1100, Alexey Kardashevskiy wrote: >>>>> SLOF receives a device tree and updates it with various properties >>>>> before switching to the guest kernel and QEMU is not aware of any changes >>>>> made by SLOF. Since there is no real RTAS (QEMU implements it), it makes >>>>> sense to pass the SLOF final device tree to QEMU to let it implement >>>>> RTAS related tasks better, such as PCI host bus adapter hotplug. >>>>> >>>>> Specifially, now QEMU can find out the actual XICS phandle (for PHB >>>>> hotplug) and the RTAS linux,rtas-entry/base properties (for firmware >>>>> assisted NMI - FWNMI). >>>>> >>>>> This stores the initial DT blob in the sPAPR machine and replaces it >>>>> in the KVMPPC_H_UPDATE_DT (new private hypercall) handler. >>>>> >>>>> This adds an @update_dt_enabled machine property to allow backward >>>>> migration. >>>>> >>>>> SLOF already has a hypercall since >>>>> https://github.com/aik/SLOF/commit/e6fc84652c9c0073f9183 >>>>> >>>>> This makes use of the new fdt_check_full() helper. In order to allow >>>>> the configure script to pick the correct DTC version, this adjusts >>>>> the DTC presense test. >>>>> >>>>> Signed-off-by: Alexey Kardashevskiy >>>> >>>> Applied, thanks. >>> >>> And now, unapplied. >>> >>> I don't know quite how, but somehow this patch is causing aarch64 >>> tests to SEGV. >> >> >> /home/aik/p/qemu/configure --target-list=aarch64-softmmu >> --source-path=/home/aik/p/qemu/ --disable-git-update --with-git=false >> --enable-trace-backend=log >> >> and >> >> make -C /home/aik/pbuild/qemu-localhost-aarch64-rel/ -j24 check >> >> did not produce segv. I am running this all on a power8 box + ubuntu >> 1804, what is your config? > > Hm, curious. I'm using Fedora 29 on an x86 host. Fedora 27 on x86_64 is all right too :-/ Let's upgrade... -- Alexey