mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
block: return errors from bdrv_register_buf()
Registering an I/O buffer is only a performance optimization hint but it is still necessary to return errors when it fails. Later patches will need to detect errors when registering buffers but an immediate advantage is that error_report() calls are no longer needed in block driver .bdrv_register_buf() functions. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20221013185908.1297568-8-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
e8b6535533
commit
f4ec04bae9
7 changed files with 52 additions and 18 deletions
|
@ -106,7 +106,7 @@ void blk_io_limits_enable(BlockBackend *blk, const char *group);
|
|||
void blk_io_limits_update_group(BlockBackend *blk, const char *group);
|
||||
void blk_set_force_allow_inactivate(BlockBackend *blk);
|
||||
|
||||
void blk_register_buf(BlockBackend *blk, void *host, size_t size);
|
||||
bool blk_register_buf(BlockBackend *blk, void *host, size_t size, Error **errp);
|
||||
void blk_unregister_buf(BlockBackend *blk, void *host, size_t size);
|
||||
|
||||
const BdrvChild *blk_root(BlockBackend *blk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue