diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-12-23 11:35:19 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:44 -0500 |
commit | 506f0d6f9c40ae7d9634acf3c26358810f42c24a (patch) | |
tree | 676e17c01feb6dde1aaacc1f527377b54de67e58 /include/linux | |
parent | f7784b8ec9b6a041fa828cfbe9012fe51933f5ac (diff) |
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/linux')
-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 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); | |||
273 | void kvm_set_page_accessed(struct page *page); | 273 | void kvm_set_page_accessed(struct page *page); |
274 | 274 | ||
275 | pfn_t gfn_to_pfn(struct kvm *kvm, gfn_t gfn); | 275 | pfn_t gfn_to_pfn(struct kvm *kvm, gfn_t gfn); |
276 | pfn_t gfn_to_pfn_memslot(struct kvm *kvm, | ||
277 | struct kvm_memory_slot *slot, gfn_t gfn); | ||
276 | void kvm_release_pfn_dirty(pfn_t); | 278 | void kvm_release_pfn_dirty(pfn_t); |
277 | void kvm_release_pfn_clean(pfn_t pfn); | 279 | void kvm_release_pfn_clean(pfn_t pfn); |
278 | void kvm_set_pfn_dirty(pfn_t pfn); | 280 | void kvm_set_pfn_dirty(pfn_t pfn); |