List Info

Thread: Add large page support for s390x




Add large page support for s390x
country flaguser name
United States
2008-04-11 10:10:12
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 <holzheulinux.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)


--
Crash-utility mailing list
Crash-utilityredhat.com
https://www.redhat.com/mailman/listinfo/crash-utility

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )