qemu-io: add -r option to register I/O buffer
commit00e2a04c274cacfc2134e7b88f120ebe762f7223
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 7 Feb 2023 20:37:18 +0000 (7 15:37 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 9 Feb 2023 15:22:30 +0000 (9 10:22 -0500)
tree31fb0f20510bf554440e99368c1f2f1acb90d717
parent1321e00801bc26ff8059e8513f3ae3f7265d24f6
qemu-io: add -r option to register I/O buffer

The blk_register_buf() API is an optimization hint that allows some
block drivers to avoid I/O buffer housekeeping or bounce buffers.

Add an -r option to register the I/O buffer so that qemu-io can be used
to test the blk_register_buf() API. The next commit will add a test that
uses the new option.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230207203719.242926-4-stefanha@redhat.com>
qemu-io-cmds.c