aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2015-07-09 10:56:45 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2015-12-22 16:01:07 +0800
commit648296e067e617e140032c0ab329fb89ffb92aaa (patch)
treed25362f4c479657492c45e88175d9cb125a61aff /block
parentbd44feb754bdb1354f9813ca5dfe883f3d058193 (diff)
downloadqemu-648296e067e617e140032c0ab329fb89ffb92aaa.zip
qemu-648296e067e617e140032c0ab329fb89ffb92aaa.tar.gz
qemu-648296e067e617e140032c0ab329fb89ffb92aaa.tar.bz2
block-backend: add blk_get_max_iov()
Add a function to query BlockLimits.max_iov. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/block-backend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/block/block-backend.c b/block/block-backend.c
index 36ccc9e..f41d326 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -1023,6 +1023,11 @@ int blk_get_max_transfer_length(BlockBackend *blk)
}
}
+int blk_get_max_iov(BlockBackend *blk)
+{
+ return blk->bs->bl.max_iov;
+}
+
void blk_set_guest_block_size(BlockBackend *blk, int align)
{
blk->guest_block_size = align;