From 8f7a38762931961902581057e3ed5f68253859b6 Mon Sep 17 00:00:00 2001
From: Zhang Xiantao <xiantao.zhang@intel.com>
Date: Sat, 8 Dec 2007 10:38:04 +0800
Subject: [PATCH] kvm: qemu : Changing memory align size to TARGET_PAGE_SIZE.

Since other cpus may use big page size, allocated memory must
bed aligned with host page size. Otherwise, it will block userspace
memory allocatoin mechanism.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
---
 qemu/osdep.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu/osdep.c b/qemu/osdep.c
index 0eaf2ba..195eefc 100644
--- a/qemu/osdep.c
+++ b/qemu/osdep.c
@@ -183,7 +183,7 @@ void *qemu_vmalloc(size_t size)
 #ifdef _BSD
     return valloc(size);
 #else
-    return memalign(4096, size);
+    return memalign(TARGET_PAGE_SIZE, size);
 #endif
 }
 
-- 
1.5.2

