Re: [PATCH v6 04/13] block: pass size to bdrv_unregister_buf()

2022-10-07 Thread Stefano Garzarella
On Thu, Oct 06, 2022 at 05:34:58PM -0400, Stefan Hajnoczi wrote: The only implementor of bdrv_register_buf() is block/nvme.c, where the size is not needed when unregistering a buffer. This is because util/vfio-helpers.c can look up mappings by address. Future block drivers that implement

[PATCH v6 04/13] block: pass size to bdrv_unregister_buf()

2022-10-06 Thread Stefan Hajnoczi
The only implementor of bdrv_register_buf() is block/nvme.c, where the size is not needed when unregistering a buffer. This is because util/vfio-helpers.c can look up mappings by address. Future block drivers that implement bdrv_register_buf() may not be able to do their job given only the buffer