]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/pageattr: avoid unnecessary page table splitting
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 24 Apr 2017 13:27:35 +0000 (15:27 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Apr 2017 11:41:21 +0000 (13:41 +0200)
commit1366def38b6ab574dd0dbf95e308c7d115e73796
treeba7b4a0e6b322678c76891a3c96e2d6896f5f75a
parent9b11c7912d00d0e5fe0d7f8973b77dac4f69d3df
s390/pageattr: avoid unnecessary page table splitting

The kernel page table splitting code will split page tables even for
features the CPU does not support. E.g. a CPU may not support the NX
feature.
In order to avoid this, remove those bits from the flags parameter
that correlate with unsupported CPU features within __set_memory(). In
addition add an early exit if the flags parameter does not have any
bits set afterwards.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/pageattr.c