From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW2yH-0007ZT-NX for qemu-devel@nongnu.org; Thu, 01 Dec 2011 04:30:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RW2yB-0008Pp-T7 for qemu-devel@nongnu.org; Thu, 01 Dec 2011 04:30:25 -0500 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:33053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW2yB-0008Pl-Hp for qemu-devel@nongnu.org; Thu, 01 Dec 2011 04:30:19 -0500 Date: Thu, 1 Dec 2011 17:30:14 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20111201093014.GA27201@cs.nctu.edu.tw> References: <20111129070343.GA3585@cs.nctu.edu.tw> <20111201035024.GA88545@cs.nctu.edu.tw> <20111201074657.GA29861@stefanha-thinkpad.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20111201074657.GA29861@stefanha-thinkpad.localdomain> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Improve QEMU performance with LLVM codegen and other techniques List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Alexander Graf , =?utf-8?B?6Zmz6Z+L5Lu7?= , qemu-devel@nongnu.org Hi, Stefan > It would be interesting to use an optimized interpreter instead of TCG, > then go to LLVM for hot traces. This is more HotSpot-like with the ide= a > being that the interpreter runs through initialization and rarely > executed code without a translation overhead. For the hot paths LLVM > kicks in and high-quality translated code is executed. Not sure if it's doable. I can only tell you we rely on QEMU frontend t= o disassemble guest binary into TCG IR, then translate TCG IR into LLVM IR. And talk about the translation overhead, the time QEMU frontend spend is negligible. Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj