Re: [Qemu-devel] [PATCH v8 3/5] fw_cfg: do DMA read operation

2017-12-01 Thread Michael S. Tsirkin
On Thu, Nov 23, 2017 at 03:02:04PM +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 b

[Qemu-devel] [PATCH v8 3/5] fw_cfg: do DMA read operation

2017-11-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.