/xen-4.10.0-shim-comet/xen/arch/x86/mm/shadow/ |
A D | common.c | 513 ASSERT(mfn_valid(gmfn)); in _sh_resync_l1() 682 _sh_resync_l1(v, gmfn, snp); in _sh_resync() 711 SWAP(oos[idx], gmfn); in oos_hash_add() 722 oos[idx] = gmfn; in oos_hash_add() 908 pg = mfn_to_page(gmfn); in sh_unsync() 921 oos_hash_add(v, gmfn); in sh_unsync() 940 ASSERT(mfn_valid(gmfn)); in shadow_promote() 945 sh_resync(d, gmfn); in shadow_promote() 2354 mfn_x(gmfn), mfn_to_page(gmfn)->u.inuse.type_info); in sh_remove_write_access() 2518 ASSERT(mfn_valid(gmfn)); in sh_remove_write_access_from_sl1p() [all …]
|
A D | multi.c | 1877 mfn_t gmfn, sl4mfn; in sh_destroy_l4_shadow() local 1884 gmfn = backpointer(sp); in sh_destroy_l4_shadow() 1907 mfn_t gmfn, sl3mfn; in sh_destroy_l3_shadow() local 1914 gmfn = backpointer(sp); in sh_destroy_l3_shadow() 1938 mfn_t gmfn, sl2mfn; in sh_destroy_l2_shadow() local 1950 gmfn = backpointer(sp); in sh_destroy_l2_shadow() 2600 mfn_t gmfn; in sh_prefetch() local 2882 if ( mfn_valid(gmfn) && mfn_is_out_of_sync(gmfn) ) in sh_page_fault() 4015 mfn_t gmfn; in sh_update_cr3() local 4601 mfn_t smfn, gmfn; in sh_pagetable_dying() local [all …]
|
A D | private.h | 316 static inline int mfn_is_out_of_sync(mfn_t gmfn) in mfn_is_out_of_sync() argument 318 return page_is_out_of_sync(mfn_to_page(mfn_x(gmfn))); in mfn_is_out_of_sync() 327 static inline int mfn_oos_may_write(mfn_t gmfn) in mfn_oos_may_write() argument 329 return page_oos_may_write(mfn_to_page(mfn_x(gmfn))); in mfn_oos_may_write() 355 void shadow_demote(struct domain *d, mfn_t gmfn, u32 type); 408 int sh_unsync(struct vcpu *v, mfn_t gmfn); 411 void sh_resync(struct domain *d, mfn_t gmfn); 442 mfn_t oos_snapshot_lookup(struct domain *d, mfn_t gmfn); 494 sh_mfn_is_a_page_table(mfn_t gmfn) in sh_mfn_is_a_page_table() argument 496 struct page_info *page = mfn_to_page(gmfn); in sh_mfn_is_a_page_table() [all …]
|
A D | multi.h | 107 (struct vcpu *v, mfn_t gmfn, mfn_t snpmfn); 111 (struct vcpu*v, mfn_t gmfn); 115 (struct domain *d, mfn_t gmfn, mfn_t smfn, unsigned long off);
|
/xen-4.10.0-shim-comet/xen/common/ |
A D | memory.c | 294 put_gfn(d, gmfn); in guest_remove_page() 315 put_gfn(d, gmfn); in guest_remove_page() 320 mfn = gfn_to_mfn(d, _gfn(gmfn)); in guest_remove_page() 324 put_gfn(d, gmfn); in guest_remove_page() 326 d->domain_id, gmfn); in guest_remove_page() 342 put_gfn(d, gmfn); in guest_remove_page() 356 put_gfn(d, gmfn); in guest_remove_page() 382 put_gfn(d, gmfn); in guest_remove_page() 390 xen_pfn_t gmfn; in decrease_reservation() local 415 t.gfn = gmfn; in decrease_reservation() [all …]
|
A D | grant_table.c | 1873 xen_pfn_t gmfn = gnttab_shared_gmfn(d, gt, i); in gnttab_setup_table() local 1876 BUG_ON(SHARED_M2P(gmfn)); in gnttab_setup_table() 1878 if ( __copy_to_guest_offset(op.frame_list, i, &gmfn, 1) ) in gnttab_setup_table() 2685 rc = get_paged_frame(ptr->u.gmfn, &buf->frame, &buf->page, in gnttab_copy_claim_buf() 2689 "source frame %"PRI_xen_pfn" invalid\n", ptr->u.gmfn); in gnttab_copy_claim_buf() 2691 buf->ptr.u.gmfn = ptr->u.gmfn; in gnttab_copy_claim_buf() 2724 return p->u.gmfn == b->ptr.u.gmfn; in gnttab_copy_buf_valid() 3017 uint64_t gmfn; in gnttab_get_status_frames() local 3071 gmfn = gnttab_status_gmfn(d, gt, i); in gnttab_get_status_frames() 3072 if ( copy_to_guest_offset(op.frame_list, i, &gmfn, 1) ) in gnttab_get_status_frames()
|
/xen-4.10.0-shim-comet/xen/include/asm-x86/ |
A D | paging.h | 94 intpte_t new, mfn_t gmfn); 97 mfn_t gmfn); 101 unsigned long vaddr, mfn_t gmfn); 153 void paging_mark_dirty(struct domain *d, mfn_t gmfn); 159 int paging_mfn_is_dirty(struct domain *d, mfn_t gmfn); 299 struct vcpu *v, intpte_t *p, intpte_t new, mfn_t gmfn) in paging_write_guest_entry() argument 304 gmfn); in paging_write_guest_entry() 317 struct vcpu *v, intpte_t *p, intpte_t *old, intpte_t new, mfn_t gmfn) in paging_cmpxchg_guest_entry() argument 322 new, gmfn); in paging_cmpxchg_guest_entry()
|
A D | shadow.h | 81 void sh_remove_shadows(struct domain *d, mfn_t gmfn, int fast, int all); 104 static inline void sh_remove_shadows(struct domain *d, mfn_t gmfn, in sh_remove_shadows() argument 119 static inline void shadow_remove_all_shadows(struct domain *d, mfn_t gmfn) in shadow_remove_all_shadows() argument 122 sh_remove_shadows(d, gmfn, 0 /* Be thorough */, 1 /* Must succeed */); in shadow_remove_all_shadows()
|
/xen-4.10.0-shim-comet/xen/drivers/passthrough/vtd/ |
A D | utils.c | 82 static u32 get_level_index(unsigned long gmfn, int level) in get_level_index() argument 85 gmfn = gmfn >> LEVEL_STRIDE; in get_level_index() 87 return gmfn & LEVEL_MASK; in get_level_index() 90 void print_vtd_entries(struct iommu *iommu, int bus, int devfn, u64 gmfn) in print_vtd_entries() argument 100 PCI_SLOT(devfn), PCI_FUNC(devfn), gmfn); in print_vtd_entries() 159 l_index = get_level_index(gmfn, level); in print_vtd_entries()
|
A D | extern.h | 32 void print_vtd_entries(struct iommu *iommu, int bus, int devfn, u64 gmfn);
|
/xen-4.10.0-shim-comet/tools/libxc/ |
A D | xc_core.c | 790 uint64_t gmfn; in xc_domain_dumpcore_via_callback() local 808 gmfn = p2m[i]; in xc_domain_dumpcore_via_callback() 810 gmfn = ((uint64_t *)p2m)[i]; in xc_domain_dumpcore_via_callback() 811 if ( gmfn == INVALID_PFN ) in xc_domain_dumpcore_via_callback() 816 gmfn = ((uint32_t *)p2m)[i]; in xc_domain_dumpcore_via_callback() 817 if ( gmfn == (uint32_t)INVALID_PFN ) in xc_domain_dumpcore_via_callback() 822 p2m_array[j].gmfn = gmfn; in xc_domain_dumpcore_via_callback() 829 gmfn = i; in xc_domain_dumpcore_via_callback() 834 xch, domid, PAGE_SIZE, PROT_READ, gmfn); in xc_domain_dumpcore_via_callback() 871 p2m_array[j].gmfn = XC_CORE_INVALID_GMFN; in xc_domain_dumpcore_via_callback()
|
A D | xc_dom_boot.c | 56 domctl.u.hypercall_init.gmfn = xc_dom_p2m(dom, pfn); in setup_hypercall_page() 232 xen_pfn_t gmfn; in xc_dom_gnttab_setup() local 244 gmfn = *gmfnp; in xc_dom_gnttab_setup() 256 return gmfn; in xc_dom_gnttab_setup()
|
A D | xc_core.h | 111 uint64_t gmfn; member
|
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/ |
A D | viridian.c | 348 unsigned long gmfn = d->arch.hvm_domain.viridian.hypercall_gpa.fields.pfn; in enable_hypercall_page() local 349 struct page_info *page = get_page_from_gfn(d, gmfn, NULL, P2M_ALLOC); in enable_hypercall_page() 357 gmfn, page ? page_to_mfn(page) : mfn_x(INVALID_MFN)); in enable_hypercall_page() 383 unsigned long gmfn = v->arch.hvm_vcpu.viridian.vp_assist.msr.fields.pfn; in initialize_vp_assist() local 384 struct page_info *page = get_page_from_gfn(d, gmfn, NULL, P2M_ALLOC); in initialize_vp_assist() 416 gdprintk(XENLOG_WARNING, "Bad GMFN %#"PRI_gfn" (MFN %#"PRI_mfn")\n", gmfn, in initialize_vp_assist() 488 unsigned long gmfn = d->arch.hvm_domain.viridian.reference_tsc.fields.pfn; in update_reference_tsc() local 489 struct page_info *page = get_page_from_gfn(d, gmfn, NULL, P2M_ALLOC); in update_reference_tsc() 497 gmfn, page ? page_to_mfn(page) : mfn_x(INVALID_MFN)); in update_reference_tsc()
|
A D | dm.c | 222 mfn_t gmfn = _mfn(page_to_mfn(page)); in modified_memory() local 224 paging_mark_dirty(d, gmfn); in modified_memory() 229 sh_remove_shadows(d, gmfn, 1, 0); in modified_memory()
|
A D | emulate.c | 240 unsigned long gmfn = paddr_to_pfn(addr); in hvmemul_do_io() local 242 get_gfn_query_unlocked(currd, gmfn, &p2mt); in hvmemul_do_io() 332 static int hvmemul_acquire_page(unsigned long gmfn, struct page_info **page) in hvmemul_acquire_page() argument 337 *page = get_page_from_gfn(curr_d, gmfn, &p2mt, P2M_UNSHARE); in hvmemul_acquire_page() 345 p2m_mem_paging_populate(curr_d, gmfn); in hvmemul_acquire_page()
|
/xen-4.10.0-shim-comet/xen/arch/x86/pv/ |
A D | descriptor-tables.c | 132 unsigned long gmfn = pa >> PAGE_SHIFT; in do_update_descriptor() local 143 page = get_page_from_gfn(currd, gmfn, NULL, P2M_ALLOC); in do_update_descriptor()
|
/xen-4.10.0-shim-comet/docs/misc/ |
A D | dump-core-format.txt | 79 uint64_t gmfn; 85 gmfn: machine physical frame number 90 (pfn, gmfn) and the corresponding page has zero. There might 91 exist invalid (pfn, gmfn)'s at the end part of this array. 241 Invalid pfn/gmfn.
|
/xen-4.10.0-shim-comet/xen/arch/x86/mm/ |
A D | paging.c | 344 void paging_mark_dirty(struct domain *d, mfn_t gmfn) in paging_mark_dirty() argument 348 if ( !paging_mode_log_dirty(d) || !mfn_valid(gmfn) || in paging_mark_dirty() 349 page_get_owner(mfn_to_page(gmfn)) != d ) in paging_mark_dirty() 353 pfn = _pfn(get_gpfn_from_mfn(mfn_x(gmfn))); in paging_mark_dirty() 360 int paging_mfn_is_dirty(struct domain *d, mfn_t gmfn) in paging_mfn_is_dirty() argument 371 pfn = _pfn(get_gpfn_from_mfn(mfn_x(gmfn))); in paging_mfn_is_dirty()
|
/xen-4.10.0-shim-comet/xen/include/public/ |
A D | physdev.h | 65 xen_pfn_t gmfn; member
|
A D | grant_table.h | 462 xen_pfn_t gmfn; member
|
/xen-4.10.0-shim-comet/xen/include/xen/ |
A D | mm.h | 583 int __must_check guest_remove_page(struct domain *d, unsigned long gmfn); 598 int prepare_ring_for_helper(struct domain *d, unsigned long gmfn,
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | traps.c | 786 unsigned long gmfn = val >> PAGE_SHIFT; in wrmsr_hypervisor_regs() local 799 page = get_page_from_gfn(d, gmfn, &t, P2M_ALLOC); in wrmsr_hypervisor_regs() 808 p2m_mem_paging_populate(d, gmfn); in wrmsr_hypervisor_regs() 814 gmfn, page ? page_to_mfn(page) : -1UL, base); in wrmsr_hypervisor_regs()
|
A D | mm.c | 2366 unsigned long gmfn; in free_page_type() local 2376 gmfn = mfn_to_gmfn(owner, mfn_x(page_to_mfn(page))); in free_page_type() 2377 ASSERT(VALID_M2P(gmfn)); in free_page_type() 2379 if(!SHARED_M2P(gmfn)) in free_page_type() 2380 shadow_remove_all_shadows(owner, _mfn(gmfn)); in free_page_type() 3516 unsigned long gpfn, gmfn, mfn; in do_mmu_update() local 3627 gmfn = req.ptr >> PAGE_SHIFT; in do_mmu_update() 3628 page = get_page_from_gfn(pt_owner, gmfn, &p2mt, P2M_ALLOC); in do_mmu_update() 3633 p2m_mem_paging_populate(pt_owner, gmfn); in do_mmu_update()
|
/xen-4.10.0-shim-comet/tools/xentrace/ |
A D | xenalyze.c | 1584 unsigned long long gmfn; member 2565 p->gmfn, in interval_cr3_schedule_ordered_output() 3906 if(gmfn) { in cr3_switch() 3912 if(p->gmfn == gmfn) in cr3_switch() 3923 p->gmfn = gmfn; in cr3_switch() 3947 p->gmfn); in cr3_switch() 3979 if(cr3->gmfn == gmfn) in cr3_prealloc_unpin() 3987 gmfn); in cr3_prealloc_unpin() 4772 cur->gmfn); in hvm_handler_process() 5674 e->gmfn = r.gmfn; [all …]
|