projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
qemu: introduce qemu_cpu_kick (Marcelo Tosatti)
[qemu]
/
block-raw-posix.c
diff --git
a/block-raw-posix.c
b/block-raw-posix.c
index
822839f
..
0663c06
100644
(file)
--- a/
block-raw-posix.c
+++ b/
block-raw-posix.c
@@
-165,7
+165,7
@@
static int raw_open(BlockDriverState *bs, const char *filename, int flags)
s->fd = fd;
s->aligned_buf = NULL;
if ((flags & BDRV_O_NOCACHE)) {
- s->aligned_buf = qemu_memalign(512, ALIGNED_BUFFER_SIZE);
+ s->aligned_buf = qemu_blockalign(bs, ALIGNED_BUFFER_SIZE);
if (s->aligned_buf == NULL) {
ret = -errno;
close(fd);