KVM: s390/mm: support gmap page tables with less than 5 levels
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 1 Jul 2014 12:36:04 +0000 (14:36 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 26 Aug 2014 08:09:03 +0000 (10:09 +0200)
commitc6c956b80bdf151cf41d3e7e5c54755d930a212c
tree2f105bb983034a098f6f26eb1564397273ba39b6
parent527e30b41d8b86e9ae7f5b740de416958c0e574e
KVM: s390/mm: support gmap page tables with less than 5 levels

Add an addressing limit to the gmap address spaces and only allocate
the page table levels that are needed for the given limit. The limit
is fixed and can not be changed after a gmap has been created.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/pgtable.h
arch/s390/kvm/kvm-s390.c
arch/s390/mm/pgtable.c