Lines Matching defs:page

586 	struct page *page;
596 page = READ_ONCE(kvm->arch.vsie.pages[i]);
597 if (!page)
599 cur = page_to_virt(page);
611 * Map the first prefix page and if tx is enabled also the second prefix page.
653 * Pin the guest page given by gpa and set hpa to the pinned host address.
661 struct page *page;
663 page = gfn_to_page(kvm, gpa_to_gfn(gpa));
664 if (is_error_page(page))
666 *hpa = (hpa_t)page_to_phys(page) + (gpa & ~PAGE_MASK);
670 /* Unpins a page previously pinned via pin_guest_page, marking it as dirty. */
674 /* mark the page always as dirty for migration */
725 * This works as long as the data lies in one page. If blocks ever exceed one
726 * page, we have to fall back to shadowing.
772 /* 256 bytes cannot cross page boundaries */
789 * 512 bytes vector registers cannot cross page boundaries
807 /* 64 bytes cannot cross page boundaries */
836 * cross page boundaries
1078 * Forward the PEI intercept to the guest if it was a page fault, or
1335 * Get or create a vsie page for a scb address.
1337 * Returns: - address of a vsie page (cached or new one)
1344 struct page *page;
1348 page = radix_tree_lookup(&kvm->arch.vsie.addr_to_page, addr >> 9);
1350 if (page) {
1351 if (page_ref_inc_return(page) == 2)
1352 return page_to_virt(page);
1353 page_ref_dec(page);
1364 page = alloc_page(GFP_KERNEL_ACCOUNT | __GFP_ZERO | GFP_DMA);
1365 if (!page) {
1369 page_ref_inc(page);
1370 kvm->arch.vsie.pages[kvm->arch.vsie.page_count] = page;
1375 page = kvm->arch.vsie.pages[kvm->arch.vsie.next];
1376 if (page_ref_inc_return(page) == 2)
1378 page_ref_dec(page);
1382 radix_tree_delete(&kvm->arch.vsie.addr_to_page, page->index >> 9);
1384 page->index = addr;
1386 if (radix_tree_insert(&kvm->arch.vsie.addr_to_page, addr >> 9, page)) {
1387 page_ref_dec(page);
1393 vsie_page = page_to_virt(page);
1401 /* put a vsie page acquired via get_vsie_page */
1404 struct page *page = pfn_to_page(__pa(vsie_page) >> PAGE_SHIFT);
1406 page_ref_dec(page);
1473 struct page *page;
1478 page = kvm->arch.vsie.pages[i];
1480 vsie_page = page_to_virt(page);
1483 radix_tree_delete(&kvm->arch.vsie.addr_to_page, page->index >> 9);
1484 __free_page(page);