Lines Matching refs:has

201  * if the host has accepted the version sent by the guest.
203 * is_accepted: If TRUE, host has accepted the version and the guest
230 * guest. This message notifies if the host has accepted the guest's
231 * capabilities. If the host has not accepted, the guest must shutdown
234 * is_accepted: Indicates if the host has accepted guest's capabilities.
363 * the guest has hit an upper physical memory barrier.
426 * that the host has asked us to hot add. The range
535 * This state tracks if the host has specified a hot-add
592 static inline bool has_pfn_is_backed(struct hv_hotadd_state *has,
598 if ((pfn < has->covered_start_pfn) || (pfn >= has->covered_end_pfn))
602 list_for_each_entry(gap, &has->gap_list, list) {
614 struct hv_hotadd_state *has;
623 list_for_each_entry(has, &dm_device.ha_region_list, list) {
624 while ((pfn >= has->start_pfn) &&
625 (pfn < has->end_pfn) &&
628 if (has_pfn_is_backed(has, pfn))
690 static void hv_page_online_one(struct hv_hotadd_state *has, struct page *pg)
692 if (!has_pfn_is_backed(has, page_to_pfn(pg))) {
707 static void hv_bring_pgs_online(struct hv_hotadd_state *has,
714 hv_page_online_one(has, pfn_to_page(start_pfn + i));
719 struct hv_hotadd_state *has)
731 has->ha_end_pfn += HA_CHUNK;
741 has->covered_end_pfn += processed_pfn;
763 has->ha_end_pfn -= HA_CHUNK;
764 has->covered_end_pfn -= processed_pfn;
784 struct hv_hotadd_state *has;
788 list_for_each_entry(has, &dm_device.ha_region_list, list) {
790 if ((pfn < has->start_pfn) ||
791 (pfn + (1UL << order) > has->end_pfn))
794 hv_bring_pgs_online(has, pfn, 1UL << order);
801 struct hv_hotadd_state *has;
807 list_for_each_entry(has, &dm_device.ha_region_list, list) {
812 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn)
819 if (has->covered_end_pfn != start_pfn) {
827 gap->start_pfn = has->covered_end_pfn;
829 list_add_tail(&gap->list, &has->gap_list);
831 has->covered_end_pfn = start_pfn;
838 if ((start_pfn + pfn_cnt) > has->end_pfn) {
839 residual = (start_pfn + pfn_cnt - has->end_pfn);
847 has->end_pfn += new_inc;
863 struct hv_hotadd_state *has;
872 list_for_each_entry(has, &dm_device.ha_region_list, list) {
877 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn)
880 old_covered_state = has->covered_end_pfn;
882 if (start_pfn < has->ha_end_pfn) {
888 pgs_ol = has->ha_end_pfn - start_pfn;
892 has->covered_end_pfn += pgs_ol;
902 if (start_pfn > has->start_pfn &&
904 hv_bring_pgs_online(has, start_pfn, pgs_ol);
908 if ((has->ha_end_pfn < has->end_pfn) && (pfn_cnt > 0)) {
916 size = (has->end_pfn - has->ha_end_pfn);
925 hv_mem_hot_add(has->ha_end_pfn, size, pfn_cnt, has);
932 res = has->covered_end_pfn - old_covered_state;
961 * If the host has specified a hot-add range; deal with it first.
1018 * The host has not specified the hot-add region.
1041 * The result field of the response structure has the
1203 * If the last post time that we sampled has changed,
2044 struct hv_hotadd_state *has, *tmp;
2059 * call has failed and some cleanup has been done as
2072 list_for_each_entry_safe(has, tmp, &dm->ha_region_list, list) {
2073 list_for_each_entry_safe(gap, tmp_gap, &has->gap_list, list) {
2077 list_del(&has->list);
2078 kfree(has);