[SeaBIOS] [PATCH v5] Add QEMU fw_cfg DMA interface

2015-10-08 Thread Marc Marí
Add support for the new fw_cfg DMA interface. The protocol is explained in QEMU documentation. Signed-off-by: Marc Marí <mar...@redhat.com> --- src/fw/paravirt.c | 79 +-- src/fw/paravirt.h | 26 +++--- 2 files chang

[SeaBIOS] QEMU fw_cfg DMA interface

2015-10-01 Thread Marc Marí
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 b2312c6 and SeaBIOS commit 423542e QEMU startup time: .080 BIOS startup time: .060 Kernel setup time: .586 Total time: .726 QEMU

[SeaBIOS] [PATCH v4 0/2] QEMU fw_cfg DMA interface

2015-10-01 Thread Marc Marí
Implement guest-side of the QEMU FW CFG DMA interface for x86 Marc Marí (2): Add QEMU fw_cfg DMA interface Boot Linux using QEMU fw_cfg DMA interface src/boot.c| 40 +++--- src/fw/paravirt.c | 157 ++ src/fw/paravirt.h

[SeaBIOS] [PATCH v4 2/2] Boot Linux using QEMU fw_cfg DMA interface

2015-10-01 Thread Marc Marí
Reading Linux from the fw_cfg interface is faster using the DMA interface. For this reason, add a Linux loader that can benefit from this interface. Signed-off-by: Marc Marí <mar...@redhat.com> --- src/boot.c| 40 +++- src/fw/paravirt.

[SeaBIOS] [PATCH v4 1/2] Add QEMU fw_cfg DMA interface

2015-10-01 Thread Marc Marí
Add support for the new fw_cfg DMA interface. The protocol is explained in QEMU documentation. Signed-off-by: Marc Marí <mar...@redhat.com> --- src/fw/paravirt.c | 79 +-- src/fw/paravirt.h | 26 +++--- 2 files chang

Re: [SeaBIOS] [RFC 0/3] NVDIMM booting support

2015-09-22 Thread Marc Marí
On Mon, 21 Sep 2015 22:36:43 +0200 Hannes Reinecke <h...@suse.de> wrote: > On 09/21/2015 04:58 PM, Paolo Bonzini wrote: > > > > > > On 21/09/2015 15:14, Marc Marí wrote: > >> This patch series is not ready for merging. There are things >

[SeaBIOS] [RFC 1/3] Basic NVDIMM PMEM support

2015-09-21 Thread Marc Marí
Follows the ACPI NFIT specification. Signed-off-by: Marc Marí <mar...@redhat.com> --- Makefile| 3 +- src/fw/biostables.c | 80 + src/hw/nvdimm.c | 21 ++ src/hw/nvdimm.h | 11 src/post.c

[SeaBIOS] [RFC 0/3] NVDIMM booting support

2015-09-21 Thread Marc Marí
are appreciated Marc Marí (3): Basic NVDIMM PMEM support Transitions to and from 64 bits Add NVDIMM booting support Makefile| 3 +- src/boot.c | 18 src/config.h| 2 + src/fw/biostables.c | 80 src/hw/nvdimm.c

[SeaBIOS] [RFC 2/3] Transitions to and from 64 bits

2015-09-21 Thread Marc Marí
Signed-off-by: Marc Marí <mar...@redhat.com> --- src/config.h| 2 ++ src/misc.c | 4 +++ src/romlayout.S | 106 src/stacks.c| 77 src/stacks.h| 2 ++ src/x86.h

Re: [SeaBIOS] [RFC 2/3] Transitions to and from 64 bits

