Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpWJs-0001Y8-I0 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpWJq-0001WZ-VJ for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:20 -0400 Received: from [199.232.76.173] (port=53023 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpWJq-0001WK-FL for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:18 -0400 Received: from mx2.redhat.com ([66.187.237.31]:33280) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpWJp-0003uw-IO for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:55:18 -0400 From: Glauber Costa Date: Mon, 13 Oct 2008 22:51:48 -0200 Message-Id: <1223945508-22241-8-git-send-email-glommer@redhat.com> In-Reply-To: <1223945508-22241-1-git-send-email-glommer@redhat.com> References: <1223945508-22241-1-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH 7/7] Revert "don't allocate ram before accel starts" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, aliguori@us.ibm.com, jes@sgi.com, avi@qumranet.com, dmitry.baryshkov@siemens.com This reverts commit 369b6634b36d267480a064ab038948f5b44e8c9f. --- vl.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/vl.c b/vl.c index f5503bb..ede259f 100644 --- a/vl.c +++ b/vl.c @@ -9050,6 +9050,12 @@ int main(int argc, char **argv) phys_ram_size += ram_size; } + phys_ram_base = qemu_vmalloc(phys_ram_size); + if (!phys_ram_base) { + fprintf(stderr, "Could not allocate physical memory\n"); + exit(1); + } + /* init the dynamic translator */ cpu_exec_init_all(tb_size * 1024 * 1024); @@ -9058,11 +9064,6 @@ int main(int argc, char **argv) exit(1); } - phys_ram_base = qemu_vmalloc(phys_ram_size); - if (!phys_ram_base) { - fprintf(stderr, "Could not allocate physical memory\n"); - exit(1); - } bdrv_init(); -- 1.5.5.1