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

2017-02-20 Thread ben
From: Ben Warren 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 Reviewed-by: Laszlo Ersek Reviewed-by: Igor Mammedov --- src/fw/paravirt.c | 49

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

2017-02-20 Thread ben
From: Ben Warren 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 Reviewed-by: Laszlo Ersek Reviewed-by: Igor Mammedov --- src/fw/romfile_loader.c | 45

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

2017-02-20 Thread ben
From: Ben Warren 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 Reviewed-by: Igor Mammedov Reviewed-b

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

2017-02-20 Thread ben
From: Ben Warren 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 above-mentioned link. The initial use

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

2017-02-20 Thread ben
From: Ben Warren 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 Reviewed-by: Laszlo Ersek --- src/fw/romfile_loader.c | 33 + src/fw/romfile_loader.h | 2

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

2017-02-20 Thread ben
From: Ben Warren This is a little cleaner and matches how the command structures are defined in QEMU. Signed-off-by: Ben Warren Reviewed-by: Laszlo Ersek Reviewed-by: Igor Mammedov --- src/fw/romfile_loader.c | 34 +- src/fw/romfile_loader.h | 40

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 wrote: > > On 02/20/17 21:14, b...@skyportsystems.com <mailto:b...@skyportsystems.com> > wrote: >> From: Ben Warren >> >> Due to memory contraints, when resuming from S3 the fw_cfg "files" API >&g

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

2017-02-20 Thread ben
From: Ben Warren 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 --

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

2017-02-20 Thread ben
From: Ben Warren 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 above-mentioned link. The initial use

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

2017-02-20 Thread ben
From: Ben Warren This is a little cleaner and matches how the command structures are defined in QEMU. Signed-off-by: Ben Warren Reviewed-by: Laszlo Ersek Reviewed-by: Igor Mammedov --- src/fw/romfile_loader.c | 34 +- src/fw/romfile_loader.h | 40

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

2017-02-20 Thread ben
From: Ben Warren 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 Reviewed-by: Laszlo Ersek Reviewed-by: Igor Mammedov --- src/fw/paravirt.c | 49

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

2017-02-20 Thread ben
From: Ben Warren 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 --- src/fw/romfile_loader.c | 33 + src/fw/romfile_loader.h | 2 ++ src/resume.c

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

2017-02-20 Thread ben
From: Ben Warren 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 Reviewed-by: Laszlo Ersek Reviewed-by: Igor Mammedov --- src/fw/romfile_loader.c | 45

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

2017-02-17 Thread ben
From: Ben Warren 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 --- src/fw/paravirt.c | 49 + src/fw/paravirt.h | 3 +++ 2 files

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

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

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

2017-02-17 Thread ben
From: Ben Warren 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 above-mentioned link. The initial use

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

2017-02-17 Thread ben
From: Ben Warren 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 --- src/fw/romfile_loader.c | 35 +++ src/fw/romfile_loader.h | 2 ++ src/resume.c

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

2017-02-17 Thread ben
From: Ben Warren This is a little cleaner and matches how the command structures are defined in QEMU. Signed-off-by: Ben Warren Reviewed-by: Laszlo Ersek --- src/fw/romfile_loader.c | 34 +- src/fw/romfile_loader.h | 40

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

2017-02-17 Thread ben
From: Ben Warren 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 --- src/fw/romfile_loader.c | 45 + src/fw/romfile_loader.h | 23

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 wrote: > > CC Kevin > > On 02/17/17 07:10, Ben Warren wrote: >> Hi Laszlo >>> On Feb 9, 2017, at 12:24 AM, Laszlo Ersek >> <mailto:ler...@redhat.com>> wrote: >>> >>> On 02/09/17 09:17

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

2017-02-16 Thread ben
From: Ben Warren 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 --- src/fw/romfile_loader.c | 40 src/fw/romfile_loader.h | 23

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

2017-02-16 Thread ben
From: Ben Warren 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 above-mentioned link. The initial use

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

2017-02-16 Thread ben
From: Ben Warren 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 --- src/fw/paravirt.c | 49 + src/fw/paravirt.h | 3 +++ 2 files

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

2017-02-16 Thread ben
From: Ben Warren This is a little cleaner and matches how the command structures are defined in QEMU. Signed-off-by: Ben Warren --- src/fw/romfile_loader.c | 34 +- src/fw/romfile_loader.h | 40 2 files changed, 37

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 wrote: > > On 02/09/17 09:17, Laszlo Ersek wrote: >> Ben, >> >> On 02/05/17 18:09, b...@skyportsystems.com wrote: >>> From: Ben Warren >>> >>> This command is similar to ADD_POIN

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 wrote: > > On 02/05/17 18:09, b...@skyportsystems.com <mailto:b...@skyportsystems.com> > wrote: >> From: Ben Warren >> >> This command is similar to ADD_POINTER, but instead of patching >> memory, it wr

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 wrote: > > On 02/05/17 18:09, b...@skyportsystems.com <mailto:b...@skyportsystems.com> > wrote: >> From: Ben Warren >> >> This allows BIOS to write data back to QEMU using the DMA interface and >> provide

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

2017-02-05 Thread ben
From: Ben Warren 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 above-mentioned link. The initial use

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

2017-02-05 Thread ben
From: Ben Warren 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 --- src/fw/romfile_loader.c | 37 + src/fw/romfile_loader.h | 16

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

2017-02-05 Thread ben
From: Ben Warren 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 --- src/fw/paravirt.c | 49 + src/fw/paravirt.h | 3 +++ 2 files

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 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 wrote: >>>>

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

2017-01-20 Thread ben
From: Ben Warren 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 --- src/fw/romfile_loader.c | 38 ++ src/fw/romfile_loader.h | 23 --- 2

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

2017-01-20 Thread ben
From: Ben Warren 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 --- src/fw/paravirt.c | 49 + src/fw/paravirt.h | 3 +++ 2 files

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

2017-01-20 Thread ben
From: Ben Warren 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, where QEMU needs to change the

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

2017-01-20 Thread ben
From: Ben Warren 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 change the contents of fw_cfg data

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

2016-03-10 Thread Ben Gardner
that ChromeOS 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 wrote: > On Wed, Mar 09, 2016 at 12:19:43PM -0600, Ben Gardner wrote: >> ROM images with a FMAP may have multiple

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

2016-03-09 Thread Ben Gardner
d-off-by: Ben Gardner --- 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/src/fw/coreboot.c @@ -86,6 +