From: Christoffer Dall Date: Tue, 19 Aug 2014 10:15:00 +0000 (+0200) Subject: KVM: Introduce gfn_to_hva_memslot_prot X-Git-Tag: fixes-for-v3.18-merge-window~23^2~3^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64d831269ccbca1fc6d739a0f3c8aa24afb43a5e;p=pandora-kernel.git KVM: Introduce gfn_to_hva_memslot_prot To support read-only memory regions on arm and arm64, we have a need to resolve a gfn to an hva given a pointer to a memslot to avoid looping through the memslots twice and to reuse the hva error checking of gfn_to_hva_prot(), add a new gfn_to_hva_memslot_prot() function and refactor gfn_to_hva_prot() to use this function. Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed