From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXHfz-0003TO-W5 for qemu-devel@nongnu.org; Sun, 15 Mar 2015 19:10:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXHfv-0003cy-S2 for qemu-devel@nongnu.org; Sun, 15 Mar 2015 19:10:31 -0400 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:36409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXHfv-0003cr-LD for qemu-devel@nongnu.org; Sun, 15 Mar 2015 19:10:27 -0400 Received: by padcy3 with SMTP id cy3so46104923pad.3 for ; Sun, 15 Mar 2015 16:10:26 -0700 (PDT) Sender: Richard Henderson Message-ID: <5506115D.9070908@twiddle.net> Date: Sun, 15 Mar 2015 16:10:21 -0700 From: Richard Henderson MIME-Version: 1.0 References: <20150315100051.GA26584@flamenco> In-Reply-To: <20150315100051.GA26584@flamenco> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [qemu] How to reliably obtain physaddr from vaddr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , Peter Maydell , qemu-devel On 03/15/2015 03:00 AM, Emilio G. Cota wrote: > On a TLB hit this is trivial (just do nothing), but on > a TLB miss I'm lost on what to do--I cannot even follow > where helper_ld/st go (grep doesn't help), although I > suspect it's TCG backend ops and I don't see an obvious > way of adding a new operation there. It goes into softmmu_template.h. Which then tests a victim tlb, and finally calls tlb_fill. You'll probably need to do the same. r~