From: Christoffer Dall Date: Fri, 15 Nov 2013 21:14:12 +0000 (-0800) Subject: arm/arm64: KVM: Fix hyp mappings of vmalloc regions X-Git-Tag: v3.13-rc1~9^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40c2729bab48e2832b17c1fa8af9db60e776131b;p=pandora-kernel.git arm/arm64: KVM: Fix hyp mappings of vmalloc regions Using virt_to_phys on percpu mappings is horribly wrong as it may be backed by vmalloc. Introduce kvm_kaddr_to_phys which translates both types of valid kernel addresses to the corresponding physical address. At the same time resolves a typing issue where we were storing the physical address as a 32 bit unsigned long (on arm), truncating the physical address for addresses above the 4GB limit. This caused breakage on Keystone. Cc: [3.10+] Reported-by: Santosh Shilimkar Tested-by: Santosh Shilimkar Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed