[SeaBIOS] [PATCH v7 1/5] QEMU DMA: Add DMA write capability

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This allows BIOS to write data back to QEMU using the DMA interface and provides a higher-level abstraction to write to a fw_cfg file Signed-off-by: Ben Warren <b...@skyportsystems.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com>

[SeaBIOS] [PATCH v7 3/5] QEMU fw_cfg: Add command to write back address of file

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This command is similar to ADD_POINTER, but instead of patching memory, it writes the pointer back to QEMU over the DMA interface. Signed-off-by: Ben Warren <b...@skyportsystems.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com>

[SeaBIOS] [PATCH v7 4/5] QEMU fw_cfg: Add functions for accessing files by key

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> Due to memory contraints, when resuming from S3 the fw_cfg "files" API isn't available. This adds a simple API to get a file 'key', and to write to the file using the key as a reference. Signed-off-by: Ben Warren <b...@skyportsy

[SeaBIOS] [PATCH v7 0/5] QEMU: Add capability to write back fw_cfg address to QEMU

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This patch set adds the capability to write to QEMU across the fw_cfg DMA link. It adds a higher-level command to write the BIOS-allocated address of one fw_cfg file into an arbitrary point within another, writeable fw_cfg file across the

[SeaBIOS] [PATCH v7 5/5] QEMU fw_cfg: Write fw_cfg back on S3 resume

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> Any pointers to BIOS-allocated memory that were written back to QEMU fw_cfg files are replayed when resuming from S3 sleep. Signed-off-by: Ben Warren <b...@skyportsystems.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> --- src/f

[SeaBIOS] [PATCH v7 2/5] romfile-loader: Switch to using named structs

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This is a little cleaner and matches how the command structures are defined in QEMU. Signed-off-by: Ben Warren <b...@skyportsystems.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> Reviewed-by: Igor Mammedov <imamm...@re

Re: [SeaBIOS] [PATCH v6 4/5] QEMU fw_cfg: Add functions for accessing files by key

2017-02-20 Thread Ben Warren
> On Feb 20, 2017, at 1:06 PM, Laszlo Ersek <ler...@redhat.com> wrote: > > On 02/20/17 21:14, b...@skyportsystems.com <mailto:b...@skyportsystems.com> > wrote: >> From: Ben Warren <b...@skyportsystems.com> >> >> Due to memory contraints, when

[SeaBIOS] [PATCH v6 4/5] QEMU fw_cfg: Add functions for accessing files by key

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> Due to memory contraints, when resuming from S3 the fw_cfg "files" API isn't available. This adds a simple API to get a file 'key', and to write to the file using the key as a reference. Signed-off-by: Ben Warren <b...@skyportsyste

[SeaBIOS] [PATCH v5 0/5] QEMU: Add capability to write back fw_cfg address to QEMU

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This patch set adds the capability to write to QEMU across the fw_cfg DMA link. It adds a higher-level command to write the BIOS-allocated address of one fw_cfg file into an arbitrary point within another, writeable fw_cfg file across the

[SeaBIOS] [PATCH v6 1/5] QEMU DMA: Add DMA write capability

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This allows BIOS to write data back to QEMU using the DMA interface and provides a higher-level abstraction to write to a fw_cfg file Signed-off-by: Ben Warren <b...@skyportsystems.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com>

[SeaBIOS] [PATCH v6 2/5] romfile-loader: Switch to using named structs

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This is a little cleaner and matches how the command structures are defined in QEMU. Signed-off-by: Ben Warren <b...@skyportsystems.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> Reviewed-by: Igor Mammedov <imamm...@re

[SeaBIOS] [PATCH v6 5/5] QEMU fw_cfg: Write fw_cfg back on S3 resume

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> Any pointers to BIOS-allocated memory that were written back to QEMU fw_cfg files are replayed when resuming from S3 sleep. Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/romfile_loader.c | 33 +

[SeaBIOS] [PATCH v6 3/5] QEMU fw_cfg: Add command to write back address of file

2017-02-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This command is similar to ADD_POINTER, but instead of patching memory, it writes the pointer back to QEMU over the DMA interface. Signed-off-by: Ben Warren <b...@skyportsystems.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com>

[SeaBIOS] [PATCH v5 1/5] QEMU DMA: Add DMA write capability

2017-02-17 Thread ben
From: Ben Warren <b...@skyportsystems.com> This allows BIOS to write data back to QEMU using the DMA interface and provides a higher-level abstraction to write to a fw_cfg file Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/par

[SeaBIOS] [PATCH v5 4/5] QEMU fw_cfg: Add functions for accessing files by key

2017-02-17 Thread ben
From: Ben Warren <b...@skyportsystems.com> When resuming from S3, only fw_cfg file keys are known. Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/paravirt.c | 23 +++ src/fw/paravirt.h | 2 ++ 2 files changed, 25 insertions(+) diff --git a/src/f

[SeaBIOS] [PATCH v5 0/5] QEMU: Add capability to write back fw_cfg address to QEMU

2017-02-17 Thread ben
From: Ben Warren <b...@skyportsystems.com> This patch set adds the capability to write to QEMU across the fw_cfg DMA link. It adds a higher-level command to write the BIOS-allocated address of one fw_cfg file into an arbitrary point within another, writeable fw_cfg file across the

[SeaBIOS] [PATCH v5 5/5] QEMU fw_cfg: Write fw_cfg back on S3 resume

2017-02-17 Thread ben
From: Ben Warren <b...@skyportsystems.com> Any pointers to BIOS-allocated memory that were written back to QEMU fw_cfg files are replayed when resuming from S3 sleep. Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/romfile_loader.c | 35 +++

[SeaBIOS] [PATCH v5 2/5] romfile-loader: Switch to using named structs

2017-02-17 Thread ben
From: Ben Warren <b...@skyportsystems.com> This is a little cleaner and matches how the command structures are defined in QEMU. Signed-off-by: Ben Warren <b...@skyportsystems.com> Reviewed-by: Laszlo Ersek <ler...@redhat.com> --- src/fw/rom

[SeaBIOS] [PATCH v5 3/5] QEMU fw_cfg: Add command to write back address of file

2017-02-17 Thread ben
From: Ben Warren <b...@skyportsystems.com> This command is similar to ADD_POINTER, but instead of patching memory, it writes the pointer back to QEMU over the DMA interface. Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/romfile_l

Re: [SeaBIOS] [PATCH v3 2/2] QEMU fw_cfg: Add command to write back address of file

2017-02-17 Thread Ben Warren
> On Feb 17, 2017, at 2:06 AM, Laszlo Ersek <ler...@redhat.com> wrote: > > CC Kevin > > On 02/17/17 07:10, Ben Warren wrote: >> Hi Laszlo >>> On Feb 9, 2017, at 12:24 AM, Laszlo Ersek <ler...@redhat.com >>> <mailto:ler...@redhat.com>&

[SeaBIOS] [PATCH v4 3/3] QEMU fw_cfg: Add command to write back address of file

2017-02-16 Thread ben
From: Ben Warren <b...@skyportsystems.com> This command is similar to ADD_POINTER, but instead of patching memory, it writes the pointer back to QEMU over the DMA interface. Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/romfile_l

[SeaBIOS] [PATCH v4 2/3] romfile-loader: Switch to using named structs

2017-02-16 Thread ben
From: Ben Warren <b...@skyportsystems.com> This is a little cleaner and matches how the command structures are defined in QEMU. Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/romfile_loader.c | 34 +- src/fw/romfile_l

[SeaBIOS] [PATCH v4 0/3] QEMU: Add capability to write back fw_cfg address to QEMU

2017-02-16 Thread ben
From: Ben Warren <b...@skyportsystems.com> This patch set adds the capability to write to QEMU across the fw_cfg DMA link. It adds a higher-level command to write the BIOS-allocated address of one fw_cfg file into an arbitrary point within another, writeable fw_cfg file across the

[SeaBIOS] [PATCH v4 1/3] QEMU DMA: Add DMA write capability

2017-02-16 Thread ben
From: Ben Warren <b...@skyportsystems.com> This allows BIOS to write data back to QEMU using the DMA interface and provides a higher-level abstraction to write to a fw_cfg file Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/par

Re: [SeaBIOS] [PATCH v3 2/2] QEMU fw_cfg: Add command to write back address of file

2017-02-16 Thread Ben Warren
Hi Laszlo > On Feb 9, 2017, at 12:24 AM, Laszlo Ersek <ler...@redhat.com> wrote: > > On 02/09/17 09:17, Laszlo Ersek wrote: >> Ben, >> >> On 02/05/17 18:09, b...@skyportsystems.com wrote: >>> From: Ben Warren <b...@skyportsystems.com> >>>

Re: [SeaBIOS] [PATCH v3 2/2] QEMU fw_cfg: Add command to write back address of file

