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

Re: [Xen-devel] [PATCH 26/34] xen/arm: traps: Drop dump_guest_s1_walk



On Tue, 2014-04-01 at 17:59 +0100, Julien Grall wrote:
> On 03/27/2014 05:09 PM, Ian Campbell wrote:
> > On Tue, 2014-03-25 at 16:55 +0000, Julien Grall wrote:
> >> This function is not used neither export.
> > 
> > I have used it when debugging stuff, where it is very useful.
> 
> I was not sure if anyone was using it. I can export it in p2m.h.
> 
> I'm also thinking to move this function in p2m.c (which is a best place
> for this function). What do you think?

It's not really a p2m related function, it's guest stage 1. There isn't
really a good home for it I don't think. I suppose it has similarities
with dump_p2m_lookup/dump_phy_walk and therefore with the core
dump_pt_walk, which would then suggest mm.c as a good home for it.

> > Should it not be called from one of the dump_vcpu_state in response to
> > an exception which implies a guest translation fault?
> > 
> 
> No, we inject directly an exception to the guest since few months. So we
> don't have to print the p2m.

Ah, that's probably when the last caller disappeared.

On second thoughts, when debugging I can always rescue the code from the
git history, so lets go with your first instinct and remove it. The
original patch is:

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.