On Wed, Jul 05, 2017 at 09:36:32PM +0800, Fam Zheng wrote: > diff --git a/include/block/block_int.h b/include/block/block_int.h > index 15fa602..4092669 100644 > --- a/include/block/block_int.h > +++ b/include/block/block_int.h > @@ -381,6 +381,10 @@ struct BlockDriver { > uint64_t parent_perm, uint64_t parent_shared, > uint64_t *nperm, uint64_t *nshared); > > + /* Map and unmap a buffer for I/O, as a performance hint to the > + * driver. */ > + void (*bdrv_dma_map)(BlockDriverState *bs, void *host, size_t size); > + void (*bdrv_dma_unmap)(BlockDriverState *bs, void *host);
It's unclear what this API does and how to use it correctly. Please flesh out the doc comments a bit to explain its use.
signature.asc
Description: PGP signature