KVM: s390: Limit guest size to 16TB
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 25 Aug 2014 10:38:57 +0000 (12:38 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 10 Sep 2014 10:19:15 +0000 (12:19 +0200)
commit0349985add77ef5c9da8a75f4a9855977f4197d9
tree894cfe46f69bc12a3fe773a5c41c640374e4dc20
parent614aeab4dcd0aafb1538d5035eb9855f15b84014
KVM: s390: Limit guest size to 16TB

Currently we fill up a full 5 level page table to hold the guest
mapping. Since commit "support gmap page tables with less than 5
levels" we can do better.
Having more than 4 TB might be useful for some testing scenarios,
so let's just limit ourselves to 16TB guest size.
Having more than that is totally untested as I do not have enough
swap space/memory.

We continue to allow ucontrol the full size.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kvm/kvm-s390.c