[Crash-utility] [PATCH] Add large page support for s390x

Dave Anderson anderson at redhat.com
Fri Apr 11 15:24:57 UTC 2008


Michael Holzheu wrote:
> Hi Dave,
> 
> Please include this patch in the next crash release:
> 
> The new z10 System z (s390x) machines have now support for large pages (1MB). This patch
> updates the s390x page table walk function in order to handle this.
> 
> Signed-off-by: Michael Holzheu <holzheu at linux.vnet.ibm.com>
> ---
> 
>  s390x.c |    5 +++++
>  1 files changed, 5 insertions(+)
> 
> diff -Naurp crash-4.0-6.2/s390x.c crash-4.0-6.2-s390x-large-page/s390x.c
> --- crash-4.0-6.2/s390x.c	2008-04-11 14:42:35.000000000 +0200
> +++ crash-4.0-6.2-s390x-large-page/s390x.c	2008-04-11 14:42:41.000000000 +0200
> @@ -337,6 +337,11 @@ int s390x_vtop(ulong table, ulong vaddr,
>  		level--;
>  	}
>  
> +	/* Check if this is a large page. */
> +	if (entry & 0x400ULL)
> +		/* Add the 1MB page offset and return the final value. */
> +		return table + (vaddr & 0xfffffULL);
> +
>  	/* Get the page table entry */
>  	entry = _kl_pg_table_deref_s390x(vaddr, entry & ~0x7ffULL);
>  	if (!entry)
> 
> 

OK -- queued for the next release.

Thanks,
   Dave






More information about the Crash-utility mailing list