Lines Matching defs:pages

54  * If the reservation goes down, we grab pages and release them back to
181 * This structure is placed at the start of every block of new pages
186 page_t pages[1];
213 /* Calculate the number of pages we're going to add */
217 * The following calculates the number of "meta" pages -- the pages
218 * that will be required to hold page_t structures for all new pages.
226 * room in our meta pages for a memseg and memlist struct?
235 * count. If we don't have enough pages, all of the pages in this
236 * batch will be made meta pages, and a future trip through
237 * balloon_inc_reservation() will add the rest of the meta pages.
263 * Get a VA for the pages that will hold page_t and other structures.
270 page_array = mem->pages;
275 * Set the mfn to pfn mapping for the meta pages.
285 * For our meta pages, map them in and zero the page.
286 * This will be the first time touching the new pages.
294 * Initialize the page array for the new pages.
305 * For the rest of the pages, initialize the page_t struct and
320 * pages coming in. However, if someone starts up a domain with small
333 mem->memseg.pages = &page_array[0];
372 * hypervisor call to get our new pages, then integrate them into the system.
446 * Make sure we don't allow pages without pfn->mfn mappings
458 * Variable review: at this point, rv contains the number of pages
459 * the hypervisor gave us. cnt contains the number of pages for which
460 * we had page_t structures. i contains the number of pages
471 * give back the pages we couldn't assign.
473 * Since these pages are new to the system and haven't been
477 cmn_err(CE_WARN, "Could only assign %d of %ld pages", cnt, rv);
554 * We zero all the pages before we start reassigning them in order to
576 cmn_err(CE_WARN, "Attempt to return pages to the hypervisor "
577 "failed - up to %lu pages lost (error = %ld)", debit, rv);
612 /* new_target is in kB - change this to pages */
627 cmn_err(CE_WARN, "New balloon target (0x%lx pages) is "
628 "larger than original memory size (0x%lx pages). "
762 * tracks the number of pages we give away, so we need to subtract any
780 * the number of pages allocated, which could be less than page_cnt, or
803 * free page_cnt pages, using any combination of mfns, pfns, and kva as long
805 * assume they were already cleared. Otherwise, we need to zero the pages
829 /* if we have a kva, we can clean all pages with just one bzero */
839 * pfns, and use mfns when passing multiple pages. If that
846 /* go through all the pages */
915 cmn_err(CE_PANIC, "balloon: unable to give pages back "
927 * Try to replace nextexts blocks of 2^order pages. addr_bits specifies
928 * how many bits of address the pages must be within (i.e. 16 would mean
929 * that the pages cannot have an address > 64k). The constrints are on
930 * what the hypervisor gives us -- we are free to give any pages in
931 * exchange. The array pp is the pages we are giving away. The caller
932 * provides storage space for mfns, which hold the new physical pages.
947 * we shouldn't be allocating constrained pages on a guest. It doesn't
954 /* Give back the current pages to the hypervisor */
964 * try to allocate the new pages using addr_bits and order. If we can't
965 * get all of the pages, try to get the remaining pages with no
967 * constrained pages we did allocate.
998 * to replace the pages we gave away.