提交 6f7af85d 编写于 作者: A aliguori

Allocate guest memory on host page boundaries (Hollis Blanchard)

Signed-off-by: NHollis Blanchard <hollisb@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5702 c046a42c-6fe2-441c-8c8c-71466251a162
上级 15ed71ba
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册