From: Heiko Carstens Date: Tue, 5 Mar 2013 12:14:42 +0000 (+0100) Subject: s390/kvm,tprot: use new gmap_translate() function X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~32^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59a1fa2d80c0d351755cb29273b2b256dc4b3a11;p=pandora-kernel.git s390/kvm,tprot: use new gmap_translate() function When out-of-memory the tprot code incorrectly injected a program check for the guest which reported an addressing exception even if the guest address was valid. Let's use the new gmap_translate() which translates a guest address to a user space address whithout the chance of running into an out-of-memory situation. Also make it more explicit that for -EFAULT we won't find a vma. Signed-off-by: Heiko Carstens Reviewed-by: Christian Borntraeger Signed-off-by: Martin Schwidefsky Signed-off-by: Christian Borntraeger Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed