[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
pgpsRk5vuMT2j.pgp
Description: PGP signature
- [Qemu-devel] QEMU to generate host binary, Ayaz Akram, 2015/06/26
- Re: [Qemu-devel] QEMU to generate host binary, Peter Crosthwaite, 2015/06/26
- Message not available
- Re: [Qemu-devel] QEMU to generate host binary, Ayaz Akram, 2015/06/28
- Re: [Qemu-devel] QEMU to generate host binary,
Stefan Hajnoczi <=
- Re: [Qemu-devel] QEMU to generate host binary, Peter Crosthwaite, 2015/06/29
- Re: [Qemu-devel] QEMU to generate host binary, Ayaz Akram, 2015/06/29
- Re: [Qemu-devel] QEMU to generate host binary, Dr. David Alan Gilbert, 2015/06/30
- Re: [Qemu-devel] QEMU to generate host binary, Alex Bennée, 2015/06/30