block: Introduce buf register API
commit23d0ba9319f182e258f480bafb7de9f79fb6e0e9
authorFam Zheng <famz@redhat.com>
Tue, 16 Jan 2018 06:08:56 +0000 (16 14:08 +0800)
committerFam Zheng <famz@redhat.com>
Thu, 8 Feb 2018 01:22:03 +0000 (8 09:22 +0800)
tree7e34126e19e9622444f720e5c89dbfd94cbc3cd8
parentbdd6a90a9e5fe22201dce84aea60ac08197e2c63
block: Introduce buf register API

Allow block driver to map and unmap a buffer for later I/O, as a performance
hint.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20180116060901.17413-5-famz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/block-backend.c
block/io.c
include/block/block.h
include/block/block_int.h
include/sysemu/block-backend.h