Received: from eggs.gnu.org ([208.118.235.92]:37268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sghmi-0004iV-3G for qemu-devel@nongnu.org; Mon, 18 Jun 2012 15:38:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sghmg-0004zQ-7r for qemu-devel@nongnu.org; Mon, 18 Jun 2012 15:38:47 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:51573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sghmf-0004vn-SW for qemu-devel@nongnu.org; Mon, 18 Jun 2012 15:38:46 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20120613031426.GA8174@cs.nctu.edu.tw> <20120614031826.GA88265@cs.nctu.edu.tw> <20120618082803.GA49309@cs.nctu.edu.tw> Date: Mon, 18 Jun 2012 22:38:36 +0300 In-Reply-To: <20120618082803.GA49309@cs.nctu.edu.tw> (=?utf-8?B?IumZsw==?= =?utf-8?B?6Z+L5Lu7?= (Wei-Ren Chen)"'s message of "Mon, 18 Jun 2012 16:28:04 +0800") Message-ID: <87y5nkqukj.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Cc: laurent.desnogues@gmail.com, stefanha@gmail.com, qemu-devel@nongnu.org =E9=99=B3=E9=9F=8B=E4=BB=BB (Wei-Ren Chen) writes: >> The reason why we want to do the measuring is we want to use KVM (sounds= crazy >> idea) MMU virtualization to speedup the guest -> host memory address tra= nslation. >> I talked to some people on LinuxCon Japan, included Paolo, about this id= ea. 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 ioct= l 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. Sorry, but I don't see the benefit here. Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth