Home
last modified time | relevance | path

Searched refs:ptpindex (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/intel/io/vmm/intel/
H A Dvtd.c674 int i, spshift, ptpshift, ptpindex, nlevels; in vtd_update_mapping() local
678 ptpindex = 0; in vtd_update_mapping()
719 ptpindex = (gpa >> ptpshift) & 0x1FF; in vtd_update_mapping()
732 if (ptp[ptpindex] == 0) { in vtd_update_mapping()
734 ptp[ptpindex] = vtophys(nlp)| VTD_PTE_RD | VTD_PTE_WR; in vtd_update_mapping()
737 ptp = (uint64_t *)PHYS_TO_DMAP(ptp[ptpindex] & VTD_PTE_ADDR_M); in vtd_update_mapping()
747 ptp[ptpindex] = 0; in vtd_update_mapping()
749 ptp[ptpindex] = hpa | VTD_PTE_RD | VTD_PTE_WR; in vtd_update_mapping()
752 ptp[ptpindex] |= VTD_PTE_SUPERPAGE; in vtd_update_mapping()
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_instruction_emul.c3095 int ptpshift = 0, ptpindex = 0; in _vm_gla2gpa() local
3139 ptpindex = (gla >> ptpshift) & 0x3FF; in _vm_gla2gpa()
3142 pte32 = ptpbase32[ptpindex]; in _vm_gla2gpa()
3166 if (atomic_cmpset_32(&ptpbase32[ptpindex], in _vm_gla2gpa()
3181 if (atomic_cmpset_32(&ptpbase32[ptpindex], in _vm_gla2gpa()
3204 ptpindex = (gla >> 30) & 0x3; in _vm_gla2gpa()
3206 pte = ptpbase[ptpindex]; in _vm_gla2gpa()
3236 ptpindex = (gla >> ptpshift) & 0x1FF; in _vm_gla2gpa()
3239 pte = ptpbase[ptpindex]; in _vm_gla2gpa()
3256 if (atomic_cmpset_64(&ptpbase[ptpindex], in _vm_gla2gpa()
[all …]