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

2017-11-16 Thread Michael S. Tsirkin
On Thu, Nov 16, 2017 at 08:17:12AM -0500, Marc-André Lureau wrote: > Hi > > - Original Message - > > On Mon, Nov 13, 2017 at 08:29:56PM +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.

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

2017-11-16 Thread Marc-André Lureau
Hi - Original Message - > On Mon, Nov 13, 2017 at 08:29:56PM +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. > > > > To avoid polling with unbound amount of time, the DMA operation is >

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

2017-11-16 Thread Marc-André Lureau
Hi - Original Message - > On Mon, Nov 13, 2017 at 08:27:48PM +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. > > > > To avoid polling with unbound amount of time, the DMA operation is >

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

2017-11-15 Thread Michael S. Tsirkin
On Mon, Nov 13, 2017 at 08:27:48PM +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. > > To avoid polling with unbound amount of time, the DMA operation is > expected to complete within 200ms, or will

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

2017-11-15 Thread Michael S. Tsirkin
On Mon, Nov 13, 2017 at 08:29:56PM +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. > > To avoid polling with unbound amount of time, the DMA operation is > expected to complete within 200ms, or will

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

2017-11-13 Thread Marc-André Lureau
Modify fw_cfg_read_blob() to use DMA if the device supports it. Return errors, because the operation may fail. To avoid polling with unbound amount of time, the DMA operation is expected to complete within 200ms, or will return ETIME error. We may want to switch all the *buf addresses to use only

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

2017-11-13 Thread Marc-André Lureau
Modify fw_cfg_read_blob() to use DMA if the device supports it. Return errors, because the operation may fail. To avoid polling with unbound amount of time, the DMA operation is expected to complete within 200ms, or will return ETIME error. We may want to switch all the *buf addresses to use only