commit | da1fa91d6cca8a6d3da9c2b222fa485429db297c | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Thu Jul 14 17:27:13 2011 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Tue Aug 02 15:53:40 2011 +0200 |
tree | c77f342d36c65fb1773c1f9c563f2d5b531e6f4e | |
parent | 5e3840ce24040cbd1957008489cbc136c43ca391 [diff] |
block: Add bdrv_co_readv/writev Add new block driver callbacks bdrv_co_readv/writev, which work on a QEMUIOVector like bdrv_aio_*, but don't need a callback. The function may only be called inside a coroutine, so a block driver implementing this interface can yield instead of blocking during I/O. Signed-off-by: Kevin Wolf <kwolf@redhat.com>