[PATCH] Add large page support for s390x

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

 



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@xxxxxxxxxxxxxxxxxx>
---

 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-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux