diff options
author | 2009-12-23 14:35:19 -0200 | |
---|---|---|
committer | 2010-03-01 12:35:44 -0300 | |
commit | 506f0d6f9c40ae7d9634acf3c26358810f42c24a (patch) | |
tree | 676e17c01feb6dde1aaacc1f527377b54de67e58 /include | |
parent | KVM: split kvm_arch_set_memory_region into prepare and commit (diff) | |
download | linux-506f0d6f9c40ae7d9634acf3c26358810f42c24a.tar.gz linux-506f0d6f9c40ae7d9634acf3c26358810f42c24a.tar.bz2 linux-506f0d6f9c40ae7d9634acf3c26358810f42c24a.zip |
KVM: introduce gfn_to_pfn_memslot
Which takes a memslot pointer instead of using kvm->memslots.
To be used by SRCU convertion later.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 3c44687b3425..f1f78deece10 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -273,6 +273,8 @@ void kvm_set_page_dirty(struct page *page); void kvm_set_page_accessed(struct page *page); pfn_t gfn_to_pfn(struct kvm *kvm, gfn_t gfn); +pfn_t gfn_to_pfn_memslot(struct kvm *kvm, + struct kvm_memory_slot *slot, gfn_t gfn); void kvm_release_pfn_dirty(pfn_t); void kvm_release_pfn_clean(pfn_t pfn); void kvm_set_pfn_dirty(pfn_t pfn); |