Received: from eggs.gnu.org ([208.118.235.92]:40966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgXJo-0005p8-Ta for qemu-devel@nongnu.org; Mon, 18 Jun 2012 04:28:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgXJl-0002JK-Be for qemu-devel@nongnu.org; Mon, 18 Jun 2012 04:28:16 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:57861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgXJk-0002HA-NF for qemu-devel@nongnu.org; Mon, 18 Jun 2012 04:28:13 -0400 Date: Mon, 18 Jun 2012 16:28:04 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20120618082803.GA49309@cs.nctu.edu.tw> References: <20120613031426.GA8174@cs.nctu.edu.tw> <20120614031826.GA88265@cs.nctu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20120614031826.GA88265@cs.nctu.edu.tw> 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: qemu-devel@nongnu.org Cc: laurent.desnogues@gmail.com, stefanha@gmail.com, vilanova@ac.upc.edu > The reason why we want to do the measuring is we want to use KVM (sou= nds crazy > idea) MMU virtualization to speedup the guest -> host memory address tr= anslation. > I talked to some people on LinuxCon Japan, included Paolo, about this i= dea. The > feedback I got is we can only use shadow page table rather than EPT/NPT= to do > the address translation (if possible!) since different ISA (ARM and x86= , for > example) have different page table format. Besides, QEMU has to use ioc= tl to ask > KVM to get the translation result, but it's an overkill as the ARM page= table > is quite simple, which can be done in user mode very fast. Anyone would like to give a comment on this? ;) From the talk with Laurent on #qemu, he said the way he thought of is translating GVA -> GPA manually (through software), then try to insert GPA -> HPA into EPT, that's the only way HW can help. 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