From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWL5e-0003XL-7W for qemu-devel@nongnu.org; Mon, 31 Aug 2015 05:09:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWL5b-0006mm-14 for qemu-devel@nongnu.org; Mon, 31 Aug 2015 05:09:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWL5a-0006mf-SX for qemu-devel@nongnu.org; Mon, 31 Aug 2015 05:09:18 -0400 From: =?UTF-8?q?Marc=20Mar=C3=AD?= Date: Mon, 31 Aug 2015 11:08:53 +0200 Message-Id: <1441012133-8154-1-git-send-email-markmb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] QEMU fw_cfg DMA interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, seabios@seabios.org Cc: Mark Rutland , Rob Herring , Drew , Arnd Bergmann , devicetree@vger.kernel.org, Stefan Hajnoczi , Alexander Graf , Kevin O'Connor , Gerd Hoffmann , =?UTF-8?q?Marc=20Mar=C3=AD?= , Laszlo Implementation of the FW CFG DMA interface. When running a Linux guest on top of QEMU, using the -kernel options, thi= s is the timing improvement for x86: QEMU commit 090d0bf and SeaBIOS commit 2fc20dc QEMU startup time: .078 BIOS startup time: .060 Kernel setup time: .578 Total time: .716 QEMU with this patch series and SeaBIOS with this patch series QEMU startup time: .080 BIOS startup time: .039 Kernel setup time: .002 Total time: .121 QEMU startup time is the time between the start and the first kvm_entry. BIOS startup time is the time between the first kvm_entry and the start o= f function do_boot, in SeaBIOS. Kernel setup time is the time between the start of the function do_boot i= n SeaBIOS and the jump to the Linux kernel. As you can see, both the BIOS (because of ACPI tables and other configura= tions) and the Linux kernel boot (because of the copy to memory) are greatly improved with this new interface. Also, this new interface is an addon to the old interface. Both interface= s are compatible and interchangeable. Changes from v1: - Take into account order of fields in the FWCfgDmaAccess structure - Check and change endianness of FWCfgDmaAccess fields - Change order of fields in the FWCfgDmaAccess structure - Add FW_CFG_DMA_CTL_SKIP feature for control field - Split FW_CFG_SIZE in QEMU - Make FW_CFG_ID a bitmap of features - Add 64 bit address support for the transfer. Trigger when writing the = low address, and address is 0 by default and at the end of each transfer. - Align ports and addresses. - Preserve old fw_cfg_comb_valid behaviour in QEMU - Update documentation to reflect all these changes