/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_trans.c | 155 struct transentry *pte; in create_te() local 157 if ((pte = (struct transentry *)calloc(1, sizeof (*pte))) == NULL) { in create_te() 162 pte->next = pte->prev = NULL; in create_te() 164 return (pte); in create_te() 172 struct transentry *pte; in insert_te() local 180 for (pte = te_list->next; pte != te_list; pte = pte->next) { in insert_te() 182 if (strcmp(pte->pathname, entry->pathname) == 0) { in insert_te() 183 return (pte); in insert_te() 191 for (pte = te_list->next; pte != te_list; pte = pte->next) { in insert_te() 194 if (bcmp(&(pte->fh_u.fh), &(entry->fh_u.fh), in insert_te() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_sol_rvi.c | 46 rvi_pte_prot(uint64_t pte) in rvi_pte_prot() argument 50 if ((pte & PT_VALID) == 0) in rvi_pte_prot() 54 if ((pte & PT_NX) == 0) in rvi_pte_prot() 56 if ((pte & PT_WRITABLE) != 0) in rvi_pte_prot() 99 rvi_pte_pfn(uint64_t pte) in rvi_pte_pfn() argument 101 return (mmu_btop(pte & PT_PADDR)); in rvi_pte_pfn() 105 rvi_pte_is_present(uint64_t pte) in rvi_pte_is_present() argument 107 return ((pte & PT_VALID) == PT_VALID); in rvi_pte_is_present() 113 uint64_t pte, newpte, oldpte = 0; in rvi_reset_bits() local 122 pte = oldpte; in rvi_reset_bits() [all …]
|
H A D | vmm_sol_ept.c | 50 ept_pte_prot(uint64_t pte) in ept_pte_prot() argument 52 return (pte & EPT_RWX); in ept_pte_prot() 79 ept_pte_pfn(uint64_t pte) in ept_pte_pfn() argument 81 return (mmu_btop(pte & PT_PADDR)); in ept_pte_pfn() 85 ept_pte_is_present(uint64_t pte) in ept_pte_is_present() argument 87 return ((pte & EPT_RWX) != 0); in ept_pte_is_present() 93 uint64_t pte, newpte, oldpte = 0; in ept_reset_bits() local 102 pte = oldpte; in ept_reset_bits() 103 newpte = (pte & ~mask) | bits; in ept_reset_bits() 104 oldpte = atomic_cas_64(entry, pte, newpte); in ept_reset_bits() [all …]
|
H A D | vmm_instruction_emul.c | 3042 pf_error_code(int usermode, int prot, int rsvd, uint64_t pte) in pf_error_code() argument 3046 if (pte & PG_V) in pf_error_code() 3097 uint64_t *ptpbase = NULL, pte = 0, pgsize = 0; in _vm_gla2gpa() local 3206 pte = ptpbase[ptpindex]; in _vm_gla2gpa() 3208 if ((pte & PG_V) == 0) { in _vm_gla2gpa() 3210 pfcode = pf_error_code(usermode, prot, 0, pte); in _vm_gla2gpa() 3219 ptpphys = pte; in _vm_gla2gpa() 3239 pte = ptpbase[ptpindex]; in _vm_gla2gpa() 3241 if ((pte & PG_V) == 0 || in _vm_gla2gpa() 3242 (usermode && (pte & PG_U) == 0) || in _vm_gla2gpa() [all …]
|
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/ |
H A D | i86mmu.c | 397 pte2mfn(x86pte_t pte, uint_t level) in pte2mfn() argument 400 if (level > 0 && (pte & PT_PAGESIZE)) in pte2mfn() 401 mfn = mmu_btop(pte & PT_PADDR_LGPG); in pte2mfn() 403 mfn = mmu_btop(pte & PT_PADDR); in pte2mfn() 408 do_pte_dcmd(int level, uint64_t pte) in do_pte_dcmd() argument 416 mdb_printf("pte=0x%llr: ", pte); in do_pte_dcmd() 418 mfn = pte2mfn(pte, level); in do_pte_dcmd() 421 if (PTE_GET(pte, mmu.pt_nx)) in do_pte_dcmd() 424 if (PTE_GET(pte, PT_NOCONSIST)) in do_pte_dcmd() 427 if (PTE_GET(pte, PT_NOSYNC)) in do_pte_dcmd() [all …]
|
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | hat_kdi.c | 157 x86pte_t pte; in kdi_vtop() local 187 pte = 0; in kdi_vtop() 188 if (kdi_pread((caddr_t)&pte, mmu.pte_size, *pap, &len) != 0) in kdi_vtop() 190 if (pte == 0) in kdi_vtop() 193 (pte & PT_PAGESIZE)) { in kdi_vtop() 194 *pap = kdi_mtop(pte & PT_PADDR_LGPG); in kdi_vtop() 197 *pap = kdi_mtop(pte & PT_PADDR); in kdi_vtop() 215 x86pte_t pte; in kdi_prw() local 230 pte = kdi_ptom(mmu_ptob(mmu_btop(pa))) | PT_VALID; in kdi_prw() 235 PTE_SET(pte, PT_WRITABLE); in kdi_prw() [all …]
|
H A D | htable.c | 214 x86pte_t pte = PT_NOCONSIST | PT_REF | PT_MOD; in xen_kpm_page() local 220 pte |= pa_to_ma(pa) | how; in xen_kpm_page() 222 pte = 0; in xen_kpm_page() 224 pte, UVMF_INVLPG | UVMF_ALL)); in xen_kpm_page() 254 xen_map(uint64_t pte, caddr_t va) in xen_map() argument 256 if (HYPERVISOR_update_va_mapping((uintptr_t)va, pte, in xen_map() 443 x86pte_t pte; in htable_steal_active() local 477 pte = x86pte_get(ht, e); in htable_steal_active() 478 if (!PTE_ISVALID(pte)) in htable_steal_active() 480 hat_pte_unmap(ht, e, HAT_UNLOAD, pte, NULL, in htable_steal_active() [all …]
|
H A D | hat_i86.c | 1573 x86pte_t pte; in hati_mkpte() local 1576 pte = MAKEPTE(pfn, level); in hati_mkpte() 1579 PTE_SET(pte, PT_WRITABLE); in hati_mkpte() 1582 PTE_SET(pte, PT_USER); in hati_mkpte() 1585 PTE_SET(pte, mmu.pt_nx); in hati_mkpte() 1592 PTE_SET(pte, PT_NOCONSIST | PT_REF | PT_MOD); in hati_mkpte() 1594 PTE_SET(pte, PT_NOSYNC | PT_REF | PT_MOD); in hati_mkpte() 1605 PTE_SET(pte, PT_NOCACHE); in hati_mkpte() 1610 PTE_SET(pte, PT_NOCACHE); in hati_mkpte() 1612 PTE_SET(pte, (level == 0) ? PT_PAT_4K : PT_PAT_LARGE); in hati_mkpte() [all …]
|
H A D | hat_pte.h | 258 #define SET_PTE(ptr, pte) (*(x86pte_t *)(ptr) = pte) argument 270 #define SET_PTE(ptr, pte) \ argument 271 ((mmu.pae_hat ? ((x86pte32_t *)(ptr))[1] = (pte >> 32) : 0), \ 272 *(x86pte32_t *)(ptr) = pte)
|
/illumos-gate/usr/src/lib/libnwam/common/ |
H A D | libnwam_object.c | 541 struct nwam_prop_table_entry *pte; in nwam_get_prop_description() local 545 if ((pte = nwam_get_prop_table_entry(table, propname)) == NULL) { in nwam_get_prop_description() 550 *descriptionp = dgettext(TEXT_DOMAIN, pte->prop_description); in nwam_get_prop_description() 558 struct nwam_prop_table_entry *pte; in nwam_get_prop_type() local 562 if ((pte = nwam_get_prop_table_entry(table, propname)) == NULL) in nwam_get_prop_type() 565 *typep = pte->prop_type; in nwam_get_prop_type() 574 struct nwam_prop_table_entry *pte; in nwam_prop_multivalued() local 578 if ((pte = nwam_get_prop_table_entry(table, propname)) == NULL) in nwam_prop_multivalued() 581 if (pte->prop_max_numvalues > 1) in nwam_prop_multivalued() 593 struct nwam_prop_table_entry *pte; in nwam_prop_read_only() local [all …]
|
H A D | libnwam_ncp.c | 1474 struct nwam_prop_table_entry *pte; in nwam_ncu_validate_prop_membership() local 1500 if ((pte = nwam_get_prop_table_entry(ncu_prop_table, propname)) == NULL) in nwam_ncu_validate_prop_membership() 1503 if (typeflags & pte->prop_type_membership && in nwam_ncu_validate_prop_membership() 1504 classflags & pte->prop_class_membership) { in nwam_ncu_validate_prop_membership()
|
/illumos-gate/usr/src/uts/intel/ia32/sys/ |
H A D | Makefile | 39 pte.h \ 57 $(ROOTDIR)/pte.h := LINK_TARGET = ../../sys/pte.h
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 159 x86pte_t pte, *pteptr; in xpv_panic_map() local 166 pte = pfn_to_pa(pfn) | PT_VALID; in xpv_panic_map() 170 *pteptr = pte; in xpv_panic_map() 172 *(x86pte32_t *)pteptr = pte; in xpv_panic_map() 186 x86pte_t pte; in xpv_va_walk() local 194 pte = 0; in xpv_va_walk() 229 pte = GET_PTE(ptep); in xpv_va_walk() 230 if (pte & PTE_VALID) in xpv_va_walk() 257 pfn = PTE2MFN(pte, l); in xpv_va_walk() 258 if (!PTE_ISPAGE(pte, l)) in xpv_va_walk()
|
H A D | xen_mmu.c | 300 pte2pfn(x86pte_t pte, level_t l) in pte2pfn() argument 302 mfn_t mfn = PTE2MFN(pte, l); in pte2pfn() 304 if ((pte & PT_SOFTWARE) >= PT_FOREIGN) in pte2pfn()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | immu_dvma.c | 1971 hw_pdte_t pte; in immu_print_fault_info() local 2003 pte = *((hw_pdte_t *) in immu_print_fault_info() 2008 (unsigned long long)pte, (unsigned long long)PDTE_PADDR(pte)); in immu_print_fault_info() 2016 hw_pdte_t pte; in PTE_set_one() local 2019 pte = immu->immu_ptemask; in PTE_set_one() 2020 PDTE_SET_PADDR(pte, paddr); in PTE_set_one() 2022 pte = *hwp; in PTE_set_one() 2024 if (PDTE_P(pte)) { in PTE_set_one() 2025 if (PDTE_PADDR(pte) != paddr) { in PTE_set_one() 2027 PDTE_PADDR(pte), paddr); in PTE_set_one() [all …]
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | pte.h | 60 typedef struct pte { struct 97 typedef struct pte {
|
H A D | Makefile | 75 pte.h \
|
H A D | vmm_dev.h | 203 uint64_t pte[4]; /* out */ member
|
/illumos-gate/usr/src/contrib/bhyve/amd64/machine/ |
H A D | pmap.h | 269 #define pte_load_store(ptep, pte) atomic_swap_long(ptep, pte) argument 271 #define pte_store(ptep, pte) do { \ argument 272 *(u_long *)(ptep) = (u_long)(pte); \
|
/illumos-gate/usr/src/lib/libvmm/ |
H A D | libvmm.c | 677 vmm_pte2paddr(vmm_t *vmm, uint64_t pte, boolean_t ia32, int level, in vmm_pte2paddr() argument 686 if (level < 4 && (pte & X86_PTE_P) == 0) { in vmm_pte2paddr() 696 if ((level == 1 || level == 2) && (pte & X86_PTE_PS) != 0) { in vmm_pte2paddr() 706 *paddr = (pte & X86_PTE_PHYSMASK & ~off_mask) + offset; in vmm_pte2paddr() 711 pte = 0; in vmm_pte2paddr() 712 if (vmm_pread(vmm, &pte, pte_size, *paddr) != pte_size) in vmm_pte2paddr() 714 return (vmm_pte2paddr(vmm, pte, ia32, level - 1, vaddr, paddr)); in vmm_pte2paddr()
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 746 uint64_t pte = 0; in xkb_get_pte() local 750 pte = *((uint64_t *)ptep); in xkb_get_pte() 753 pte = *((uint32_t *)ptep); in xkb_get_pte() 756 return (pte); in xkb_get_pte() 760 xkb_pte_to_base_mfn(uint64_t pte, size_t level) in xkb_pte_to_base_mfn() argument 762 if (PTE_IS_LGPG(pte, level)) { in xkb_pte_to_base_mfn() 763 pte &= PT_PADDR_LGPG; in xkb_pte_to_base_mfn() 765 pte &= PT_PADDR; in xkb_pte_to_base_mfn() 768 return (pte >> PAGE_SHIFT); in xkb_pte_to_base_mfn() 779 uint64_t pte; in xkb_va_to_mfn() local [all …]
|
/illumos-gate/usr/src/uts/i86xpv/vm/ |
H A D | seg_mf.c | 229 x86pte_t pte; in segmf_faultpage() local 262 pte = mmu_ptob((x86pte_t)mfn) | PT_VALID | PT_USER | PT_FOREIGN; in segmf_faultpage() 264 pte |= PT_WRITABLE; in segmf_faultpage() 266 if (HYPERVISOR_update_va_mapping_otherdomain((uintptr_t)addr, pte, in segmf_faultpage()
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | heap_kmem.c | 144 struct pte *pte; member
|
/illumos-gate/usr/src/uts/common/xen/dtrace/ |
H A D | xdt.c | 550 x86pte_t pte; in xdt_map_trace_buffers() local 569 pte = mmu_ptob((x86pte_t)mfn) | PT_VALID | PT_USER in xdt_map_trace_buffers() 573 pte, UVMF_INVLPG | UVMF_LOCAL, DOMID_XEN); in xdt_map_trace_buffers()
|
/illumos-gate/usr/src/lib/libvmmapi/common/ |
H A D | vmmapi.h | 171 int vm_get_gpa_pmap(struct vmctx *, uint64_t gpa, uint64_t *pte, int *num);
|