From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Date: Wed, 24 Sep 2008 09:19:22 +0000 Subject: [patch] cap code_gen_buffer_size on ia64 Message-Id: <48DA061A.20705@sgi.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------040508000100050806050600" List-Id: To: kvm-ia64@vger.kernel.org This is a multi-part message in MIME format. --------------040508000100050806050600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, This one limits the code_gen_buffer_size on ia64, phys_mem_size/4 really gets out of hand when you boot say a 64GB guest. Cheers, Jes --------------040508000100050806050600 Content-Type: text/plain; name="1200-ia64-code-gen-buffer.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="1200-ia64-code-gen-buffer.patch" Cap code_gen_buffer_size on ia64 - it quickly goes out of hand otherwise when booting larger guests. Signed-off-by: Jes Sorensen --- qemu/exec.c | 4 ++++ 1 file changed, 4 insertions(+) Index: kvm-userspace.git/qemu/exec.c =================================================================== --- kvm-userspace.git.orig/qemu/exec.c +++ kvm-userspace.git/qemu/exec.c @@ -443,6 +443,10 @@ start = (void *) 0x60000000UL; if (code_gen_buffer_size > (512 * 1024 * 1024)) code_gen_buffer_size = (512 * 1024 * 1024); +#elif defined(__ia64__) + /* cap the mapping, don't want it totally out of hand */ + if (code_gen_buffer_size > (512 * 1024 * 1024)) + code_gen_buffer_size = (512 * 1024 * 1024); #endif code_gen_buffer = mmap(start, code_gen_buffer_size, PROT_WRITE | PROT_READ | PROT_EXEC, --------------040508000100050806050600-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Subject: [patch] cap code_gen_buffer_size on ia64 Date: Wed, 24 Sep 2008 11:19:22 +0200 Message-ID: <48DA061A.20705@sgi.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040508000100050806050600" To: kvm@vger.kernel.org, kvm-ia64@vger.kernel.org Return-path: Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:54695 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751538AbYIXJTY (ORCPT ); Wed, 24 Sep 2008 05:19:24 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------040508000100050806050600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, This one limits the code_gen_buffer_size on ia64, phys_mem_size/4 really gets out of hand when you boot say a 64GB guest. Cheers, Jes --------------040508000100050806050600 Content-Type: text/plain; name="1200-ia64-code-gen-buffer.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="1200-ia64-code-gen-buffer.patch" Cap code_gen_buffer_size on ia64 - it quickly goes out of hand otherwise when booting larger guests. Signed-off-by: Jes Sorensen --- qemu/exec.c | 4 ++++ 1 file changed, 4 insertions(+) Index: kvm-userspace.git/qemu/exec.c =================================================================== --- kvm-userspace.git.orig/qemu/exec.c +++ kvm-userspace.git/qemu/exec.c @@ -443,6 +443,10 @@ start = (void *) 0x60000000UL; if (code_gen_buffer_size > (512 * 1024 * 1024)) code_gen_buffer_size = (512 * 1024 * 1024); +#elif defined(__ia64__) + /* cap the mapping, don't want it totally out of hand */ + if (code_gen_buffer_size > (512 * 1024 * 1024)) + code_gen_buffer_size = (512 * 1024 * 1024); #endif code_gen_buffer = mmap(start, code_gen_buffer_size, PROT_WRITE | PROT_READ | PROT_EXEC, --------------040508000100050806050600--