2015-09-21 Thread Marc Marí
On Mon, 21 Sep 2015 17:00:51 +0200 Paolo Bonzini <pbonz...@redhat.com> wrote: > > > On 21/09/2015 16:38, Marc Marí wrote: > > True. Tried with 2M. The memory used went down from 8M to 24K more > > or less, and the time for the copying went down by 4ms (from 15ms to

Re: [SeaBIOS] [RFC 2/3] Transitions to and from 64 bits

2015-09-21 Thread Marc Marí
On Mon, 21 Sep 2015 12:03:29 -0400 "Kevin O'Connor" <ke...@koconnor.net> wrote: > On Mon, Sep 21, 2015 at 04:38:00PM +0200, Marc Marí wrote: > > On Mon, 21 Sep 2015 15:57:56 +0200 > > Gerd Hof

Re: [SeaBIOS] [RFC 0/3] NVDIMM booting support

2015-09-21 Thread Marc Marí
On Mon, 21 Sep 2015 12:17:53 -0400 "Kevin O'Connor" <ke...@koconnor.net> wrote: > On Mon, Sep 21, 2015 at 03:14:04PM +0200, Marc Marí wrote: > > Implement support for booting from a PMEM region compatible with > > NVDIMM and NFIT specifications. > > > &g

Re: [SeaBIOS] [RFC 2/3] Transitions to and from 64 bits

2015-09-21 Thread Marc Marí
On Mon, 21 Sep 2015 15:57:56 +0200 Gerd Hoffmann wrote: > Hi, > > > +/ > > + * Page table > > + / > > +void *gen_identity_page_table(u64 max_addr)

Re: [SeaBIOS] [RFC 0/3] NVDIMM booting support

2015-09-21 Thread Marc Marí
On Mon, 21 Sep 2015 16:58:31 +0200 Paolo Bonzini <pbonz...@redhat.com> wrote: > > > On 21/09/2015 15:14, Marc Marí wrote: > > This patch series is not ready for merging. There are things > > missing and questions to be answered: > > - Is it necessary to retrie

Re: [SeaBIOS] [PATCH v3 2/2] Boot Linux using QEMU fw_cfg DMA interface

2015-09-18 Thread Marc Marí
On Fri, 18 Sep 2015 14:40:30 -0400 "Kevin O'Connor" <ke...@koconnor.net> wrote: > On Fri, Sep 18, 2015 at 10:59:15AM +0200, Marc Marí wrote: > > Reading Linux from the fw_cfg interface is faster using the DMA > > interface. For this reason, add a Linux l

[SeaBIOS] [PATCH v3 0/2] QEMU fw_cfg DMA interface

2015-09-18 Thread Marc Marí
Implement guest-side of the QEMU FW CFG DMA interface for x86 Marc Marí (2): Add QEMU fw_cfg DMA interface Boot Linux using QEMU fw_cfg DMA interface src/boot.c| 32 --- src/fw/paravirt.c | 162 ++ src/fw/paravirt.h | 62

Re: [SeaBIOS] [PATCH v2 1/2] Add QEMU fw_cfg DMA interface

2015-08-31 Thread Marc Marí
On Mon, 31 Aug 2015 12:18:27 -0400 "Kevin O'Connor" <ke...@koconnor.net> wrote: > On Mon, Aug 31, 2015 at 11:12:01AM +0200, Marc Marí wrote: > > Add support for the new fw_cfg DMA interface. The protocol is > > explained in QEMU documentation. > > Thanks f

Re: [SeaBIOS] [PATCH v2 2/2] Boot Linux using QEMU fw_cfg DMA interface

2015-08-31 Thread Marc Marí
On Mon, 31 Aug 2015 12:46:57 -0400 "Kevin O'Connor" <ke...@koconnor.net> wrote: > On Mon, Aug 31, 2015 at 11:12:02AM +0200, Marc Marí wrote: > > Reading Linux from the fw_cfg interface is faster using the DMA > > interface. For this reason, add a Linux l

[SeaBIOS] QEMU fw_cfg DMA interface

2015-08-31 Thread Marc Marí
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

[SeaBIOS] [PATCH v2 0/2] QEMU fw_cfg DMA interface

2015-08-31 Thread Marc Marí
Implement guest-side of the QEMU FW CFG DMA interface for x86 Marc Marí (2): Add QEMU fw_cfg DMA interface Boot Linux using QEMU fw_cfg DMA interface src/boot.c| 26 ++ src/fw/paravirt.c | 147 +++--- src/fw/paravirt.h | 60

[SeaBIOS] [PATCH v2 1/2] Add QEMU fw_cfg DMA interface

2015-08-31 Thread Marc Marí
Add support for the new fw_cfg DMA interface. The protocol is explained in QEMU documentation. Signed-off-by: Marc Marí <mar...@redhat.com> --- src/fw/paravirt.c | 65 --- src/fw/paravirt.h | 25 + 2 files chang

[SeaBIOS] [PATCH v2 2/2] Boot Linux using QEMU fw_cfg DMA interface

2015-08-31 Thread Marc Marí
Reading Linux from the fw_cfg interface is faster using the DMA interface. For this reason, add a Linux loader that can benefit from this interface. Signed-off-by: Marc Marí <mar...@redhat.com> --- src/boot.c| 26 + src/fw/paravirt.

[SeaBIOS] 64bit support in SeaBIOS

2015-08-22 Thread Marc Marí
Hello I'm working on basic 64 bit support for SeaBIOS. The reason now is because I want to test booting from an NVDIMM, which is mapped on the region above 4G: http://lists.gnu.org/archive/html/qemu-devel/2015-08/msg01774.html But this feature will also add support for future memory devices that

Re: [SeaBIOS] [RFC 2/2] Add Linux boot code for the fw_cfg dma interface

2015-08-19 Thread Marc Marí
On Wed, 19 Aug 2015 19:31:30 +0200 Gerd Hoffmann kra...@redhat.com wrote: On Mi, 2015-08-19 at 09:57 +0200, Marc Marí wrote: On Wed, 19 Aug 2015 00:27:54 +0200 Gerd Hoffmann kra...@redhat.com wrote: On Di, 2015-07-21 at 18:06 +0200, Marc Marí wrote: It's probably not good

Re: [SeaBIOS] QEMU fw_cfg DMA interface

2015-08-06 Thread Marc Marí
On Thu, 6 Aug 2015 11:30:43 -0400 Kevin O'Connor ke...@koconnor.net wrote: On Thu, Aug 06, 2015 at 02:37:45PM +0200, Marc Marí wrote: On Thu, 6 Aug 2015 13:27:16 +0100 Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Aug 6, 2015 at 12:00 PM, Marc Marí mar...@redhat.com wrote

Re: [SeaBIOS] [RFC 0/2] QEMU fw_cfg dma interface

2015-07-22 Thread Marc Marí
On Tue, 21 Jul 2015 12:47:47 -0400 Kevin O'Connor ke...@koconnor.net wrote: On Tue, Jul 21, 2015 at 06:06:09PM +0200, Marc Marí wrote: These patches, with the support in QEMU (patches in the QEMU mailing list) make the Linux kernel setup and boot approximately 10x faster. Thanks. How do

[SeaBIOS] [RFC 2/2] Add Linux boot code for the fw_cfg dma interface

2015-07-21 Thread Marc Marí
It's probably not good to override all the ROM options. Better ways can be discussed. Signed-off-by: Marc Marí mar...@redhat.com --- src/boot.c| 14 +++- src/fw/paravirt.c | 68 +++ src/fw/paravirt.h | 1 + src/romlayout.S

Re: [SeaBIOS] Reducing SeaBIOS kernel entry time

2015-07-08 Thread Marc Marí
On Wed, 8 Jul 2015 09:10:14 +0100 Stefan Hajnoczi stefa...@gmail.com wrote: On Sat, Jul 4, 2015 at 6:57 PM, Kevin O'Connor ke...@koconnor.net wrote: On Fri, Jul 03, 2015 at 03:12:14PM +0100, Stefan Hajnoczi wrote: On Fri, Jul 3, 2015 at 2:13 PM, Kevin O'Connor ke...@koconnor.net wrote: