Received: from eggs.gnu.org ([208.118.235.92]:54220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgVu9-0007tO-P3 for qemu-devel@nongnu.org; Mon, 18 Jun 2012 02:57:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgVu6-00013I-Pl for qemu-devel@nongnu.org; Mon, 18 Jun 2012 02:57:41 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:61906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgVu6-00012N-4I for qemu-devel@nongnu.org; Mon, 18 Jun 2012 02:57:38 -0400 Date: Mon, 18 Jun 2012 14:57:23 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20120618065723.GA45615@cs.nctu.edu.tw> References: <15437433.486391339677312361.JavaMail.weblogic@epv6ml07> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] How to measure guest memory access (qemu_ld/qemu_st) time? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Laurent Desnogues , "qemu-devel@nongnu.org" , =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= , yeongkyoon.lee@samsung.com > The idea looks nice, but instead of different TLB functions selected > at configure time, the optimization should be enabled by default. >=20 > Maybe a 'call' instruction could be used to jump to the slow path, > that way the slow path could be shared. I don't understand what "maybe a 'call' instruction could be used to ju= mp to the slow path", could you elaborate on that? From YeongKyoon's cover lett= er [1], the current flow is, (1) TLB check (2) If hit fall through, else jump to TLB miss case (5) (3) TLB hit case: Load value from host memory (4) Jump to next code (6) (5) TLB miss case: call MMU helper (6) ... (next code) Do you mean we directly call MMU helper ing step 2? Regards, chenwj [1] http://www.mail-archive.com/qemu-devel@nongnu.org/msg91294.html --=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