Re: [Qemu-devel] [PATCH v10 2/4] fw_cfg: do DMA read operation

2018-01-24 Thread Marc-Andre Lureau
Hi On Wed, Jan 24, 2018 at 4:25 AM, Peter Xu wrote: > On Tue, Jan 23, 2018 at 05:40:39PM +0100, Marc-André Lureau wrote: >> Modify fw_cfg_read_blob() to use DMA if the device supports it. >> Return errors, because the operation may fail. >> >> The DMA operation is expected to

Re: [Qemu-devel] [PATCH v10 2/4] fw_cfg: do DMA read operation

2018-01-23 Thread Peter Xu
On Tue, Jan 23, 2018 at 05:40:39PM +0100, Marc-André Lureau wrote: > Modify fw_cfg_read_blob() to use DMA if the device supports it. > Return errors, because the operation may fail. > > The DMA operation is expected to run synchronously with today qemu, > but the specification states that it may

[Qemu-devel] [PATCH v10 2/4] fw_cfg: do DMA read operation

2018-01-23 Thread Marc-André Lureau
Modify fw_cfg_read_blob() to use DMA if the device supports it. Return errors, because the operation may fail. The DMA operation is expected to run synchronously with today qemu, but the specification states that it may become async, so we run "control" field check in a loop for eventual changes.