aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2012-08-20 22:59:12 -0400
committerAvi Kivity <avi@redhat.com>2012-08-22 08:08:52 -0400
commit037d92dc5d4691ae7cf44699c55ca83b1b441992 (patch)
treee3ec9d29b4312a11087c008551ea1ba54bdd7c13 /include/linux/kvm_host.h
parent67b29204c8c9ecb4b2799a06ab646eeb363a0fe6 (diff)
KVM: introduce gfn_to_pfn_memslot_atomic
It can instead of hva_to_pfn_atomic Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index d4bd4d41e355..52c86e4f6d8c 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -462,7 +462,6 @@ void kvm_release_page_dirty(struct page *page);
462void kvm_set_page_dirty(struct page *page); 462void kvm_set_page_dirty(struct page *page);
463void kvm_set_page_accessed(struct page *page); 463void kvm_set_page_accessed(struct page *page);
464 464
465pfn_t hva_to_pfn_atomic(unsigned long addr);
466pfn_t gfn_to_pfn_atomic(struct kvm *kvm, gfn_t gfn); 465pfn_t gfn_to_pfn_atomic(struct kvm *kvm, gfn_t gfn);
467pfn_t gfn_to_pfn_async(struct kvm *kvm, gfn_t gfn, bool *async, 466pfn_t gfn_to_pfn_async(struct kvm *kvm, gfn_t gfn, bool *async,
468 bool write_fault, bool *writable); 467 bool write_fault, bool *writable);
@@ -470,6 +469,8 @@ pfn_t gfn_to_pfn(struct kvm *kvm, gfn_t gfn);
470pfn_t gfn_to_pfn_prot(struct kvm *kvm, gfn_t gfn, bool write_fault, 469pfn_t gfn_to_pfn_prot(struct kvm *kvm, gfn_t gfn, bool write_fault,
471 bool *writable); 470 bool *writable);
472pfn_t gfn_to_pfn_memslot(struct kvm_memory_slot *slot, gfn_t gfn); 471pfn_t gfn_to_pfn_memslot(struct kvm_memory_slot *slot, gfn_t gfn);
472pfn_t gfn_to_pfn_memslot_atomic(struct kvm_memory_slot *slot, gfn_t gfn);
473
473void kvm_release_pfn_dirty(pfn_t pfn); 474void kvm_release_pfn_dirty(pfn_t pfn);
474void kvm_release_pfn_clean(pfn_t pfn); 475void kvm_release_pfn_clean(pfn_t pfn);
475void kvm_set_pfn_dirty(pfn_t pfn); 476void kvm_set_pfn_dirty(pfn_t pfn);