Lines Matching refs:has
197 * if the host has accepted the version sent by the guest.
199 * is_accepted: If TRUE, host has accepted the version and the guest
226 * guest. This message notifies if the host has accepted the guest's
227 * capabilities. If the host has not accepted, the guest must shutdown
230 * is_accepted: Indicates if the host has accepted guest's capabilities.
359 * the guest has hit an upper physical memory barrier.
422 * that the host has asked us to hot add. The range
527 * This state tracks if the host has specified a hot-add
573 static inline bool has_pfn_is_backed(struct hv_hotadd_state *has,
579 if ((pfn < has->covered_start_pfn) || (pfn >= has->covered_end_pfn))
583 list_for_each_entry(gap, &has->gap_list, list) {
595 struct hv_hotadd_state *has;
604 list_for_each_entry(has, &dm_device.ha_region_list, list) {
605 while ((pfn >= has->start_pfn) &&
606 (pfn < has->end_pfn) &&
609 if (has_pfn_is_backed(has, pfn))
670 static void hv_page_online_one(struct hv_hotadd_state *has, struct page *pg)
672 if (!has_pfn_is_backed(has, page_to_pfn(pg))) {
687 static void hv_bring_pgs_online(struct hv_hotadd_state *has,
694 hv_page_online_one(has, pfn_to_page(start_pfn + i));
699 struct hv_hotadd_state *has)
712 has->ha_end_pfn += HA_CHUNK;
722 has->covered_end_pfn += processed_pfn;
744 has->ha_end_pfn -= HA_CHUNK;
745 has->covered_end_pfn -= processed_pfn;
765 struct hv_hotadd_state *has;
770 list_for_each_entry(has, &dm_device.ha_region_list, list) {
772 if ((pfn < has->start_pfn) ||
773 (pfn + (1UL << order) > has->end_pfn))
776 hv_bring_pgs_online(has, pfn, 1UL << order);
784 struct hv_hotadd_state *has;
791 list_for_each_entry(has, &dm_device.ha_region_list, list) {
796 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn)
803 if (has->covered_end_pfn != start_pfn) {
811 gap->start_pfn = has->covered_end_pfn;
813 list_add_tail(&gap->list, &has->gap_list);
815 has->covered_end_pfn = start_pfn;
822 if ((start_pfn + pfn_cnt) > has->end_pfn) {
823 residual = (start_pfn + pfn_cnt - has->end_pfn);
831 has->end_pfn += new_inc;
848 struct hv_hotadd_state *has;
857 list_for_each_entry(has, &dm_device.ha_region_list, list) {
862 if (start_pfn < has->start_pfn || start_pfn >= has->end_pfn)
865 old_covered_state = has->covered_end_pfn;
867 if (start_pfn < has->ha_end_pfn) {
873 pgs_ol = has->ha_end_pfn - start_pfn;
877 has->covered_end_pfn += pgs_ol;
887 if (start_pfn > has->start_pfn &&
889 hv_bring_pgs_online(has, start_pfn, pgs_ol);
893 if ((has->ha_end_pfn < has->end_pfn) && (pfn_cnt > 0)) {
901 size = (has->end_pfn - has->ha_end_pfn);
910 hv_mem_hot_add(has->ha_end_pfn, size, pfn_cnt, has);
917 res = has->covered_end_pfn - old_covered_state;
947 * If the host has specified a hot-add range; deal with it first.
1004 * The host has not specified the hot-add region.
1028 * The result field of the response structure has the
1174 * If the last post time that we sampled has changed,
1738 struct hv_hotadd_state *has, *tmp;
1755 list_for_each_entry_safe(has, tmp, &dm->ha_region_list, list) {
1756 list_for_each_entry_safe(gap, tmp_gap, &has->gap_list, list) {
1760 list_del(&has->list);
1761 kfree(has);