Stephen McCamant
unread,Sep 2, 2014, 11:10:13 AM9/2/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bitblaz...@googlegroups.com
>>>>> "SG" == saro g <saro> writes:
SG> I am using ubuntu 12.04 64bit on a 64 bit machine. I followed the
SG> ubuntu 64bit 12.04 walktrough and installed Temu without
SG> errors. but my temu installation is very slow to be useful. My
SG> guest is a 32 bit ubuntu 12.04. image. I compiled qemu 0.09.1 from
SG> source and found that it works properly and with reasonable speed
SG> using the same image file.
It's expected that TEMU will run more slowly that QEMU once you
"enable_emulation", since that turns on a bunch of callbacks that can
run at every instruction and basic block (much less start collecting
traces). But before you start using TEMU's special features, its
performance should be quite similar to the QEMU version it was derived
from. In your case I wouldn't expect that to be very fast, since that
QEMU is too old to support KVM and the Ubuntu 12.04 host is probably
too new to support KQEMU. (To get a fast version of QEMU say for
initial setup of machine images, my suggestion would be to try the
Ubuntu-packaged version.)
SG> At the qemu prompt after starting Temu if I type l*oad_plugin
SG> tracecap/tracecap.so i get the foll error* wrong ELF class:
SG> ELFCLASS32. I have installed ia32-libs. Where am I going wrong
32-bit x86 code and 64-bit x86 code are incompatible within the same
process on Linux, even when the CPU is backwards
compatible. Installing ia32-libs (or in newer versions, i386
architecture packages) will help you run 32-bit binaries on a 64-bit
system, but nothing will allow you to load 32-bit libraries in a
64-bit process or vice-versa. TEMU plugins like tracecap run in the
same process as TEMU itself, so if your TEMU is 64-bit, your plugins
need to be too, as well as any libraries they use, and so on. This is
why when you build a 64-bit TEMU you also need to recompile Tracecap
from source, not use the 32-bit binary from TEMU 1.0.
Hope this helps,
-- Stephen