From: Santosh Shilimkar Date: Tue, 19 Nov 2013 19:59:12 +0000 (-0500) Subject: arm/arm64: kvm: Use virt_to_idmap instead of virt_to_phys for idmap mappings X-Git-Tag: v3.14-rc1~127^2~16^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fda342cc7f577599c53fd27b99c953c7b1da18a;p=pandora-kernel.git arm/arm64: kvm: Use virt_to_idmap instead of virt_to_phys for idmap mappings KVM initialisation fails on architectures implementing virt_to_idmap() because virt_to_phys() on such architectures won't fetch you the correct idmap page. So update the KVM ARM code to use the virt_to_idmap() to fix the issue. Since the KVM code is shared between arm and arm64, we create kvm_virt_to_phys() and handle the redirection in respective headers. Cc: Christoffer Dall Cc: Marc Zyngier Cc: Catalin Marinas Signed-off-by: Santosh Shilimkar Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed