Skip to contentSkip to conversation

Latest qemu tcg breakage

PATCH Jerone Young 4 participants 9 messages Jun 9, 2008 – Jun 24, 2008 KVM

lore
Share & tools
lore
#0 lore raw

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

Just something to keep in mind.

qemu/Makefile.target +1 -1
@@ -196,7 +196,6 @@ LIBOBJS+=fake-exec.o
 LIBOBJS+=fake-exec.o
 else
 LIBOBJS+= translate-all.o translate.o
-endif
 ifdef CONFIG_DYNGEN_OP
 LIBOBJS+=op.o
 endif
@@ -205,6 +204,7 @@ CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH
 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
 ifeq ($(ARCH),sparc64)
 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
+endif
 endif
 
 ifeq ($(USE_KVM), 1)
qemu/exec.c +4 -1
@@ -37,8 +37,11 @@
 #include "exec-all.h"
 #include "qemu-common.h"
 
+#ifdef USE_KVM
+#include "qemu-kvm.h"
+#else
 #include "tcg.h"
-#include "qemu-kvm.h"
+#endif
 
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>
@@ -3197,7 +3200,9 @@ void dump_exec_info(FILE *f,
     cpu_fprintf(f, "TB flush count      %d\n", tb_flush_count);
     cpu_fprintf(f, "TB invalidate count %d\n",
tb_phys_invalidate_count);
     cpu_fprintf(f, "TLB flush count     %d\n", tlb_flush_count);
+#if !defined(USE_KVM)
     tcg_dump_info(f, cpu_fprintf);

+#endif
}

#if !defined(CONFIG_USER_ONLY)

#1 lore raw
Quoted 12 lines · Jerone Young

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

ifeq ($(USE_KVM), 1)

qemu/exec.c line 45

Quoted 10 lines
qemu/exec.c +4 -1
@@ -37,8 +37,11 @@
 #include "exec-all.h"
 #include "qemu-common.h"
 
+#ifdef USE_KVM
+#include "qemu-kvm.h"
+#else
 #include "tcg.h"
-#include "qemu-kvm.h"
+#endif
 

We want to keep the ability to have both emulation (-no-kvm) and virtualization, at least for x86, so let's keep tcg.h includable.

Quoted 5 lines
qemu/exec.c +0 -0
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>

qemu/exec.c void dump_exec_info(FILE *f, · line 3208

Quoted 9 lines
qemu/exec.c +2 -0
@@ -3197,7 +3200,9 @@ void dump_exec_info(FILE *f,
     cpu_fprintf(f, "TB flush count      %d\n", tb_flush_count);
     cpu_fprintf(f, "TB invalidate count %d\n",
 tb_phys_invalidate_count);
     cpu_fprintf(f, "TLB flush count     %d\n", tlb_flush_count);
+#if !defined(USE_KVM)
     tcg_dump_info(f, cpu_fprintf);
+#endif
 }
 

How about

  #define tcg_dump_info(x, y) (void)0

in some strategic spot?

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
#2 lore raw
In reply to Jerone Young
Quoted 8 lines · Jerone Young

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

Just something to keep in mind.

Now that TCG supports PPC, shouldn't ya'll be able to drop --disable-cpu-emulation. I believe that will simultaneously fix your problem and reduce the difference between upstream QEMU.

Regards,

Anthony Liguori

Quoted 55 lines
qemu/Makefile.target +1 -1
@@ -196,7 +196,6 @@ LIBOBJS+=fake-exec.o
 LIBOBJS+=fake-exec.o
 else
 LIBOBJS+= translate-all.o translate.o
-endif
 ifdef CONFIG_DYNGEN_OP
 LIBOBJS+=op.o
 endif
@@ -205,6 +204,7 @@ CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH
 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
 ifeq ($(ARCH),sparc64)
 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
+endif
 endif
 
 ifeq ($(USE_KVM), 1)
qemu/exec.c +6 -1
@@ -37,8 +37,11 @@
 #include "exec-all.h"
 #include "qemu-common.h"
 
+#ifdef USE_KVM
+#include "qemu-kvm.h"
+#else
 #include "tcg.h"
-#include "qemu-kvm.h"
+#endif
 
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>
@@ -3197,7 +3200,9 @@ void dump_exec_info(FILE *f,
     cpu_fprintf(f, "TB flush count      %d\n", tb_flush_count);
     cpu_fprintf(f, "TB invalidate count %d\n",
 tb_phys_invalidate_count);
     cpu_fprintf(f, "TLB flush count     %d\n", tlb_flush_count);
+#if !defined(USE_KVM)
     tcg_dump_info(f, cpu_fprintf);
+#endif
 }
 

#if !defined(CONFIG_USER_ONLY)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 7 lines · Anthony Liguori
Quoted 6 lines · Jerone Young

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

Quoted 6 lines
Quoted 2 lines

Just something to keep in mind.

Now that TCG supports PPC, shouldn't ya'll be able to drop --disable-cpu-emulation. I believe that will simultaneously fix your problem and reduce the difference between upstream QEMU.

Hmm...this may just be what is needed. Building upstream CVS works. Actually building without --disable-cpu-emulation WORKS.

So given this I'll create a patch to remove --disable-cpu-emulation and the fake cpu-exec files we have.

Quoted 61 lines

Regards,

Anthony Liguori

Quoted 55 lines
qemu/Makefile.target +1 -1
@@ -196,7 +196,6 @@ LIBOBJS+=fake-exec.o
 LIBOBJS+=fake-exec.o
 else
 LIBOBJS+= translate-all.o translate.o
-endif
 ifdef CONFIG_DYNGEN_OP
 LIBOBJS+=op.o
 endif
@@ -205,6 +204,7 @@ CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH
 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
 ifeq ($(ARCH),sparc64)
 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
+endif
 endif
 
 ifeq ($(USE_KVM), 1)
qemu/exec.c +6 -1
@@ -37,8 +37,11 @@
 #include "exec-all.h"
 #include "qemu-common.h"
 
+#ifdef USE_KVM
+#include "qemu-kvm.h"
+#else
 #include "tcg.h"
-#include "qemu-kvm.h"
+#endif
 
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>
@@ -3197,7 +3200,9 @@ void dump_exec_info(FILE *f,
     cpu_fprintf(f, "TB flush count      %d\n", tb_flush_count);
     cpu_fprintf(f, "TB invalidate count %d\n",
 tb_phys_invalidate_count);
     cpu_fprintf(f, "TLB flush count     %d\n", tlb_flush_count);
+#if !defined(USE_KVM)
     tcg_dump_info(f, cpu_fprintf);
+#endif
 }
 

#if !defined(CONFIG_USER_ONLY)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to Anthony Liguori

Actually I was mistaken. While upstream qemu does compile, after doing a clean on my local directory of kvm-userspace. I'm finding that after removing cpu-emulation stuff I get a error when building exec.c

In file included from /home/jerone/work/kvm-userspace/qemu/tcg/tcg.h:50,
from /home/jerone/work/kvm-userspace/qemu/exec.c:40:
/home/jerone/work/kvm-userspace/qemu/tcg/tcg-opc.h:25:24: dyngen-opc.h:
No such file or directory

Now removing CONFIG_DYNGEN from configure yields more errors ;-). This is removed for x86 & ia64.

So lets not remove it till can git this sorted out. But here is a patch attached to play with :-L

Quoted 68 lines · Anthony Liguori
Quoted 8 lines · Jerone Young

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

Just something to keep in mind.

Now that TCG supports PPC, shouldn't ya'll be able to drop --disable-cpu-emulation. I believe that will simultaneously fix your problem and reduce the difference between upstream QEMU.

Regards,

Anthony Liguori

Quoted 50 lines
qemu/Makefile.target +1 -1
@@ -196,7 +196,6 @@ LIBOBJS+=fake-exec.o
 LIBOBJS+=fake-exec.o
 else
 LIBOBJS+= translate-all.o translate.o
-endif
 ifdef CONFIG_DYNGEN_OP
 LIBOBJS+=op.o
 endif
@@ -205,6 +204,7 @@ CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH
 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
 ifeq ($(ARCH),sparc64)
 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
+endif
 endif
 
 ifeq ($(USE_KVM), 1)
qemu/exec.c +6 -1
@@ -37,8 +37,11 @@
 #include "exec-all.h"
 #include "qemu-common.h"
 
+#ifdef USE_KVM
+#include "qemu-kvm.h"
+#else
 #include "tcg.h"
