Home
last modified time | relevance | path

Searched refs:kvm_pte_t (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/arch/loongarch/include/asm/
Dkvm_mmu.h24 typedef unsigned long kvm_pte_t; typedef
26 typedef int (*kvm_pte_ops)(kvm_pte_t *pte, phys_addr_t addr, kvm_ptw_ctx *ctx);
48 kvm_pte_t *kvm_pgd_alloc(void);
50 static inline void kvm_set_pte(kvm_pte_t *ptep, kvm_pte_t val) in kvm_set_pte()
55 static inline int kvm_pte_write(kvm_pte_t pte) { return pte & _PAGE_WRITE; } in kvm_pte_write()
56 static inline int kvm_pte_dirty(kvm_pte_t pte) { return pte & _PAGE_DIRTY; } in kvm_pte_dirty()
57 static inline int kvm_pte_young(kvm_pte_t pte) { return pte & _PAGE_ACCESSED; } in kvm_pte_young()
58 static inline int kvm_pte_huge(kvm_pte_t pte) { return pte & _PAGE_HUGE; } in kvm_pte_huge()
60 static inline kvm_pte_t kvm_pte_mkyoung(kvm_pte_t pte) in kvm_pte_mkyoung()
65 static inline kvm_pte_t kvm_pte_mkold(kvm_pte_t pte) in kvm_pte_mkold()
[all …]
Dkvm_host.h108 kvm_pte_t *pgd;
/linux-6.12.1/arch/arm64/include/asm/
Dkvm_pgtable.h51 typedef u64 kvm_pte_t; typedef
104 static inline bool kvm_pte_valid(kvm_pte_t pte) in kvm_pte_valid()
109 static inline u64 kvm_pte_to_phys(kvm_pte_t pte) in kvm_pte_to_phys()
125 static inline kvm_pte_t kvm_phys_to_pte(u64 pa) in kvm_phys_to_pte()
127 kvm_pte_t pte; in kvm_phys_to_pte()
144 static inline kvm_pfn_t kvm_pte_to_pfn(kvm_pte_t pte) in kvm_pte_to_pfn()
306 kvm_pte_t *ptep;
307 kvm_pte_t old;
345 typedef kvm_pte_t *kvm_pteref_t;
347 static inline kvm_pte_t *kvm_dereference_pteref(struct kvm_pgtable_walker *walker, in kvm_dereference_pteref()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/
Dpgtable.c88 static bool kvm_pte_table(kvm_pte_t pte, s8 level) in kvm_pte_table()
99 static kvm_pte_t *kvm_pte_follow(kvm_pte_t pte, struct kvm_pgtable_mm_ops *mm_ops) in kvm_pte_follow()
104 static void kvm_clear_pte(kvm_pte_t *ptep) in kvm_clear_pte()
109 static kvm_pte_t kvm_init_table_pte(kvm_pte_t *childp, struct kvm_pgtable_mm_ops *mm_ops) in kvm_init_table_pte()
111 kvm_pte_t pte = kvm_phys_to_pte(mm_ops->virt_to_phys(childp)); in kvm_init_table_pte()
118 static kvm_pte_t kvm_init_valid_leaf_pte(u64 pa, kvm_pte_t attr, s8 level) in kvm_init_valid_leaf_pte()
120 kvm_pte_t pte = kvm_phys_to_pte(pa); in kvm_init_valid_leaf_pte()
131 static kvm_pte_t kvm_init_invalid_leaf_owner(u8 owner_id) in kvm_init_invalid_leaf_owner()
174 kvm_pte_t *ptep = kvm_dereference_pteref(data->walker, pteref); in __kvm_pgtable_visit()
304 kvm_pte_t pte;
[all …]
/linux-6.12.1/arch/loongarch/kvm/
Dmmu.c41 static int kvm_mkold_pte(kvm_pte_t *pte, phys_addr_t addr, kvm_ptw_ctx *ctx) in kvm_mkold_pte()
55 static int kvm_mkclean_pte(kvm_pte_t *pte, phys_addr_t addr, kvm_ptw_ctx *ctx) in kvm_mkclean_pte()
58 kvm_pte_t val; in kvm_mkclean_pte()
88 static int kvm_flush_pte(kvm_pte_t *pte, phys_addr_t addr, kvm_ptw_ctx *ctx) in kvm_flush_pte()
112 kvm_pte_t *kvm_pgd_alloc(void) in kvm_pgd_alloc()
114 kvm_pte_t *pgd; in kvm_pgd_alloc()
116 pgd = (kvm_pte_t *)__get_free_pages(GFP_KERNEL, 0); in kvm_pgd_alloc()
149 static kvm_pte_t *kvm_populate_gpa(struct kvm *kvm, in kvm_populate_gpa()
154 kvm_pte_t *entry, *child; in kvm_populate_gpa()
171 child = (kvm_pte_t *)__va(PHYSADDR(*entry)); in kvm_populate_gpa()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dmm.c31 kvm_pte_t *ptep;
235 kvm_pte_t pte, *ptep = slot->ptep; in hyp_fixmap_map()
248 kvm_pte_t *ptep = slot->ptep; in fixmap_clear_slot()
Dmem_protect.c445 kvm_pte_t pte; in host_stage2_adjust_range()
584 enum pkvm_page_state (*get_page_state)(kvm_pte_t pte, u64 addr);
607 static enum pkvm_page_state host_get_page_state(kvm_pte_t pte, u64 addr) in host_get_page_state()
718 static enum pkvm_page_state hyp_get_page_state(kvm_pte_t pte, u64 addr) in hyp_get_page_state()
/linux-6.12.1/arch/arm64/kvm/
Dmmu.c820 kvm_pte_t pte = 0; /* Keep GCC quiet... */ in get_user_mapping_size()
1711 kvm_pte_t pte; in handle_access_fault()
Dnested.c414 kvm_pte_t pte; in get_guest_mapping_ttl()