qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] monitor: Add an "xlate" command for translating


From: Benjamin Herrenschmidt
Subject: Re: [Qemu-devel] [PATCH] monitor: Add an "xlate" command for translating a virtual address
Date: Mon, 15 Aug 2016 07:24:49 +1000

On Sun, 2016-08-14 at 19:55 +0100, Peter Maydell wrote:
> On 13 August 2016 at 12:52, Benjamin Herrenschmidt
> <address@hidden> 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 <address@hidden>
> 
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]