-#include "qemu-kvm.h"
+#endif
 
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>
@@ -3197,7 +3200,9 @@ void dump_exec_info(FILE *f,
     cpu_fprintf(f, "TB flush count      %d\n", tb_flush_count);
     cpu_fprintf(f, "TB invalidate count %d\n",
 tb_phys_invalidate_count);
     cpu_fprintf(f, "TLB flush count     %d\n", tlb_flush_count);
+#if !defined(USE_KVM)
     tcg_dump_info(f, cpu_fprintf);
+#endif
 }
 

#if !defined(CONFIG_USER_ONLY)

Quoted 10 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Remove qemu files and entries associated with --disable-cpu-emulation configure argument.

qemu/Makefile.target +0 -4
@@ -192,11 +192,7 @@ all: $(PROGS)
 # cpu emulator library
 LIBOBJS=exec.o kqemu.o cpu-exec.o host-utils.o
 
-ifeq ($(NO_CPU_EMULATION), 1)
-LIBOBJS+=fake-exec.o
-else
 LIBOBJS+= translate-all.o translate.o
-endif
 ifdef CONFIG_DYNGEN_OP
 LIBOBJS+=op.o
 endif
qemu/configure +0 -13
@@ -116,7 +116,6 @@ uname_release=""
 uname_release=""
 curses="yes"
 nptl="yes"
-cpu_emulation="yes"
 device_tree_support=""
 
 # OS specific
@@ -353,8 +352,6 @@ for opt do
   ;;
   --disable-nptl) nptl="no"
   ;;
-  --disable-cpu-emulation) cpu_emulation="no"
-  ;;
   --disable-libfdt) device_tree_support="no"
   ;;
   *) echo "ERROR: unknown option $opt"; exit 1
@@ -463,7 +460,6 @@ echo "  --fmod-inc               path to
 echo "  --fmod-inc               path to FMOD includes"
 echo "  --enable-uname-release=R Return R for uname -r in usermode emulation"
 echo "  --sparc_cpu=V            Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"
-echo "  --disable-cpu-emulation  disables use of qemu cpu emulation code"
 echo "  --disable-libfdt         disables use of libfdt support for device tree"
 echo ""
 echo "NOTE: The object files are built at the place where configure is launched"
@@ -926,7 +922,6 @@ fi
 fi
 echo "kqemu support     $kqemu"
 echo "kvm support       $kvm"
-echo "CPU emulation     $cpu_emulation"
 if test $cpu = "powerpc"; then
 echo "libfdt support    $device_tree_support"
 fi
