Avi Kivity wrote:
Jes Sorensen wrote:
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.
ia64 doesn't codegen; why not set it to zero?
How about this one then?
Jes
Do not allocate a code_gen buffer on ia64 given it doesn't support
code generation.
Signed-off-by: Jes Sorensen <jes@xxxxxxx>
---
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
@@ -407,6 +407,10 @@
static void code_gen_alloc(unsigned long tb_size)
{
+#ifdef TARGET_IA64
+ return;
+#endif
+
#ifdef USE_STATIC_CODE_GEN_BUFFER
code_gen_buffer = static_code_gen_buffer;
code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE;