summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2009-12-23 14:35:19 -0200
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 12:35:44 -0300
commit506f0d6f9c40ae7d9634acf3c26358810f42c24a (patch)
tree676e17c01feb6dde1aaacc1f527377b54de67e58 /include
parentf7784b8ec9b6a041fa828cfbe9012fe51933f5ac (diff)
downloadlinux-3.10-506f0d6f9c40ae7d9634acf3c26358810f42c24a.tar.gz
linux-3.10-506f0d6f9c40ae7d9634acf3c26358810f42c24a.tar.bz2
linux-3.10-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 3c44687b342..f1f78deece1 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);