diff options
author | Jike Song <jike.song@intel.com> | 2016-10-25 03:50:43 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-04 07:13:20 -0400 |
commit | 871b7ef2a1850d0b435c8b324bf4a5d391adde3f (patch) | |
tree | e180ff77e7bf4e5359070027559503987f4df3b9 | |
parent | d126363d8fe946c9bb2538839de9b09f5b3b8ba3 (diff) |
kvm/page_track: export symbols for external usage
Signed-off-by: Jike Song <jike.song@intel.com>
Reviewed-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | arch/x86/kvm/page_track.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kvm/page_track.c b/arch/x86/kvm/page_track.c index 3dae0e3d6a58..4a1c13eaa518 100644 --- a/arch/x86/kvm/page_track.c +++ b/arch/x86/kvm/page_track.c | |||
@@ -106,6 +106,7 @@ void kvm_slot_page_track_add_page(struct kvm *kvm, | |||
106 | if (kvm_mmu_slot_gfn_write_protect(kvm, slot, gfn)) | 106 | if (kvm_mmu_slot_gfn_write_protect(kvm, slot, gfn)) |
107 | kvm_flush_remote_tlbs(kvm); | 107 | kvm_flush_remote_tlbs(kvm); |
108 | } | 108 | } |
109 | EXPORT_SYMBOL_GPL(kvm_slot_page_track_add_page); | ||
109 | 110 | ||
110 | /* | 111 | /* |
111 | * remove the guest page from the tracking pool which stops the interception | 112 | * remove the guest page from the tracking pool which stops the interception |
@@ -135,6 +136,7 @@ void kvm_slot_page_track_remove_page(struct kvm *kvm, | |||
135 | */ | 136 | */ |
136 | kvm_mmu_gfn_allow_lpage(slot, gfn); | 137 | kvm_mmu_gfn_allow_lpage(slot, gfn); |
137 | } | 138 | } |
139 | EXPORT_SYMBOL_GPL(kvm_slot_page_track_remove_page); | ||
138 | 140 | ||
139 | /* | 141 | /* |
140 | * check if the corresponding access on the specified guest page is tracked. | 142 | * check if the corresponding access on the specified guest page is tracked. |
@@ -181,6 +183,7 @@ kvm_page_track_register_notifier(struct kvm *kvm, | |||
181 | hlist_add_head_rcu(&n->node, &head->track_notifier_list); | 183 | hlist_add_head_rcu(&n->node, &head->track_notifier_list); |
182 | spin_unlock(&kvm->mmu_lock); | 184 | spin_unlock(&kvm->mmu_lock); |
183 | } | 185 | } |
186 | EXPORT_SYMBOL_GPL(kvm_page_track_register_notifier); | ||
184 | 187 | ||
185 | /* | 188 | /* |
186 | * stop receiving the event interception. It is the opposed operation of | 189 | * stop receiving the event interception. It is the opposed operation of |
@@ -199,6 +202,7 @@ kvm_page_track_unregister_notifier(struct kvm *kvm, | |||
199 | spin_unlock(&kvm->mmu_lock); | 202 | spin_unlock(&kvm->mmu_lock); |
200 | synchronize_srcu(&head->track_srcu); | 203 | synchronize_srcu(&head->track_srcu); |
201 | } | 204 | } |
205 | EXPORT_SYMBOL_GPL(kvm_page_track_unregister_notifier); | ||
202 | 206 | ||
203 | /* | 207 | /* |
204 | * Notify the node that write access is intercepted and write emulation is | 208 | * Notify the node that write access is intercepted and write emulation is |