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
Cap code_gen_buffer_size on ia64 - it quickly goes out of hand otherwise
when booting larger guests.
Signed-off-by: Jes Sorensen <[EMAIL PROTECTED]>
---
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,