[ kvm-Bugs-2063072 ] compiling problem with "tcg_ctx"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bugs item #2063072, was opened at 2008-08-20 23:29
Message generated for change (Comment added) made by jessorensen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2063072&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: qemu
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Jana Delego (janado)
Assigned to: Anthony Liguori (aliguori)
Summary: compiling problem with "tcg_ctx"

Initial Comment:
When compiling kvm using the "--disable-cpu-emulation" flag on a 64 bit Intel Ubuntu, the compiler aborts with error "undefined reference to tcg_ctx",

This problem exists since kvm-70.


----------------------------------------------------------------------

>Comment By: Jes Sorensen (jessorensen)
Date: 2010-06-25 18:10

Message:
upstream qemu-kvm builds and boots fine with --disable-cpu-emulation now.

Closing
Jes


----------------------------------------------------------------------

Comment By: Avi Kivity (avik)
Date: 2008-10-02 16:05

Message:
Well, it would be nice to support --disable-cpu-emulation, for example if
you're worried about tcg security holes or tcg performance.

----------------------------------------------------------------------

Comment By: Anthony Liguori (aliguori)
Date: 2008-09-29 15:56

Message:
--disable-cpu-emulation should not be used with x86.  It only exists as an
ugly hack because ia64 doesn't support TCG.

----------------------------------------------------------------------

Comment By: Shen Okinudo (okinu)
Date: 2008-09-29 03:37

Message:
This bug persists in kvm-76

----------------------------------------------------------------------

Comment By: Marshal Newrock (freedombi)
Date: 2008-09-02 01:40

Message:
Logged In: YES 
user_id=2201280
Originator: NO

This seems to work with kvm-74.  The patch allowed compilation, and the
guest appears to be running well.

----------------------------------------------------------------------

Comment By: Amit Shah (amitshah)
Date: 2008-08-29 11:59

Message:
Logged In: YES 
user_id=201894
Originator: NO

I'm not sure if this will make qemu work properly, but it fixes the build
(also attached). Can you confirm if this works?

commit 244cafe6688940c25c81b31aa223c9e24656806e
Author: Amit Shah <amit.shah@xxxxxxxxxxxx>
Date:   Fri Aug 29 15:20:14 2008 +0530

    KVM: QEMU: Fix userspace build with --disable-cpu-emulation

    I'm not sure this will work properly, but fixes the build.
    ppc might need something like this as well

    Signed-off-by: Amit Shah <amit.shah@xxxxxxxxxxxx>

diff --git a/qemu/target-i386/fake-exec.c b/qemu/target-i386/fake-exec.c
index 737286d..552089b 100644
--- a/qemu/target-i386/fake-exec.c
+++ b/qemu/target-i386/fake-exec.c
@@ -12,6 +12,13 @@
  */
 #include "exec.h"
 #include "cpu.h"
+#include "tcg.h"
+
+/* code generation context */
+TCGContext tcg_ctx;
+
+uint16_t gen_opc_buf[OPC_BUF_SIZE];
+TCGArg gen_opparam_buf[OPPARAM_BUF_SIZE];

 int code_copy_enabled = 0;

@@ -45,10 +52,6 @@ int cpu_x86_gen_code(CPUState *env, TranslationBlock
*tb, int *gen_code_size_ptr
     return 0;
 }

-void flush_icache_range(unsigned long start, unsigned long stop)
-{
-}
-
 void optimize_flags_init(void)
 {
 }


File Added: 0001-KVM-QEMU-Fix-userspace-build-with-disable-cpu-em.patch

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2063072&group_id=180599
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux