Lines Matching refs:guest_page

665 			spt->guest_page.gfn << I915_GTT_PAGE_SHIFT,  in ppgtt_spt_get_entry()
671 spt->guest_page.pde_ips : false); in ppgtt_spt_get_entry()
694 spt->guest_page.gfn << I915_GTT_PAGE_SHIFT, in ppgtt_spt_set_entry()
700 spt->guest_page.type, e, index, true)
704 spt->guest_page.type, e, index, true)
743 trace_spt_free(spt->vgpu->id, spt, spt->guest_page.type); in ppgtt_free_spt()
750 if (spt->guest_page.gfn) { in ppgtt_free_spt()
751 if (spt->guest_page.oos_page) in ppgtt_free_spt()
752 detach_oos_page(spt->vgpu, spt->guest_page.oos_page); in ppgtt_free_spt()
754 intel_vgpu_unregister_page_track(spt->vgpu, spt->guest_page.gfn); in ppgtt_free_spt()
894 spt->guest_page.type = type; in ppgtt_alloc_spt_gfn()
895 spt->guest_page.gfn = gfn; in ppgtt_alloc_spt_gfn()
896 spt->guest_page.pde_ips = guest_pde_ips; in ppgtt_alloc_spt_gfn()
911 i += spt->guest_page.pde_ips ? GTT_64K_PTE_STRIDE : 1) \
1007 spt->guest_page.gfn, spt->shadow_page.type); in ppgtt_invalidate_spt()
1043 spt->guest_page.gfn, spt->shadow_page.type); in ppgtt_invalidate_spt()
1087 if (ips != spt->guest_page.pde_ips) { in ppgtt_populate_spt_by_guest_entry()
1088 spt->guest_page.pde_ips = ips; in ppgtt_populate_spt_by_guest_entry()
1112 ret = intel_vgpu_enable_page_track(vgpu, spt->guest_page.gfn); in ppgtt_populate_spt_by_guest_entry()
1120 trace_spt_change(vgpu->id, "new", spt, spt->guest_page.gfn, in ppgtt_populate_spt_by_guest_entry()
1200 sub_spt->guest_page.gfn, sub_spt->shadow_page.type); in split_2MB_gtt_entry()
1296 spt->guest_page.gfn, spt->shadow_page.type); in ppgtt_populate_spt()
1413 spt, spt->guest_page.type); in sync_oos_page()
1415 old.type = new.type = get_entry_type(spt->guest_page.type); in sync_oos_page()
1422 spt->guest_page.gfn << PAGE_SHIFT, vgpu); in sync_oos_page()
1429 spt, spt->guest_page.type, in sync_oos_page()
1439 spt->guest_page.write_cnt = 0; in sync_oos_page()
1451 spt, spt->guest_page.type); in detach_oos_page()
1453 spt->guest_page.write_cnt = 0; in detach_oos_page()
1454 spt->guest_page.oos_page = NULL; in detach_oos_page()
1470 spt->guest_page.gfn << I915_GTT_PAGE_SHIFT, in attach_oos_page()
1476 spt->guest_page.oos_page = oos_page; in attach_oos_page()
1481 spt, spt->guest_page.type); in attach_oos_page()
1487 struct intel_vgpu_oos_page *oos_page = spt->guest_page.oos_page; in ppgtt_set_guest_page_sync()
1490 ret = intel_vgpu_enable_page_track(spt->vgpu, spt->guest_page.gfn); in ppgtt_set_guest_page_sync()
1495 spt, spt->guest_page.type); in ppgtt_set_guest_page_sync()
1505 struct intel_vgpu_oos_page *oos_page = spt->guest_page.oos_page; in ppgtt_allocate_oos_page()
1527 struct intel_vgpu_oos_page *oos_page = spt->guest_page.oos_page; in ppgtt_set_guest_page_oos()
1533 spt, spt->guest_page.type); in ppgtt_set_guest_page_oos()
1536 return intel_vgpu_disable_page_track(spt->vgpu, spt->guest_page.gfn); in ppgtt_set_guest_page_oos()
1637 && gtt_type_is_pte_pt(spt->guest_page.type) in can_do_out_of_sync()
1638 && spt->guest_page.write_cnt >= 2; in can_do_out_of_sync()
1737 spt->guest_page.write_cnt++; in ppgtt_handle_guest_write_page_table_bytes()
1739 if (spt->guest_page.oos_page) in ppgtt_handle_guest_write_page_table_bytes()
1740 ops->set_entry(spt->guest_page.oos_page->mem, &we, index, in ppgtt_handle_guest_write_page_table_bytes()
1744 if (!spt->guest_page.oos_page) in ppgtt_handle_guest_write_page_table_bytes()