/xen-4.10.0-shim-comet/xen/common/ |
A D | page_alloc.c | 982 pg[i].count_info = PGC_state_inuse | (pg[i].count_info & PGC_need_scrub); in alloc_heap_pages() 1370 pg[i].count_info = in free_heap_pages() 1371 ((pg[i].count_info & PGC_broken) | in free_heap_pages() 1388 pg[i].count_info |= PGC_need_scrub; in free_heap_pages() 1471 unsigned long nx, x, y = pg->count_info; in mark_page_offline() 1647 y = pg->count_info; in online_page() 1701 if ( pg->count_info & PGC_broken ) in query_page_offline() 2129 pg[i].count_info |= PGC_xen_heap; in alloc_xenheap_pages() 2147 pg[i].count_info &= ~PGC_xen_heap; in free_xenheap_pages() 2219 pg[i].count_info = PGC_allocated | 1; in assign_pages() [all …]
|
A D | xenoprof.c | 152 if ( (page->count_info & (PGC_allocated|PGC_count_mask)) != 0 ) in share_xenoprof_page_with_guest() 155 d->domain_id, mfn_x(mfn_add(mfn, i)), page->count_info); in share_xenoprof_page_with_guest() 179 if ( test_and_clear_bit(_PGC_allocated, &page->count_info) ) in unshare_xenoprof_page_with_guest()
|
A D | memory.c | 305 if ( test_and_clear_bit(_PGC_allocated, &page->count_info) ) in guest_remove_page() 378 test_and_clear_bit(_PGC_allocated, &page->count_info) ) in guest_remove_page() 644 if ( !test_and_clear_bit(_PGC_allocated, &page->count_info) ) in memory_exchange() 730 if ( test_and_clear_bit(_PGC_allocated, &page->count_info) ) in memory_exchange()
|
A D | trace.c | 277 ASSERT(!(mfn_to_page(mfn)->count_info & PGC_allocated)); in alloc_trace_bufs()
|
A D | grant_table.c | 1649 if ( test_and_clear_bit(_PGC_allocated, &pg->count_info) ) in gnttab_unpopulate_status_frames() 1651 BUG_ON(pg->count_info & ~PGC_xen_heap); in gnttab_unpopulate_status_frames() 2088 page->count_info &= ~(PGC_count_mask|PGC_allocated); in gnttab_transfer() 2111 page->count_info &= ~(PGC_count_mask|PGC_allocated); in gnttab_transfer()
|
A D | kexec.c | 797 VMCOREINFO_OFFSET(page_info, count_info); in crash_save_vmcoreinfo()
|
/xen-4.10.0-shim-comet/xen/arch/x86/mm/shadow/ |
A D | private.h | 300 if ( !(pg->count_info & PGC_page_table) ) in sh_page_has_multiple_shadows() 312 return (p->count_info & PGC_page_table) in page_is_out_of_sync() 323 return (p->count_info & PGC_page_table) in page_oos_may_write() 505 && (page->count_info & PGC_page_table) ) in sh_mfn_is_a_page_table() 561 ASSERT(!(sp->count_info & PGC_count_mask)); in sh_put_ref() 814 unsigned long count = read_atomic(&page->count_info); in sh_check_page_has_no_refs()
|
A D | common.c | 460 if ( !(pg->count_info & PGC_page_table) ) in sh_oos_audit() 966 ASSERT(test_bit(_PGC_page_table, &page->count_info)); in shadow_demote() 980 clear_bit(_PGC_page_table, &page->count_info); in shadow_demote() 1011 if ( !(page->count_info & PGC_page_table) ) in sh_validate_guest_entry() 1519 if ( owner || (pg->count_info & PGC_count_mask) ) in shadow_free_p2m_page() 1525 pg->count_info &= ~PGC_count_mask; in shadow_free_p2m_page() 1877 BUG_ON( (sp->count_info & PGC_count_mask )!= 0 ) ; in sh_hash_audit_bucket() 2746 if ( (pg->count_info & PGC_page_table) == 0 ) in sh_remove_shadows() 3132 pg->count_info = 1; in shadow_enable() 3173 pg->count_info &= ~PGC_count_mask; in shadow_enable() [all …]
|
A D | multi.c | 4307 if ( ((sp->count_info & PGC_count_mask) != 0) in sh_rm_write_access_from_sl1p()
|
/xen-4.10.0-shim-comet/xen/include/asm-x86/ |
A D | mm.h | 69 unsigned long count_info; member 259 #define page_state_is(pg, st) (((pg)->count_info&PGC_state) == PGC_state_##st) 272 #define is_xen_heap_page(page) ((page)->count_info & PGC_xen_heap) 433 ASSERT(((_p)->count_info & PGC_count_mask) != 0); \
|
/xen-4.10.0-shim-comet/xen/arch/x86/mm/ |
A D | p2m-pod.c | 282 if ( test_and_clear_bit(_PGC_allocated, &(page+i)->count_info) ) in p2m_pod_set_cache_target() 772 if ( !(page->count_info & PGC_allocated) || in p2m_pod_zero_check_superpage() 773 (page->count_info & (PGC_page_table | PGC_xen_heap)) || in p2m_pod_zero_check_superpage() 774 (page->count_info & PGC_count_mask) > max_ref ) in p2m_pod_zero_check_superpage() 810 if ( (mfn_to_page(mfn)->count_info & PGC_count_mask) > 1 ) in p2m_pod_zero_check_superpage() 906 if ( p2m_is_ram(types[i]) && (pg->count_info & PGC_allocated) && in p2m_pod_zero_check() 907 !(pg->count_info & (PGC_page_table | PGC_xen_heap)) && in p2m_pod_zero_check() 908 ((pg->count_info & PGC_count_mask) <= max_ref) ) in p2m_pod_zero_check() 944 if ( (mfn_to_page(mfns[i])->count_info & PGC_count_mask) > 1 ) in p2m_pod_zero_check()
|
A D | mem_sharing.c | 622 if ( page->count_info != (PGC_allocated | (2 + expected_refcnt)) ) in page_make_sharable() 724 page->count_info, in debug_mfn() 997 if(test_and_clear_bit(_PGC_allocated, &cpage->count_info)) in share_pages() 1073 if ( test_and_clear_bit(_PGC_allocated, &cpage->count_info) ) in mem_sharing_add_to_physmap() 1160 test_and_clear_bit(_PGC_allocated, &page->count_info) ) in __mem_sharing_unshare_page()
|
A D | p2m.c | 1365 if ( (page->count_info & (PGC_count_mask | PGC_allocated)) != in p2m_mem_paging_nominate() 1426 if ( (page->count_info & (PGC_count_mask | PGC_allocated)) != in p2m_mem_paging_evict() 1434 if ( test_and_clear_bit(_PGC_allocated, &page->count_info) ) in p2m_mem_paging_evict()
|
/xen-4.10.0-shim-comet/xen/include/asm-arm/ |
A D | mm.h | 35 unsigned long count_info; member 121 #define page_state_is(pg, st) (((pg)->count_info&PGC_state) == PGC_state_##st) 148 #define is_xen_heap_page(page) ((page)->count_info & PGC_xen_heap)
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | mm.c | 549 if ( !(page->count_info & PGC_page_table) || in set_tlbflush_timestamp() 1042 unsigned long x, nx, y = page->count_info; in get_page_from_l1e() 2193 page->count_info &= ~PGC_cacheattr_mask; in cleanup_page_cacheattr() 2202 unsigned long nx, x, y = page->count_info; in put_page() 2224 unsigned long x, y = page->count_info; in page_get_owner_and_reference() 2276 unsigned long x, nx, y = page->count_info; in get_page_light() 2283 y = cmpxchg(&page->count_info, x, nx); in get_page_light() 2320 page->count_info); in alloc_page_type() 3817 page->count_info = PGC_allocated | 1; in donate_page() 3853 y = page->count_info; in steal_page() [all …]
|
A D | tboot.c | 193 if ( page->count_info & PGC_page_table ) in update_pagetable_mac()
|
A D | domain.c | 190 page->count_info, page->u.inuse.type_info); in dump_pageframe_info() 203 page->count_info, page->u.inuse.type_info); in dump_pageframe_info() 1835 if ( test_and_clear_bit(_PGC_allocated, &page->count_info) ) in relinquish_memory()
|
A D | domctl.c | 509 if ( page->count_info & PGC_broken ) in arch_do_domctl()
|
/xen-4.10.0-shim-comet/xen/arch/x86/mm/hap/ |
A D | hap.c | 289 ASSERT(!page_get_owner(pg) && !(pg->count_info & PGC_count_mask)); in hap_alloc_p2m_page() 311 if ( owner || (pg->count_info & PGC_count_mask) ) in hap_free_p2m_page() 316 pg->count_info, pg->u.inuse.type_info); in hap_free_p2m_page() 318 pg->count_info &= ~PGC_count_mask; in hap_free_p2m_page()
|
/xen-4.10.0-shim-comet/xen/drivers/passthrough/x86/ |
A D | iommu.c | 96 (page->count_info & (PGC_state|PGC_broken))) ) in arch_iommu_populate_page_table()
|
/xen-4.10.0-shim-comet/xen/arch/x86/pv/ |
A D | dom0_build.c | 70 page->count_info = PGC_allocated | 3; in mark_pv_pt_pages_rdonly() 78 page->count_info += 1; in mark_pv_pt_pages_rdonly() 140 page->count_info = PGC_allocated | 2; in setup_pv_physmap() 166 page->count_info = PGC_allocated | 2; in setup_pv_physmap() 192 page->count_info = PGC_allocated | 2; in setup_pv_physmap()
|
/xen-4.10.0-shim-comet/xen/arch/arm/ |
A D | mm.c | 1203 ASSERT((page->count_info & ~PGC_xen_heap) == 0); in share_xen_page_with_guest() 1208 page->count_info |= PGC_allocated | 1; in share_xen_page_with_guest() 1341 unsigned long x, y = page->count_info; in page_get_owner_and_reference() 1353 while ( (y = cmpxchg(&page->count_info, x, x + 1)) != x ); in page_get_owner_and_reference() 1363 unsigned long nx, x, y = page->count_info; in put_page() 1370 while ( unlikely((y = cmpxchg(&page->count_info, x, nx)) != x) ); in put_page()
|
A D | domain.c | 847 if ( test_and_clear_bit(_PGC_allocated, &page->count_info) ) in relinquish_memory()
|
/xen-4.10.0-shim-comet/xen/include/xen/ |
A D | tmem_xen.h | 132 ASSERT((pi->count_info & ~(PGC_allocated | 1)) == 0); in __tmem_free_page_thispool()
|
/xen-4.10.0-shim-comet/xen/arch/x86/x86_64/ |
A D | mm.c | 1274 pg->count_info = PGC_state_inuse; in transfer_pages_to_heap()
|