block: return errors from bdrv_register_buf()
commitf4ec04bae9577eaa55ac35f3971dc3086a4a9192
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 13 Oct 2022 18:59:02 +0000 (13 14:59 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 26 Oct 2022 18:56:42 +0000 (26 14:56 -0400)
treefbb0a27e7d6c59e3593838e77c1cbfeb43703c03
parente8b6535533be4269e4b7bd23d4bb17dd976dc7a3
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>
block/block-backend.c
block/io.c
block/nvme.c
include/block/block-global-state.h
include/block/block_int-common.h
include/sysemu/block-backend-global-state.h
qemu-img.c