• Home
  • Raw
  • Download

Lines Matching refs:head

161 	struct kvm_page_track_notifier_head *head;  in kvm_page_track_cleanup()  local
163 head = &kvm->arch.track_notifier_head; in kvm_page_track_cleanup()
164 cleanup_srcu_struct(&head->track_srcu); in kvm_page_track_cleanup()
169 struct kvm_page_track_notifier_head *head; in kvm_page_track_init() local
171 head = &kvm->arch.track_notifier_head; in kvm_page_track_init()
172 INIT_HLIST_HEAD(&head->track_notifier_list); in kvm_page_track_init()
173 return init_srcu_struct(&head->track_srcu); in kvm_page_track_init()
184 struct kvm_page_track_notifier_head *head; in kvm_page_track_register_notifier() local
186 head = &kvm->arch.track_notifier_head; in kvm_page_track_register_notifier()
189 hlist_add_head_rcu(&n->node, &head->track_notifier_list); in kvm_page_track_register_notifier()
202 struct kvm_page_track_notifier_head *head; in kvm_page_track_unregister_notifier() local
204 head = &kvm->arch.track_notifier_head; in kvm_page_track_unregister_notifier()
209 synchronize_srcu(&head->track_srcu); in kvm_page_track_unregister_notifier()
223 struct kvm_page_track_notifier_head *head; in kvm_page_track_write() local
227 head = &vcpu->kvm->arch.track_notifier_head; in kvm_page_track_write()
229 if (hlist_empty(&head->track_notifier_list)) in kvm_page_track_write()
232 idx = srcu_read_lock(&head->track_srcu); in kvm_page_track_write()
233 hlist_for_each_entry_srcu(n, &head->track_notifier_list, node, in kvm_page_track_write()
234 srcu_read_lock_held(&head->track_srcu)) in kvm_page_track_write()
237 srcu_read_unlock(&head->track_srcu, idx); in kvm_page_track_write()
249 struct kvm_page_track_notifier_head *head; in kvm_page_track_flush_slot() local
253 head = &kvm->arch.track_notifier_head; in kvm_page_track_flush_slot()
255 if (hlist_empty(&head->track_notifier_list)) in kvm_page_track_flush_slot()
258 idx = srcu_read_lock(&head->track_srcu); in kvm_page_track_flush_slot()
259 hlist_for_each_entry_srcu(n, &head->track_notifier_list, node, in kvm_page_track_flush_slot()
260 srcu_read_lock_held(&head->track_srcu)) in kvm_page_track_flush_slot()
263 srcu_read_unlock(&head->track_srcu, idx); in kvm_page_track_flush_slot()