diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2014-08-19 12:15:00 +0200 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-08-27 22:46:08 +0200 |
commit | 64d831269ccbca1fc6d739a0f3c8aa24afb43a5e (patch) | |
tree | f31585ef953ddd09ab3327b79a9b0b406a089f8e /net | |
parent | KVM: trace kvm_ple_window grow/shrink (diff) | |
download | linux-64d831269ccbca1fc6d739a0f3c8aa24afb43a5e.tar.xz linux-64d831269ccbca1fc6d739a0f3c8aa24afb43a5e.zip |
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 <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions