News for hackers. Stuff that matters.
Re:Russian team develops x86 emulator on ARM by bitJericho on Wednesday October 03, 2012 @06:21AM (#4606709)
Doesn't qemu already do this? Is the Russian's code faster?
Re:Russian team develops x86 emulator on ARM by xuhu on Wednesday October 03, 2012 @08:53AM (#4607112)
It wouldn't be a shock if the Russians' code was based on QEMU.
Re:Russian team develops x86 emulator on ARM by pm215 on Wednesday October 03, 2012 @01:30PM (#4608565)
I would be mildly shocked if it was, because (a) the relevant bits of QEMU are under GPL or LGPL, and it doesn't seem very likely that you could get $1.3m investment for a product you'd have to GPL, and (b) if you're interested purely in userspace application translation (and especially if you are happy to restrict to a single guest and single host architecture) then you can almost certainly come up with a better-suited design for that than QEMU (which is rather generalised and focused more on system emulation than userspace).
Re:Russian team develops x86 emulator on ARM by lucian1900 on Wednesday October 03, 2012 @06:53AM (#4606775)
I believe qemu's userspace mode doesn't work on an ARM host.
Re:Russian team develops x86 emulator on ARM by pm215 on Wednesday October 03, 2012 @07:08AM (#4606806)
It does, assuming your ARM host is at least ARMv6 or v7 (v5 doesn't deal with unaligned accesses and QEMU userspace mode doesn't do anything special with guest binary unaligned accesses, so they appear as host unaligned accesses).

QEMU's i386 userspace mode emulation is a bigger problem -- most notably it doesn't handle multithreaded guest binaries (to an even bigger extent than QEMU's general issues with multithreaded guest binaries).

None of these are insurmountable problems; it's just that nobody so far has cared enough about them to put in the time to develop fixes and get them through code review on the mailing list. Patches welcome :-)

Re:Russian team develops x86 emulator on ARM by primitur on Wednesday October 03, 2012 @08:41AM (#4607063)
QEMU is regularly being used in the Emulator scene as a host for x86 binaries, mostly DOS stuff, though. Its a decent enough 8086 emulator, 386'ish too ..
Re:Russian team develops x86 emulator on ARM by Symmetry on Wednesday October 03, 2012 @11:36AM (#4607930)
Is this the same group that worked on the Elbrus VLIW computers? http://en.wikipedia.org/wiki/Elbrus_%28computer%29
Re:Russian team develops x86 emulator on ARM by mariuz on Wednesday October 03, 2012 @06:01PM (#4609848)
Yes they are the same

They have already implemented a software dynamic binary translation virtual machine, similar to Transmeta Crusoe With real hardware booting window/linux

http://en.wikipedia.org/wiki/Elbrus_2000

I guess is that binary translation virtual machine could be tweaked for ARM instruction set

Re:Russian team develops x86 emulator on ARM by chj on Wednesday October 03, 2012 @10:37AM (#4607578)
An x86 emulator optimized for ARM:

  http://www.aemula.net
Re:Russian team develops x86 emulator on ARM by simias on Wednesday October 03, 2012 @08:11AM (#4606953)
So this is a purely software solution? I wonder if we could see ARM SoCs with some hardware for decoding x86 instructions and have them executed by the ARM core.

After all since ARM7 most ARM cores support both ARM and THUMB instruction sets.

I'm not sure you could do that without permission from Intel though.

Re:Russian team develops x86 emulator on ARM by pm215 on Wednesday October 03, 2012 @10:32AM (#4607553)
I don't think decode is really the hard part; if you're JITting at all it's pretty easy. The difficulties arise where the semantics of the target and the host don't match up. For instance, emulating a strong-memory-model architecture like x86 on a weak-memory-model architecture like ARM requires a pile of explicit memory barriers if you're going to handle multi-threaded binaries. Emulating atomic memory accesses might also be tricky. Differences in floating point semantics (like x86's 80-bit format or just different choices of IEEE implementation specifics) are also painful: QEMU takes the slow-but-safe option of doing all the floating point emulation in software (ie using integer arithmetic) to ensure bit-for-bit accuracy. None of these pain points is really related to the instruction decoding.
Re:Russian team develops x86 emulator on ARM by koenigdavidmj on Wednesday October 03, 2012 @12:03PM (#4608085)
According to Herb Sutter at [1], ARMv8 will support a couple new ops to support sequentially consistent memory access.

1: http://herbsutter.com/2012/08/02/strong-and-weak-hardware-me...

Re:Russian team develops x86 emulator on ARM by lucian1900 on Wednesday October 03, 2012 @08:59AM (#4607143)
At that point, it'd basically become an x86 core, with all the space and complexity that requires.

It's easier to translate in software.

Re:Russian team develops x86 emulator on ARM by simias on Wednesday October 03, 2012 @09:06AM (#4607170)
I was not thinking about full blown x86 support, but partial support where it matters. A bit like the Jazelle Java bytecode support, it wouldn't really run x86 code in native but would support extensions that would make it easier and faster. I'm not familiar enough with the x86 instruction set to guess where this would really improve performances though.
Re:Russian team develops x86 emulator on ARM by lucian1900 on Wednesday October 03, 2012 @09:45AM (#4607333)
Even Jazelle is being dumped, since it was too complex in hardware. And x86 is much more complicated than JVM bytecode.

Modern "Jazelle" is basically just Thumb (I think it's even called Thumb EE), and it requires software to translate to it (JIT to Thumb instead of to ARM).

Re:Russian team develops x86 emulator on ARM by rthomas6 on Wednesday October 03, 2012 @08:55AM (#4607129)
According to Wikipedia, the instruction set is open, but for "some advanced features," they may need a license from Intel. I'm not sure what advanced features that would be.
Re:Russian team develops x86 emulator on ARM by lucian1900 on Wednesday October 03, 2012 @08:59AM (#4607145)
Probably things like SSE.
Re:Russian team develops x86 emulator on ARM by mtgx on Wednesday October 03, 2012 @09:23AM (#4607234)
Indeed, AMD licenses the SSE from Intel, and Intel licenses x64 from AMD.
Re:Russian team develops x86 emulator on ARM by sneak on Wednesday October 03, 2012 @09:12AM (#4607188)
> I'm not sure you could do that without permission from Intel though.

Then how does AMD do it?

Re:Russian team develops x86 emulator on ARM by allenp on Wednesday October 03, 2012 @09:25AM (#4607241)
AMD licenses the right to produce x86 compatible chips from Intel.
Re:Russian team develops x86 emulator on ARM by vetinari on Wednesday October 03, 2012 @10:29AM (#4607535)
That's because AMD cores were not independently developed from scratch.

Cyrix core, on the other hand, was. They never oficially licensed x86 and the problems between Intel and Cyrix ended as out of court settlement to save Intel's face.

Re:Russian team develops x86 emulator on ARM by lttlrck on Wednesday October 03, 2012 @08:05AM (#4606936)
What server applications that matter cannot be recompiled for ARM but will work effectively under emulation?
Re:Russian team develops x86 emulator on ARM by rlpb on Wednesday October 03, 2012 @08:13AM (#4606963)
Anything with a JIT compiler? For example, the status of Java on ARM is getting better, but still rumoured to not be as fast as on x86.

And anything that is not open source? Proprietary software is still used heavily on servers running an open source stack. Having a performant emulation or translation option could help with odd pieces that vendors haven't recompiled. Although support would be an issue for this at enterprise level.

Re:Russian team develops x86 emulator on ARM by lmm on Wednesday October 03, 2012 @10:05AM (#4607428)
>Anything with a JIT compiler? For example, the status of Java on ARM is getting better, but still rumoured to not be as fast as on x86.

If performance is the worry I highly doubt running through an x86 emulator is going to be faster.

Re:Russian team develops x86 emulator on ARM by cantankerous on Wednesday October 03, 2012 @09:21AM (#4607225)
Rumored? Are there numbers somewhere or is it still in development or something?
Re:Russian team develops x86 emulator on ARM by ronreiter on Wednesday October 03, 2012 @09:14AM (#4607204)
Within a few years, Intel CPUs are soon going to compete with ARM.
Re:Russian team develops x86 emulator on ARM by mtgx on Wednesday October 03, 2012 @09:24AM (#4607236)
We've been hearing that for the past few years.
Re:Russian team develops x86 emulator on ARM by eru on Wednesday October 03, 2012 @07:46PM (#4610203)
They already compete. More and more markets will be affected over time.
Re:Russian team develops x86 emulator on ARM by dschiptsov on Wednesday October 03, 2012 @07:12AM (#4606813)
To run VMWare->Windows->JVM->Scala/Closure "state of the art" stuff, I suppose..
Re:Russian team develops x86 emulator on ARM by lucaspiller on Wednesday October 03, 2012 @07:18AM (#4606828)
What is the state of the JVM on ARM, can you run enterprise stuff on top of Dalvik?
Re:Russian team develops x86 emulator on ARM by lttlrck on Wednesday October 03, 2012 @08:10AM (#4606952)
I don't think the state of enterprise JVM support on ARM is a reason run x86 JVM under software emulation on ARM.

Intel would eat that idea for breakfast.

There are real JVMs on ARM, plus Jazelle Java acceleration.

Re:Russian team develops x86 emulator on ARM by justincormack on Wednesday October 03, 2012 @10:21AM (#4607506)
Dalvik is not a JVM implememtation. But there is JVM for ARM. It is slow and much less optimised. Most enterprise java stuff is going to need more memory than you get on ARM.
Re:Russian team develops x86 emulator on ARM by mtgx on Wednesday October 03, 2012 @08:23AM (#4606985)
Cortex A15 and beyond will support hardware virtualization.