[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] QEMU fw_cfg DMA interface
From: |
Marc Marí |
Subject: |
[Qemu-devel] QEMU fw_cfg DMA interface |
Date: |
Mon, 31 Aug 2015 11:08:53 +0200 |
Implementation of the FW CFG DMA interface.
When running a Linux guest on top of QEMU, using the -kernel options, this
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 of
function do_boot, in SeaBIOS.
Kernel setup time is the time between the start of the function do_boot in
SeaBIOS and the jump to the Linux kernel.
As you can see, both the BIOS (because of ACPI tables and other configurations)
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 interfaces
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
- Re: [Qemu-devel] [PATCH 3/5] Implement fw_cfg DMA interface, (continued)
- Re: [Qemu-devel] QEMU fw_cfg DMA interface, Stefan Hajnoczi, 2015/08/06
- Re: [Qemu-devel] QEMU fw_cfg DMA interface, Marc Marí, 2015/08/06
- Re: [Qemu-devel] QEMU fw_cfg DMA interface, Stefan Hajnoczi, 2015/08/06
- Re: [Qemu-devel] QEMU fw_cfg DMA interface, Kevin O'Connor, 2015/08/06
- Re: [Qemu-devel] QEMU fw_cfg DMA interface, Marc Marí, 2015/08/06
- Re: [Qemu-devel] QEMU fw_cfg DMA interface, Kevin O'Connor, 2015/08/07
- Re: [Qemu-devel] QEMU fw_cfg DMA interface, Gerd Hoffmann, 2015/08/18
[Qemu-devel] QEMU fw_cfg DMA interface,
Marc Marí <=
- [Qemu-devel] [PATCH v2 0/5] fw_cfg DMA interface, Marc Marí, 2015/08/31
- [Qemu-devel] [PATCH v2 1/5] fw_cfg: document fw_cfg_modify_iXX() update functions, Marc Marí, 2015/08/31
- [Qemu-devel] [PATCH v2 4/5] Enable fw_cfg DMA interface for ARM, Marc Marí, 2015/08/31
- [Qemu-devel] [PATCH v2 5/5] Enable fw_cfg DMA interface for x86, Marc Marí, 2015/08/31
- [Qemu-devel] [PATCH v2 2/5] fw_cfg DMA interface documentation, Marc Marí, 2015/08/31
- Re: [Qemu-devel] [PATCH v2 2/5] fw_cfg DMA interface documentation, Kevin O'Connor, 2015/08/31
- [Qemu-devel] [PATCH v2 3/5] Implement fw_cfg DMA interface, Marc Marí, 2015/08/31
- Re: [Qemu-devel] [PATCH v2 3/5] Implement fw_cfg DMA interface, Kevin O'Connor, 2015/08/31