From: aliguori Date: Tue, 11 Nov 2008 21:50:17 +0000 (+0000) Subject: Allocate guest memory on host page boundaries (Hollis Blanchard) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6f7af85d98417936f4d5e324f1a6a2ba60fe2528;p=qemu.git Allocate guest memory on host page boundaries (Hollis Blanchard) Signed-off-by: Hollis Blanchard git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5702 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/osdep.c b/osdep.c index 8ff260ab98..30a1263f06 100644 --- 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 }