Commit 6f7af85d98417936f4d5e324f1a6a2ba60fe2528
1 parent
15ed71ba
Allocate guest memory on host page boundaries (Hollis Blanchard)
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
Showing
1 changed file
with
1 additions
and
1 deletions
osdep.c
| @@ -213,7 +213,7 @@ void *qemu_vmalloc(size_t size) | @@ -213,7 +213,7 @@ void *qemu_vmalloc(size_t size) | ||
| 213 | #ifdef _BSD | 213 | #ifdef _BSD |
| 214 | return valloc(size); | 214 | return valloc(size); |
| 215 | #else | 215 | #else |
| 216 | - return memalign(4096, size); | 216 | + return memalign(qemu_getpagesize(), size); |
| 217 | #endif | 217 | #endif |
| 218 | } | 218 | } |
| 219 | 219 |