[Crash-utility] Subject: [PATCH] s390x: fix vtop for 1M pages

Dave Anderson anderson at redhat.com
Mon Apr 16 15:03:08 UTC 2012



----- Original Message -----
> Hi Petr,
> 
> On Mon, 2012-04-16 at 10:31 +0200, Petr Tesarik wrote:
> > Hi Michael,
> > 
> > I'm not a z/Series guru, but it seems to me that the address should  not be
> > returned directly, but rather assigned to the phys_addr output  parameter.
> 
> The fix looks good, thanks! Dave could you please add the patch to the
> next release?
> 
> Michael

Queued for crash-6.0.6.

Thanks,
  Dave

 
> > Petr Tesarik
> > SUSE Linux
> > differences between files attachment
> > (s390x-fix-vtop-for-1M-pages.patch)
> > Subject: [PATCH] s390x: fix vtop for 1M pages
> > 
> > It seems to me that the address should not be returned directly,
> > but rather assigned to the phys_addr output parameter.
> > 
> > Signed-off-by: Petr Tesarik <ptesarik at suse.cz>
> > 
> > ---
> >  s390x.c |    6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)
> > 
> > --- a/s390x.c
> > +++ b/s390x.c
> > @@ -614,9 +614,11 @@ int s390x_vtop(ulong table, ulong vaddr,
> >  	}
> > 
> >  	/* Check if this is a large page. */
> > -	if (entry & 0x400ULL)
> > +	if (entry & 0x400ULL) {
> >  		/* Add the 1MB page offset and return the final value. */
> > -		return table + (vaddr & 0xfffffULL);
> > +		*phys_addr = table + (vaddr & 0xfffffULL);
> > +		return TRUE;
> > +	}
> > 
> >  	/* Get the page table entry */
> >  	entry = _kl_pg_table_deref_s390x(vaddr, entry & ~0x7ffULL);
> 
> 
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
> 




More information about the Crash-utility mailing list