From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgB8j-0004ny-FZ for qemu-devel@nongnu.org; Sun, 17 Jun 2012 04:47:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgB8h-0006pX-Ov for qemu-devel@nongnu.org; Sun, 17 Jun 2012 04:47:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgB8h-0006pT-Gl for qemu-devel@nongnu.org; Sun, 17 Jun 2012 04:47:19 -0400 From: Avi Kivity Date: Sun, 17 Jun 2012 11:47:11 +0300 Message-Id: <1339922831-23002-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH] kvm: align ram_size to page boundary List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcelo Tosatti Cc: Michael Tokarev , qemu-devel@nongnu.org, kvm@vger.kernel.org kvm is not able to execute out of partial pages; align the RAM size so partial pages aren't present. Reported-by: Michael Tokarev Signed-off-by: Avi Kivity --- kvm-all.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kvm-all.c b/kvm-all.c index 4ea7d85..482768f 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1311,6 +1311,8 @@ int kvm_init(void) cpu_interrupt_handler = kvm_handle_interrupt; + ram_size = TARGET_PAGE_ALIGN(ram_size); + return 0; err: -- 1.7.10.1