Skip to contentSkip to conversation

[5702] Allocate guest memory on host page boundaries (Hollis Blanchard)

Qemu-devel Anthony Liguori 1 participant 1 message Nov 11, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5702

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5702
Author:   aliguori
Date:     2008-11-11 21:50:17 +0000 (Tue, 11 Nov 2008)

Log Message:
-----------
Allocate guest memory on host page boundaries (Hollis Blanchard)

Modified Paths:
--------------
trunk/osdep.c

Modified: trunk/osdep.c
===================================================================

osdep.c +1 -1
@@ -213,7 +213,7 @@
 #ifdef _BSD
     return valloc(size);
 #else
-    return memalign(4096, size);
+    return memalign(qemu_getpagesize(), size);
 #endif
 }