aboutsummaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-09-06 18:58:56 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-12 15:17:22 +0200
commit7b6f9300d55c6f01a65ed27a25b87b2748faceee (patch)
treee324791fd740f92f06157f028958d207c52adf45 /block.h
parentfb0c61a5a51cd51f0c4e2f009ccb4a44bd9d8544 (diff)
downloadqemu-7b6f9300d55c6f01a65ed27a25b87b2748faceee.zip
qemu-7b6f9300d55c6f01a65ed27a25b87b2748faceee.tar.gz
qemu-7b6f9300d55c6f01a65ed27a25b87b2748faceee.tar.bz2
block: New bdrv_set_buffer_alignment()
Device models should be able to set it without an unclean include of block_int.h. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.h b/block.h
index 6e0c468..4b7fa35 100644
--- a/block.h
+++ b/block.h
@@ -269,6 +269,7 @@ int bdrv_img_create(const char *filename, const char *fmt,
const char *base_filename, const char *base_fmt,
char *options, uint64_t img_size, int flags);
+void bdrv_set_buffer_alignment(BlockDriverState *bs, int align);
void *qemu_blockalign(BlockDriverState *bs, size_t size);
#define BDRV_SECTORS_PER_DIRTY_CHUNK 2048