Received: from eggs.gnu.org ([2001:4830:134:3::10]:40984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKiLP-0001CJ-6z for qemu-devel@nongnu.org; Wed, 06 Jul 2016 04:38:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKiLK-0000Di-V4 for qemu-devel@nongnu.org; Wed, 06 Jul 2016 04:38:06 -0400 References: <1467729757-12441-1-git-send-email-lvivier@redhat.com> <20160705204426.38e49938@bahia.lan> <20160706090312.01461ee9@bahia.lan> From: Laurent Vivier Message-ID: <608043a3-b312-525a-c62f-d8bdb7998545@redhat.com> Date: Wed, 6 Jul 2016 10:37:58 +0200 MIME-Version: 1.0 In-Reply-To: <20160706090312.01461ee9@bahia.lan> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH RFC] spapr: by-pass SLOF when -kernel is provided List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: Thomas Huth , "Richard W.M. Jones" , Andrew Jones , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, David Gibson On 06/07/2016 09:03, Greg Kurz wrote: > On Tue, 5 Jul 2016 20:51:41 +0200 > Laurent Vivier wrote: > >> On 05/07/2016 20:44, Greg Kurz wrote: >>> On Tue, 5 Jul 2016 16:42:37 +0200 >>> Laurent Vivier wrote: >>> >>>> As device-tree is now fully built by QEMU, we don't need SLOF >>>> anymore if the kernel is provided on the command line. >>>> >>>> In this case, don't load SLOF and boot directly into the >>>> kernel. >>>> >>>> This saves at least 5 seconds on the boot sequence. >>>> >>> >>> The concept looks great so I gave a try with a fedora24 guest. >> >> I did the same test with a rhel7 vmlinuz adn intramfs and it works fine. >> >>> >>> I copied the kernel and initramfs to the host and passed the kernel arguments >>> taken from grub. >>> >>> The kernel starts but the boot sequence stalls at: >>> >>> [ OK ] Reached target Basic System. >>> [ 126.238400] dracut-initqueue[290]: Warning: dracut-initqueue timeout - starting timeout scripts >> >> It happens when the initramfs didn't have the disk driver: do you use >> the same disk controller with the "-kernel" than the one which was used >> when the initramfs has been created? >> > > Yes. The very same QEMU command line (except -kernel/-initrd/-append) works with > SLOF and fails without SLOF. I think it works for me because I use spapr-vscsi and spapr-vlan. Laurent