Allocate guest memory on host page boundaries (Hollis Blanchard)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 11 Nov 2008 21:50:17 +0000 (21:50 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 11 Nov 2008 21:50:17 +0000 (21:50 +0000)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5702 c046a42c-6fe2-441c-8c8c-71466251a162

osdep.c

diff --git a/osdep.c b/osdep.c
index 8ff260ab9805dae761c92cbeaa5b4b2ff6bc078f..30a1263f0650fc9d7a89bef9d38ca3ef5485c119 100644 (file)
--- a/osdep.c
+++ b/osdep.c
@@ -213,7 +213,7 @@ void *qemu_vmalloc(size_t size)
 #ifdef _BSD
     return valloc(size);
 #else
-    return memalign(4096, size);
+    return memalign(qemu_getpagesize(), size);
 #endif
 }