Lines Matching refs:balloon_stats
131 struct balloon_stats balloon_stats; variable
132 EXPORT_SYMBOL_GPL(balloon_stats);
155 balloon_stats.balloon_high++; in balloon_append()
158 balloon_stats.balloon_low++; in balloon_append()
177 balloon_stats.balloon_high--; in balloon_retrieve()
179 balloon_stats.balloon_low--; in balloon_retrieve()
199 balloon_stats.schedule_delay = 1; in update_schedule()
200 balloon_stats.retry_count = 1; in update_schedule()
204 ++balloon_stats.retry_count; in update_schedule()
206 if (balloon_stats.max_retry_count != RETRY_UNLIMITED && in update_schedule()
207 balloon_stats.retry_count > balloon_stats.max_retry_count) { in update_schedule()
208 balloon_stats.schedule_delay = 1; in update_schedule()
209 balloon_stats.retry_count = 1; in update_schedule()
214 balloon_stats.schedule_delay <<= 1; in update_schedule()
216 if (balloon_stats.schedule_delay > balloon_stats.max_schedule_delay) in update_schedule()
217 balloon_stats.schedule_delay = balloon_stats.max_schedule_delay; in update_schedule()
267 credit = balloon_stats.target_pages + balloon_stats.target_unpopulated in reserve_additional_memory()
268 - balloon_stats.total_pages; in reserve_additional_memory()
332 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory()
370 balloon_stats.target_pages = balloon_stats.current_pages + in reserve_additional_memory()
371 balloon_stats.target_unpopulated; in reserve_additional_memory()
378 return balloon_stats.target_pages - balloon_stats.current_pages; in current_credit()
383 return balloon_stats.balloon_low || balloon_stats.balloon_high; in balloon_is_inflated()
420 balloon_stats.current_pages += rc; in increase_reservation()
477 balloon_stats.current_pages -= nr_pages; in decrease_reservation()
513 timeout = balloon_stats.schedule_delay * HZ; in balloon_thread()
562 balloon_stats.target_pages = target; in balloon_set_new_target()
608 balloon_stats.target_unpopulated += nr_pages; in xen_alloc_ballooned_pages()
643 balloon_stats.target_unpopulated -= nr_pages - pgno; in xen_alloc_ballooned_pages()
664 balloon_stats.target_unpopulated -= nr_pages; in xen_free_ballooned_pages()
698 balloon_stats.total_pages += extra_pfn_end - start_pfn; in balloon_add_regions()
713 balloon_stats.current_pages = xen_pv_domain() in balloon_init()
717 balloon_stats.current_pages = get_num_physpages(); in balloon_init()
719 balloon_stats.target_pages = balloon_stats.current_pages; in balloon_init()
720 balloon_stats.balloon_low = 0; in balloon_init()
721 balloon_stats.balloon_high = 0; in balloon_init()
722 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
724 balloon_stats.schedule_delay = 1; in balloon_init()
725 balloon_stats.max_schedule_delay = 32; in balloon_init()
726 balloon_stats.retry_count = 1; in balloon_init()
727 balloon_stats.max_retry_count = 4; in balloon_init()