From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZ2tw-0008MU-VM for qemu-devel@nongnu.org; Sun, 14 Aug 2016 17:25:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZ2tt-0005a3-Mw for qemu-devel@nongnu.org; Sun, 14 Aug 2016 17:25:00 -0400 Received: from gate.crashing.org ([63.228.1.57]:37261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZ2tt-0005Zr-Db for qemu-devel@nongnu.org; Sun, 14 Aug 2016 17:24:57 -0400 Message-ID: <1471209889.12231.62.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Mon, 15 Aug 2016 07:24:49 +1000 In-Reply-To: References: <1471089120.12231.48.camel@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] monitor: Add an "xlate" command for translating a virtual address List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On Sun, 2016-08-14 at 19:55 +0100, Peter Maydell wrote: > On 13 August 2016 at 12:52, Benjamin Herrenschmidt > wrote: > > > > This is very handy when debugging a guest, especially when it's > > stuck on accessing some HW and the only way to figure out what > > specific piece of HW is to translate the virtual address to > > a hardware address that can then be matched with the mtree > > > > Signed-off-by: Benjamin Herrenschmidt > > Should this wrap cpu_get_phys_page_attrs_debug() instead > (and report the attributes to the user)? Ah good idea, I'll look into it. On a vaguely related note, do you know if anybody is planning (or trying to) overhaul that API to get the access type as an input as well ? We can have widely different translations for data and instructions and that has been a problem (for example if some OS uses a split MMU mode like that, currently -d in_asm will try to disassemble using data translation). Cheers, Ben.