Lines Matching full:track
27 * intel_vgpu_find_page_track - find page track rcord of guest page
44 * @handler: page track handler
53 struct intel_vgpu_page_track *track; in intel_vgpu_register_page_track() local
56 track = intel_vgpu_find_page_track(vgpu, gfn); in intel_vgpu_register_page_track()
57 if (track) in intel_vgpu_register_page_track()
60 track = kzalloc(sizeof(*track), GFP_KERNEL); in intel_vgpu_register_page_track()
61 if (!track) in intel_vgpu_register_page_track()
64 track->handler = handler; in intel_vgpu_register_page_track()
65 track->priv_data = priv; in intel_vgpu_register_page_track()
67 ret = radix_tree_insert(&vgpu->page_track_tree, gfn, track); in intel_vgpu_register_page_track()
69 kfree(track); in intel_vgpu_register_page_track()
85 struct intel_vgpu_page_track *track; in intel_vgpu_unregister_page_track() local
87 track = radix_tree_delete(&vgpu->page_track_tree, gfn); in intel_vgpu_unregister_page_track()
88 if (track) { in intel_vgpu_unregister_page_track()
89 if (track->tracked) in intel_vgpu_unregister_page_track()
91 kfree(track); in intel_vgpu_unregister_page_track()
105 struct intel_vgpu_page_track *track; in intel_vgpu_enable_page_track() local
108 track = intel_vgpu_find_page_track(vgpu, gfn); in intel_vgpu_enable_page_track()
109 if (!track) in intel_vgpu_enable_page_track()
112 if (track->tracked) in intel_vgpu_enable_page_track()
118 track->tracked = true; in intel_vgpu_enable_page_track()
132 struct intel_vgpu_page_track *track; in intel_vgpu_disable_page_track() local
135 track = intel_vgpu_find_page_track(vgpu, gfn); in intel_vgpu_disable_page_track()
136 if (!track) in intel_vgpu_disable_page_track()
139 if (!track->tracked) in intel_vgpu_disable_page_track()
145 track->tracked = false; in intel_vgpu_disable_page_track()