Home
last modified time | relevance | path

Searched refs:hyp_page (Results 1 – 6 of 6) sorted by relevance

/linux/arch/arm64/kvm/hyp/include/nvhe/
H A Dmemory.h50 struct hyp_page { struct
68 #define hyp_vmemmap ((struct hyp_page *)__hyp_vmemmap) argument
85 static inline struct hyp_page *hyp_phys_to_page(phys_addr_t phys) in hyp_phys_to_page()
87 BUILD_BUG_ON(sizeof(struct hyp_page) != sizeof(u64)); in hyp_phys_to_page()
94 #define hyp_page_to_pfn(page) ((struct hyp_page *)(page) - hyp_vmemmap)
97 #define hyp_page_to_pool(page) (((struct hyp_page *)page)->pool)
99 static inline enum pkvm_page_state get_host_state(struct hyp_page *p) in get_host_state()
104 static inline void set_host_state(struct hyp_page *p, enum pkvm_page_state state) in set_host_state()
109 static inline enum pkvm_page_state get_hyp_state(struct hyp_page *p) in get_hyp_state()
114 static inline void set_hyp_state(struct hyp_page *p, enum pkvm_page_state state) in set_hyp_state()
[all …]
H A Dgfp.h27 void hyp_split_page(struct hyp_page *page);
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpage_alloc.c33 static struct hyp_page *__find_buddy_nocheck(struct hyp_pool *pool, in __find_buddy_nocheck()
34 struct hyp_page *p, in __find_buddy_nocheck()
52 static struct hyp_page *__find_buddy_avail(struct hyp_pool *pool, in __find_buddy_avail()
53 struct hyp_page *p, in __find_buddy_avail()
56 struct hyp_page *buddy = __find_buddy_nocheck(pool, p, order); in __find_buddy_avail()
72 static inline void page_remove_from_list(struct hyp_page *p) in page_remove_from_list()
80 static inline void page_add_to_list(struct hyp_page *p, struct list_head *head) in page_add_to_list()
88 static inline struct hyp_page *node_to_page(struct list_head *node) in node_to_page()
94 struct hyp_page *p) in __hyp_attach_page()
98 struct hyp_page *buddy; in __hyp_attach_page()
[all …]
H A Dmem_protect.c64 for (struct hyp_page *__p = hyp_phys_to_page(__st), \
190 struct hyp_page *p; in guest_s2_zalloc_page()
295 struct hyp_page *page; in reclaim_pgtable_pages()
855 struct hyp_page *p; in hyp_pin_shared_mem()
889 struct hyp_page *p; in hyp_unpin_shared_mem()
1208 static struct hyp_page *selftest_page;
1232 struct hyp_page *p = hyp_virt_to_page(virt); in init_selftest_vm()
H A Dsetup.c47 nr_pages = hyp_vmemmap_pages(sizeof(struct hyp_page)); in divide_memory_pool()
193 struct hyp_page *page; in fix_host_ownership_walker()
/linux/arch/arm64/kvm/hyp/
H A Dhyp-constants.c9 DEFINE(STRUCT_HYP_PAGE_SIZE, sizeof(struct hyp_page)); in main()