Received: from eggs.gnu.org ([140.186.70.92]:32880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJrRO-0005IO-On for qemu-devel@nongnu.org; Tue, 10 May 2011 14:13:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJrRN-0002fi-Fq for qemu-devel@nongnu.org; Tue, 10 May 2011 14:13:50 -0400 Received: from nm23-vm0.bullet.mail.ac4.yahoo.com ([98.139.53.220]:21582) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QJrRN-0002fd-8h for qemu-devel@nongnu.org; Tue, 10 May 2011 14:13:49 -0400 Message-ID: <234739.74527.qm@web38402.mail.mud.yahoo.com> Date: Tue, 10 May 2011 11:13:48 -0700 (PDT) From: Tarmo Pikaro MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Binary translation (of code) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Llu?s Message: 3=0ADate: Sun, 08 May 2011 21:41:15 +0200=0AFrom: Llu?s =0ATo: qemu-devel@nongnu.org=0ASubject: Re: [Qemu-devel] Binary tran= slation (of code)=0AMessage-ID: <87ei49ugis.fsf@ginnungagap.bsc.es>=0AConte= nt-Type: text/plain; charset=3Dutf-8=0A=0ATarmo Pikaro writes:=0A=0A> Hi != =0A>> > I think self-modifying?code is kinda rare case - it's made typicall= y for=0A>> > protection againt?hackers , and?typically on pc side. Nintendo= ?roms =0Aprobably=0A>> > don't use this kind of=0A>> > protection.=0A>> =0A= >> It doesn't have to be protection, for example GCC generates=0A>> trampol= ines to stack when using nested functions.=0A=0A> Ok, so apparently we will= have some challenges on the way.=0A=0A> I guess some sort of mutation - qe= mu + recompiler could be done as well...=0A=0A> It would be much easier to = ship an executable containing both the guest=0A> application and qemu, so t= hat executing it starts qemu with a=0A> pre-defined configuration and runs = the guest binary.=0A=A0=0A- Binary recompilation would allow faster executi= on than emulated code=0A=A0=0A- qemu constantly changes (based on=A0amount = of patches provided in this=0Amail list) - in order to keep image+qemu work= ing - simplest way is to convert =0Ainto=0Aexecutable. Btw - qemu could be = used as a bootstrap to image as well.=0A:-)=0A=A0=0A- And finally modular "= emulation" - it would be possible to recompile individual=0A.dll to another= os.=0A=A0=0ASide effects would be:=0A=A0=0A- More difficult to debug - sin= ce mapping to original binary image should be =0Asomehow=0Amaintained - if = register dump helps anyhow the developer.=0A=A0--=0AHave a nice day!=0ATarm= o.