From: Martin Schwidefsky Date: Fri, 26 Jul 2013 13:04:03 +0000 (+0200) Subject: KVM: s390: fix task size check X-Git-Tag: v3.12-rc1~143^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee6ee55bb505c5bd8e64bc652281a93fb99c07b3;p=pandora-kernel.git KVM: s390: fix task size check The gmap_map_segment function uses PGDIR_SIZE in the check for the maximum address in the tasks address space. This incorrectly limits the amount of memory usable for a kvm guest to 4TB. The correct limit is (1UL << 53). As the TASK_SIZE has different values (4TB vs 8PB) dependent on the existance of the fourth page table level, create a new define 'TASK_MAX_SIZE' for (1UL << 53). Signed-off-by: Martin Schwidefsky Signed-off-by: Christian Borntraeger Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed