From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOfEw-0002pB-6O for qemu-devel@nongnu.org; Mon, 19 Nov 2018 03:49:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOfEt-0005DM-2h for qemu-devel@nongnu.org; Mon, 19 Nov 2018 03:49:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34602) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gOfEs-0005C3-Sk for qemu-devel@nongnu.org; Mon, 19 Nov 2018 03:49:03 -0500 Date: Mon, 19 Nov 2018 09:48:55 +0100 From: Gerd Hoffmann Message-ID: <20181119084855.uyira2lpu73mu2fo@sirius.home.kraxel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] SeaBIOS booting time optimization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Garzarella Cc: seabios@seabios.org, Paolo Bonzini , Stefan Hajnoczi , qemu-devel@nongnu.org, Rob Bradford , Samuel Ortiz Hi, > I'm investigating the SeaBIOS booting time, to understand if we can > reduce the boot time in some cases (e.g. legacy hardware is not > needed). I think this can be interesting also for NEMU developers. > The goal is to have only one image of SeaBIOS configurable at runtime > to reduce the boot time, avoiding unnecessary initialization. Why at runtime? What is bad with two images? With a runtime option you probably need some way to enable the "fastboot" hint for seabios, because some optimizations (like skipping ps/2 initialization) breaks functionality. So it must be opt-in so you can enable it if you know your use case is fine with that. But "qemu -boot fast=on" isn't much different from "qemu -bios seabios-fastboot.bin" after all ... > Any pointers or suggestions would be helpful. seabios could try to skip initializing hardware without bootindex with "qemu -boot menu=off,strict=on". mmconfig support? I think that would reduce the number of vmexits needed for pci initialization. cheers, Gerd