KVM: Move gfn_to_index to x86 specific code
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 2 Oct 2013 21:22:28 +0000 (14:22 -0700)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:11 +0000 (17:18 +0200)
commitc7a9a5f3f02ff35d7ee820e98c1b9d46ab425808
tree267f98625061702f762d9aee9850810786be431b
parent5e1ddf60b6830d405ebb026e3d9570e9236a6600
KVM: Move gfn_to_index to x86 specific code

The gfn_to_index function relies on huge page defines which either may
not make sense on systems that don't support huge pages or are defined
in an unconvenient way for other architectures.  Since this is
x86-specific, move the function to arch/x86/include/asm/kvm_host.h.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
(cherry picked from commit 6d9d41e57440e32a3400f37aa05ef7a1a09ced64)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/x86/include/asm/kvm_host.h
include/linux/kvm_host.h