]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kvm: remove delayed reallocation of page tables for KVM
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 15 Apr 2015 11:23:26 +0000 (13:23 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Apr 2015 14:55:49 +0000 (16:55 +0200)
commitab6617af8548faf877e357160316ab95d4f7550d
tree011ed5650974aad0df2e6a6c9952e1fc2f935dec
parentc408e1f9361410485fee9fcbf6f0297d853fd3fd
s390/kvm: remove delayed reallocation of page tables for KVM

Replacing a 2K page table with a 4K page table while a VMA is active
for the affected memory region is fundamentally broken. Rip out the
page table reallocation code and replace it with a simple system
control 'vm.allocate_pgste'. If the system control is set the page
tables for all processes are allocated as full 4K pages, even for
processes that do not need it.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/mmu.h
arch/s390/include/asm/mmu_context.h
arch/s390/include/asm/pgalloc.h
arch/s390/include/asm/pgtable.h
arch/s390/mm/pgtable.c