summary refs log tree commit diff stats
path: root/qemu-io.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-09-21 17:50:58 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2010-09-21 17:50:58 -0500
commite1bb0a1a6c7c6d51443856ca90bd538b1ef5feeb (patch)
treeec271a0d224608382eb146d68298fd9e9fd0d3c9 /qemu-io.c
parentf36d53ef6cb848d5cf204b0854b12e0359f0fd7e (diff)
parentd9d334176c5dba23b47be07192f431b0c030928d (diff)
downloadfocaccia-qemu-e1bb0a1a6c7c6d51443856ca90bd538b1ef5feeb.tar.gz
focaccia-qemu-e1bb0a1a6c7c6d51443856ca90bd538b1ef5feeb.zip
Merge remote branch 'kwolf/for-anthony' into staging
Diffstat (limited to 'qemu-io.c')
-rw-r--r--qemu-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-io.c b/qemu-io.c
index bd3bd16fdf..b4e5cc8fe6 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -61,7 +61,7 @@ static void *qemu_io_alloc(size_t len, int pattern)
 
 	if (misalign)
 		len += MISALIGN_OFFSET;
-	buf = qemu_memalign(512, len);
+	buf = qemu_blockalign(bs, len);
 	memset(buf, pattern, len);
 	if (misalign)
 		buf += MISALIGN_OFFSET;