[PATCH] s390x: Allow HW Change-bit override for page table entries

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

 



Hi Dave,

s390x: Allow HW Change-bit override for page table entries

The HW Change-bit override (0x100) is used now for s390x. This patch allows
page table entries that have set this bit.

Signed-off-by: Michael Holzheu <holzheu@xxxxxxxxxxxxxxxxxx>
---
 s390x.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

--- a/s390x.c
+++ b/s390x.c
@@ -600,11 +600,10 @@ static ulong _kl_pg_table_deref_s390x(ul
 	readmem(table + offset, KVADDR, &entry, sizeof(entry), "entry",
 		FAULT_ON_ERROR);
 	/*
-	 * Return zero if the page table entry has any of the reserved bits
-	 * set (0x900) or the invalid bit (0x400) is set and it is not a
-	 * swap entry.
+	 * Return zero if the page table entry has the reserved (0x800) or
+	 * the invalid (0x400) bit set and it is not a swap entry.
 	 */
-	if ((entry & 0xd00ULL) && !swap_entry(entry))
+	if ((entry & 0xc00ULL) && !swap_entry(entry))
 		return 0;
 	/* Page table entry is valid and well formed. */
 	return entry;
s390x: Allow HW Change-bit override for page table entries

The HW Change-bit override (0x100) is used now for s390x. This patch allows
page table entries that have set this bit.

Signed-off-by: Michael Holzheu <holzheu@xxxxxxxxxxxxxxxxxx>
---
 s390x.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

--- a/s390x.c
+++ b/s390x.c
@@ -600,11 +600,10 @@ static ulong _kl_pg_table_deref_s390x(ul
 	readmem(table + offset, KVADDR, &entry, sizeof(entry), "entry",
 		FAULT_ON_ERROR);
 	/*
-	 * Return zero if the page table entry has any of the reserved bits
-	 * set (0x900) or the invalid bit (0x400) is set and it is not a
-	 * swap entry.
+	 * Return zero if the page table entry has the reserved (0x800) or
+	 * the invalid (0x400) bit set and it is not a swap entry.
 	 */
-	if ((entry & 0xd00ULL) && !swap_entry(entry))
+	if ((entry & 0xc00ULL) && !swap_entry(entry))
 		return 0;
 	/* Page table entry is valid and well formed. */
 	return 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