]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: Allow userspace to limit guest memory size
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Fri, 31 Oct 2014 13:10:41 +0000 (14:10 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 23 Jan 2015 12:25:30 +0000 (13:25 +0100)
commitd9c1f0db4f9a5a3db3afc63b2dc6d5347df22517
tree8f3b3f85b3c99edb88933dd27c210916752aa75e
parent0db1317a2202d8b2c44d9437baea2a9d5f285736
KVM: s390: Allow userspace to limit guest memory size

With commit 4700192dc33d ("KVM: s390/mm: support gmap page tables with less
than 5 levels") we are able to define a limit for the guest memory size.

As we round up the guest size in respect to the levels of page tables
we get to guest limits of: 2048 MB, 4096 GB, 8192 TB and 16384 PB.
We currently limit the guest size to 16 TB, which means we end up
creating a page table structure supporting guest sizes up to 8192 TB.

This patch introduces an interface that allows userspace to tune
this limit. This may bring performance improvements for small guests.

Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Documentation/virtual/kvm/devices/vm.txt
arch/s390/include/uapi/asm/kvm.h
arch/s390/kvm/kvm-s390.c