@@ -1291,13 +1286,6 @@ interp_prefix1=`echo "$interp_prefix" | 
 interp_prefix1=`echo "$interp_prefix" | sed "s/%M/$target_cpu/g"`
 echo "#define CONFIG_QEMU_PREFIX \"$interp_prefix1\"" >> $config_h
 
-disable_cpu_emulation() {
-  if test $cpu_emulation = "no"; then
-    echo "#define NO_CPU_EMULATION 1" >> $config_h
-    echo "NO_CPU_EMULATION=1" >> $config_mak
-  fi
-}
-
 configure_kvm() {
   if test $kvm = "yes" -a "$target_softmmu" = "yes" -a \
           \( "$cpu" = "i386" -o "$cpu" = "x86_64" -o "$cpu" = "ia64" -o "$cpu" = "powerpc" \); then
@@ -1308,7 +1296,6 @@ configure_kvm() {
 	echo "USE_KVM_PIT=1" >> $config_mak
 	echo "#define USE_KVM_PIT 1" >> $config_h
     fi
-    disable_cpu_emulation
   fi
 }
 
qemu/target-i386/fake-exec.c deleted +0 -54

54 lines not on this page · raw message

qemu/target-ia64/fake-exec.c deleted +0 -44

44 lines not on this page · raw message

qemu/target-ppc/fake-exec.c deleted +0 -104

104 lines not on this page · raw message

qemu/vl.c +0 -8
@@ -7786,9 +7786,7 @@ static void help(int exitcode)
            "-no-kqemu       disable KQEMU kernel module usage\n"
 #endif
 #ifdef USE_KVM
-#ifndef NO_CPU_EMULATION
 	   "-no-kvm         disable KVM hardware virtualization\n"
-#endif
 	   "-no-kvm-irqchip disable KVM kernel mode PIC/IOAPIC/LAPIC\n"
 	   "-no-kvm-pit	    disable KVM kernel mode PIT\n"
 #endif
@@ -7997,9 +7995,7 @@ const QEMUOption qemu_options[] = {
     { "kernel-kqemu", 0, QEMU_OPTION_kernel_kqemu },
 #endif
 #ifdef USE_KVM
-#ifndef NO_CPU_EMULATION
     { "no-kvm", 0, QEMU_OPTION_no_kvm },
-#endif
     { "no-kvm-irqchip", 0, QEMU_OPTION_no_kvm_irqchip },
     { "no-kvm-pit", 0, QEMU_OPTION_no_kvm_pit },
 #endif
@@ -9083,10 +9079,6 @@ int main(int argc, char **argv)
 	if (kvm_qemu_init() < 0) {
 	    extern int kvm_allowed;
 	    fprintf(stderr, "Could not initialize KVM, will disable KVM support\n");
-#ifdef NO_CPU_EMULATION
-	    fprintf(stderr, "Compiled with --disable-cpu-emulation, exiting.\n");
-	    exit(1);
-#endif
 	    kvm_allowed = 0;
 	}
     }
#5 lore raw
Quoted 9 lines · Jerone Young

Actually I was mistaken. While upstream qemu does compile, after doing a clean on my local directory of kvm-userspace. I'm finding that after removing cpu-emulation stuff I get a error when building exec.c

In file included from /home/jerone/work/kvm-userspace/qemu/tcg/tcg.h:50,
from /home/jerone/work/kvm-userspace/qemu/exec.c:40:
/home/jerone/work/kvm-userspace/qemu/tcg/tcg-opc.h:25:24: dyngen-opc.h:
No such file or directory

dyngen-opc.h is build from op.o. If you removed CONFIG_DYNGEN_OP, op.o won't be added to LIBOBJS which would cause this problem.

Quoted 3 lines

Now removing CONFIG_DYNGEN from configure yields more errors ;-). This is removed for x86 & ia64.

Don't do that. PPC still depends on dyngen. Nothing is wrong with dyngen on PPC, the problem was that TCG didn't support PPC. It does now though.

Regards,

Anthony Liguori

Quoted 87 lines

So lets not remove it till can git this sorted out. But here is a patch attached to play with :-L

Quoted 81 lines · Anthony Liguori
Quoted 9 lines · Jerone Young

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

Just something to keep in mind.

Now that TCG supports PPC, shouldn't ya'll be able to drop --disable-cpu-emulation. I believe that will simultaneously fix your problem and reduce the difference between upstream QEMU.

Regards,

Anthony Liguori

Quoted 50 lines
qemu/Makefile.target +1 -1
@@ -196,7 +196,6 @@ LIBOBJS+=fake-exec.o
 LIBOBJS+=fake-exec.o
 else
 LIBOBJS+= translate-all.o translate.o
-endif
 ifdef CONFIG_DYNGEN_OP
 LIBOBJS+=op.o
 endif
@@ -205,6 +204,7 @@ CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH
 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
 ifeq ($(ARCH),sparc64)
 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
+endif
 endif
 
 ifeq ($(USE_KVM), 1)
qemu/exec.c +6 -1
@@ -37,8 +37,11 @@
 #include "exec-all.h"
 #include "qemu-common.h"
 
+#ifdef USE_KVM
+#include "qemu-kvm.h"
+#else
 #include "tcg.h"
-#include "qemu-kvm.h"
+#endif
 
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>
@@ -3197,7 +3200,9 @@ void dump_exec_info(FILE *f,
     cpu_fprintf(f, "TB flush count      %d\n", tb_flush_count);
     cpu_fprintf(f, "TB invalidate count %d\n",
 tb_phys_invalidate_count);
     cpu_fprintf(f, "TLB flush count     %d\n", tlb_flush_count);
+#if !defined(USE_KVM)
     tcg_dump_info(f, cpu_fprintf);
+#endif
 }
 

#if !defined(CONFIG_USER_ONLY)

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
Quoted 5 lines · Anthony Liguori
Quoted 4 lines · Jerone Young

Actually I was mistaken. While upstream qemu does compile, after doing a clean on my local directory of kvm-userspace. I'm finding that after removing cpu-emulation stuff I get a error when building exec.c

Quoted 8 lines
Quoted 5 lines

In file included from /home/jerone/work/kvm-userspace/qemu/tcg/tcg.h:50,
from /home/jerone/work/kvm-userspace/qemu/exec.c:40:
/home/jerone/work/kvm-userspace/qemu/tcg/tcg-opc.h:25:24: dyngen-opc.h:
No such file or directory

dyngen-opc.h is build from op.o. If you removed CONFIG_DYNGEN_OP, op.o won't be added to LIBOBJS which would cause this problem.

Yeah did that .. got a lot more errors after that. Something else is in the mix. I'll try and figure it out tonight.

Quoted 101 lines
Quoted 4 lines

Now removing CONFIG_DYNGEN from configure yields more errors ;-). This is removed for x86 & ia64.

Don't do that. PPC still depends on dyngen. Nothing is wrong with dyngen on PPC, the problem was that TCG didn't support PPC. It does now though.

Regards,

Anthony Liguori

Quoted 87 lines

So lets not remove it till can git this sorted out. But here is a patch attached to play with :-L

Quoted 81 lines · Anthony Liguori
Quoted 9 lines · Jerone Young

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

Just something to keep in mind.

Now that TCG supports PPC, shouldn't ya'll be able to drop --disable-cpu-emulation. I believe that will simultaneously fix your problem and reduce the difference between upstream QEMU.

Regards,

Anthony Liguori

Quoted 50 lines
qemu/Makefile.target +1 -1
@@ -196,7 +196,6 @@ LIBOBJS+=fake-exec.o
 LIBOBJS+=fake-exec.o
 else
 LIBOBJS+= translate-all.o translate.o
-endif
 ifdef CONFIG_DYNGEN_OP
 LIBOBJS+=op.o
 endif
@@ -205,6 +204,7 @@ CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH
 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
 ifeq ($(ARCH),sparc64)
 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
+endif
 endif
 
 ifeq ($(USE_KVM), 1)
qemu/exec.c +6 -1
@@ -37,8 +37,11 @@
 #include "exec-all.h"
 #include "qemu-common.h"
 
+#ifdef USE_KVM
+#include "qemu-kvm.h"
+#else
 #include "tcg.h"
-#include "qemu-kvm.h"
+#endif
 
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>
@@ -3197,7 +3200,9 @@ void dump_exec_info(FILE *f,
     cpu_fprintf(f, "TB flush count      %d\n", tb_flush_count);
     cpu_fprintf(f, "TB invalidate count %d\n",
 tb_phys_invalidate_count);
     cpu_fprintf(f, "TLB flush count     %d\n", tlb_flush_count);
+#if !defined(USE_KVM)
     tcg_dump_info(f, cpu_fprintf);
+#endif
 }
 

#if !defined(CONFIG_USER_ONLY)

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to Anthony Liguori
Quoted 7 lines · Anthony Liguori
Quoted 6 lines · Jerone Young

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

Quoted 6 lines
Quoted 2 lines

Just something to keep in mind.

Now that TCG supports PPC, shouldn't ya'll be able to drop --disable-cpu-emulation. I believe that will simultaneously fix your problem and reduce the difference between upstream QEMU.

Unfortunately, dropping --disable-cpu-emulation would create a gcc3 dependency for us, which would suck. (Qemu still uses dyngen for PowerPC, and it does still require gcc3.)

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center
#8 lore raw
Quoted 13 lines · Hollis Blanchard
Quoted 11 lines · Anthony Liguori
Quoted 9 lines · Jerone Young

So upstream qemu is being pervasive about changes with TCG, starting to place tcg only functions in exec.c . I've spun a quick patch that fixes things for PowerPC when building qemu. But we need to try and isolate TCG in upstream qemu as it is starting to leak, and I'm not sure of a good way to fix it as there is no CONFIG defined for tcg currently.

Just something to keep in mind.

Quoted 9 lines
Quoted 4 lines

Now that TCG supports PPC, shouldn't ya'll be able to drop --disable-cpu-emulation. I believe that will simultaneously fix your problem and reduce the difference between upstream QEMU.

Unfortunately, dropping --disable-cpu-emulation would create a gcc3 dependency for us, which would suck. (Qemu still uses dyngen for PowerPC, and it does still require gcc3.)

But there's always been a GCC3 dependency. --disable-cpu-emulation was working around the breakage caused by TCG's introduction. That's been fixed.

Regards,

Anthony Liguori