qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] QEMU to generate host binary


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] QEMU to generate host binary
Date: Mon, 29 Jun 2015 16:13:52 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Sun, Jun 28, 2015 at 07:29:39PM -0400, Ayaz Akram wrote:
> > Let's say qemu is running in System Emulation Mode, when it runs guest's
> > binary, it can log the translated code for host. Is it possible to merge
> > that translated code and other sections of guest's binary to make a binary
> > which can be run directly on host.

No, because of self-modifying code, run-time code loading, etc.

It is not possible to statically translate an executable (in the general
case).

There are architectures where it is possible due to restrictions (e.g.
no code loading, all jump destinations are known in advance, etc) but
the popular x86, ARM, etc architectures allow too much freedom to be
amenable to static translation.

Stefan

Attachment: pgpsRk5vuMT2j.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]