Re: [PATCH v6 12/13] blkio: implement BDRV_REQ_REGISTERED_BUF optimization

2022-10-13 Thread Stefan Hajnoczi
On Mon, Oct 10, 2022 at 02:57:47PM +0100, Alberto Faria wrote: > On Thu, Oct 6, 2022 at 10:35 PM Stefan Hajnoczi wrote: > > @@ -620,15 +767,39 @@ static int blkio_file_open(BlockDriverState *bs, > > QDict *options, int flags, > > return ret; > > } > > > > +ret = blkio_get_bool(s

Re: [PATCH v6 12/13] blkio: implement BDRV_REQ_REGISTERED_BUF optimization

2022-10-10 Thread Alberto Faria
On Thu, Oct 6, 2022 at 10:35 PM Stefan Hajnoczi wrote: > Avoid bounce buffers when QEMUIOVector elements are within previously > registered bdrv_register_buf() buffers. > > The idea is that emulated storage controllers will register guest RAM > using bdrv_register_buf() and set the BDRV_REQ_REGIST

[PATCH v6 12/13] blkio: implement BDRV_REQ_REGISTERED_BUF optimization

2022-10-06 Thread Stefan Hajnoczi
Avoid bounce buffers when QEMUIOVector elements are within previously registered bdrv_register_buf() buffers. The idea is that emulated storage controllers will register guest RAM using bdrv_register_buf() and set the BDRV_REQ_REGISTERED_BUF on I/O requests. Therefore no blkio_map_mem_region() cal