2017-02-08 Thread Ben Warren
> On Feb 8, 2017, at 4:30 AM, Laszlo Ersek <ler...@redhat.com> wrote: > > On 02/05/17 18:09, b...@skyportsystems.com <mailto:b...@skyportsystems.com> > wrote: >> From: Ben Warren <b...@skyportsystems.com> >> >> This command is similar t

Re: [SeaBIOS] [PATCH v3 1/2] QEMU DMA: Add DMA write capability

2017-02-08 Thread Ben Warren
> On Feb 8, 2017, at 4:13 AM, Laszlo Ersek <ler...@redhat.com> wrote: > > On 02/05/17 18:09, b...@skyportsystems.com <mailto:b...@skyportsystems.com> > wrote: >> From: Ben Warren <b...@skyportsystems.com> >> >> This allows BIOS to write data back

[SeaBIOS] [PATCH v3 0/2] QEMU: Add capability to write back fw_cfg address to QEMU

2017-02-05 Thread ben
From: Ben Warren <b...@skyportsystems.com> This patch set adds the capability to write to QEMU across the fw_cfg DMA link. It adds a higher-level command to write the BIOS-allocated address of one fw_cfg file into an arbitrary point within another, writeable fw_cfg file across the

[SeaBIOS] [PATCH v3 2/2] QEMU fw_cfg: Add command to write back address of file

2017-02-05 Thread ben
From: Ben Warren <b...@skyportsystems.com> This command is similar to ADD_POINTER, but instead of patching memory, it writes the pointer back to QEMU over the DMA interface. Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/romfile_l

Re: [SeaBIOS] [PATCH] QEMU DMA: Add ability to write back to fw_cfg file

2017-01-20 Thread Ben Warren
> On Jan 20, 2017, at 8:58 AM, Kevin O'Connor <ke...@koconnor.net> wrote: > > On Fri, Jan 20, 2017 at 05:39:58PM +0100, Laszlo Ersek wrote: >> On 01/20/17 17:08, Kevin O'Connor wrote: >>> On Thu, Jan 19, 2017 at 10:20:50PM -0800, b...@skyportsystems.com w

[SeaBIOS] [PATCH v2 2/2] QEMU fw_cfg: Add command to write back address of file

2017-01-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> The command allows the memory allocation of a fw_cfg file by BIOS and subsequent return of the allocated address to QEMU. Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/romfile_loader.c | 38 +++

[SeaBIOS] [PATCH v2 1/2] QEMU DMA: Add DMA write capability

2017-01-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This allows BIOS to write data back to QEMU using the DMA interface and provides a higher-level abstraction to write to a fw_cfg file Signed-off-by: Ben Warren <b...@skyportsystems.com> --- src/fw/par

[SeaBIOS] [PATCH v2 0/2] QEMU: Add capability to write back fw_cfg address to QEMU

2017-01-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This patch set adds the capability to write to QEMU across the DMA link and adds a higher-level command to allocate a fw_cfg file and write its address back to another, writeable fw_cfg file. The initial use case is for Windows VM Generation ID,

[SeaBIOS] [PATCH] QEMU DMA: Add ability to write back to fw_cfg file

2017-01-20 Thread ben
From: Ben Warren <b...@skyportsystems.com> This adds a new command to the DMA protocol. The command allows the memory allocation of a fw_cfg file by BIOS and subsequent return of the allocated address to QEMU. The initial use case is for Windows VM Generation ID, where QEMU needs to

Re: [SeaBIOS] [PATCH] coreboot: Add support for FMAP and multiple CBFS

2016-03-10 Thread Ben Gardner
eOS is switching to use the Depthcharge bootloader. So, maybe this wouldn't work well for everyone. Ben On Thu, Mar 10, 2016 at 9:10 AM, Kevin O'Connor <ke...@koconnor.net> wrote: > On Wed, Mar 09, 2016 at 12:19:43PM -0600, Ben Gardner wrote: >> ROM images with a FMAP may have multip

[SeaBIOS] [PATCH] coreboot: Add support for FMAP and multiple CBFS

2016-03-09 Thread Ben Gardner
-by: Ben Gardner <gardner@gmail.com> --- src/fw/coreboot.c | 148 +- 1 file changed, 124 insertions(+), 24 deletions(-) diff --git a/src/fw/coreboot.c b/src/fw/coreboot.c index 4957b80..0309832 100644 --- a/src/fw/coreboot.c +++ b/