[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

[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

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

[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

[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 |

[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 ---

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 > wrote: >> From: Ben Warren >> >> Due to memory contraints, when resuming from S3 the fw_cfg "files" API >> isn't

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

2017-02-20 Thread Laszlo Ersek
On 02/20/17 21:14, b...@skyportsystems.com wrote: > 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 > --- >

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

2017-02-20 Thread Laszlo Ersek
On 02/20/17 21:14, b...@skyportsystems.com wrote: > 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. > >

[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

[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

[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 ---

[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 +

[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

Re: [SeaBIOS] [PATCH v3] block: add NVMe boot support

2017-02-20 Thread Kevin O'Connor
On Mon, Feb 13, 2017 at 10:03:59AM +0100, Julian Stecklina wrote: > This patch enables SeaBIOS to boot from NVMe. Finding namespaces and > basic I/O works. Testing has been done in qemu and so far it works with > Grub, syslinux, and the FreeBSD loader. You need a recent Qemu (>= > 2.7.0), because

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

2017-02-20 Thread Kevin O'Connor
On Fri, Feb 17, 2017 at 10:21:59PM -0800, b...@skyportsystems.com wrote: > 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

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

2017-02-20 Thread Kevin O'Connor
On Fri, Feb 17, 2017 at 10:21:58PM -0800, b...@skyportsystems.com wrote: > From: Ben Warren > > When resuming from S3, only fw_cfg file keys are known. > > Signed-off-by: Ben Warren > --- > src/fw/paravirt.c | 23 +++ >

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

2017-02-20 Thread Igor Mammedov
On Fri, 17 Feb 2017 22:21:58 -0800 b...@skyportsystems.com wrote: > From: Ben Warren > > When resuming from S3, only fw_cfg file keys are known. maybe something like this: When resuming from S3 due to memory constrains fw_cfg files API isn't available, so add simple

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

2017-02-20 Thread Igor Mammedov
On Fri, 17 Feb 2017 22:21:55 -0800 b...@skyportsystems.com wrote: > 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

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

2017-02-20 Thread Laszlo Ersek
On 02/18/17 07:21, b...@skyportsystems.com wrote: > 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 > --- >

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

2017-02-20 Thread Laszlo Ersek
On 02/18/17 07:21, b...@skyportsystems.com wrote: > 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 ++

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

2017-02-20 Thread Laszlo Ersek
On 02/18/17 07:21, b...@skyportsystems.com wrote: > 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 > --- >

Re: [SeaBIOS] varlow/extrastack vs code

2017-02-20 Thread Paolo Bonzini
On 18/02/2017 17:55, Kevin O'Connor wrote: > On Sat, Feb 18, 2017 at 04:11:28PM +0100, Paolo Bonzini wrote: >> On 18/02/2017 04:45, Kevin O'Connor wrote: >>> On Fri, Feb 17, 2017 at 02:12:57PM +0100, Paolo Bonzini wrote: On 15/02/2017 18:35, Dr. David Alan Gilbert wrote: > Yes it seems

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

2017-02-20 Thread Laszlo Ersek
On 02/18/17 07:21, b...@skyportsystems.com wrote: > 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 > ---