/freebsd/sys/contrib/dev/iwlwifi/pcie/ |
H A D | ctxt-info.c | 68 if (!dram->paging) { in iwl_pcie_ctxt_info_free_paging() 73 /* free paging*/ in iwl_pcie_ctxt_info_free_paging() 75 dma_free_coherent(trans->dev, dram->paging[i].size, in iwl_pcie_ctxt_info_free_paging() 76 dram->paging[i].block, in iwl_pcie_ctxt_info_free_paging() 77 dram->paging[i].physical); in iwl_pcie_ctxt_info_free_paging() 79 kfree(dram->paging); in iwl_pcie_ctxt_info_free_paging() 81 dram->paging = NULL; in iwl_pcie_ctxt_info_free_paging() 91 if (WARN(dram->paging, in iwl_pcie_init_fw_sec() 92 "paging shouldn't already be initialized (%d pages)\n", in iwl_pcie_init_fw_sec() 105 dram->paging in iwl_pcie_init_fw_sec() [all...] |
/freebsd/usr.sbin/bhyve/amd64/ |
H A D | task_switch.c | 203 desc_table_rw(struct vcpu *vcpu, struct vm_guest_paging *paging, in desc_table_rw() argument 217 error = vm_copy_setup(vcpu, paging, base + SEL_START(sel), in desc_table_rw() 231 desc_table_read(struct vcpu *vcpu, struct vm_guest_paging *paging, in desc_table_read() argument 234 return (desc_table_rw(vcpu, paging, sel, desc, true, faultptr)); in desc_table_read() 238 desc_table_write(struct vcpu *vcpu, struct vm_guest_paging *paging, in desc_table_write() argument 241 return (desc_table_rw(vcpu, paging, sel, desc, false, faultptr)); in desc_table_write() 270 sup_paging = ts->paging; in read_tss_descriptor() 368 sup_paging = ts->paging; in validate_seg_desc() 502 if (ts->paging.paging_mode != PAGING_MODE_FLAT) { in tss32_restore() 503 if (ts->paging.paging_mode == PAGING_MODE_PAE) { in tss32_restore() [all …]
|
H A D | inout.c | 156 if (vie_calculate_gla(vis->paging.cpu_mode, in emulate_inout() 163 error = vm_copy_setup(vcpu, &vis->paging, gla, in emulate_inout() 173 if (vie_alignment_check(vis->paging.cpl, bytes, in emulate_inout()
|
/freebsd/sys/arm64/vmm/ |
H A D | vmm_arm64.c | 596 struct vm_guest_paging *paging; in arm64_gen_inst_emul_data() local 618 paging = &vme_ret->u.inst_emul.paging; in arm64_gen_inst_emul_data() 619 paging->ttbr0_addr = hypctx->ttbr0_el1 & ~(TTBR_ASID_MASK | TTBR_CnP); in arm64_gen_inst_emul_data() 620 paging->ttbr1_addr = hypctx->ttbr1_el1 & ~(TTBR_ASID_MASK | TTBR_CnP); in arm64_gen_inst_emul_data() 621 paging->tcr_el1 = hypctx->tcr_el1; in arm64_gen_inst_emul_data() 622 paging->tcr2_el1 = hypctx->tcr2_el1; in arm64_gen_inst_emul_data() 623 paging->flags = hypctx->tf.tf_spsr & (PSR_M_MASK | PSR_M_32); in arm64_gen_inst_emul_data() 625 paging->flags |= VM_GP_MMU_ENABLED; in arm64_gen_inst_emul_data() 733 vme_ret->u.paging.esr = hypctx->tf.tf_esr; in handle_el1_sync_excp() 734 vme_ret->u.paging.gpa = gpa; in handle_el1_sync_excp() [all …]
|
H A D | vmm.c | 919 vm_gla2gpa_nofault(struct vcpu *vcpu, struct vm_guest_paging *paging, in vm_gla2gpa_nofault() argument 923 vmmops_gla2gpa(vcpu->cookie, paging, gla, prot, gpa, is_fault); in vm_gla2gpa_nofault() 1139 struct vm_guest_paging *paging; in vm_handle_inst_emul() local 1150 paging = &vme->u.inst_emul.paging; in vm_handle_inst_emul() 1165 error = vmm_emulate_instruction(vcpu, fault_ipa, vie, paging, in vm_handle_inst_emul() 1725 addr = vme->u.paging.gpa; in vm_handle_paging() 1726 esr = vme->u.paging.esr; in vm_handle_paging() 1742 rv = vm_fault(map, vme->u.paging.gpa, ftype, VM_FAULT_NORMAL, NULL); in vm_handle_paging()
|
H A D | vmm_dev_machdep.c | 102 error = vm_gla2gpa_nofault(vcpu, &gg->paging, gg->gla, in vmmdev_machdep_ioctl()
|
/freebsd/sys/amd64/vmm/ |
H A D | vmm_instruction_emul.c | 711 struct vm_guest_paging *paging, int opsize, int addrsize, int prot, in get_gla() argument 732 if (vie_calculate_gla(paging->cpu_mode, seg, &desc, val, opsize, in get_gla() 741 if (vie_canonical_check(paging->cpu_mode, *gla)) { in get_gla() 749 if (vie_alignment_check(paging->cpl, opsize, cr0, rflags, *gla)) { in get_gla() 764 struct vm_guest_paging *paging, mem_region_read_t memread, in emulate_movs() argument 820 error = get_gla(vcpu, vie, paging, opsize, vie->addrsize, in emulate_movs() 825 error = vm_copy_setup(vcpu, paging, srcaddr, opsize, PROT_READ, in emulate_movs() 845 error = get_gla(vcpu, vie, paging, opsize, vie->addrsize, in emulate_movs() 851 error = vm_copy_setup(vcpu, paging, dstaddr, opsize, in emulate_movs() 881 error = vm_gla2gpa(vcpu, paging, srcaddr, in emulate_movs() [all …]
|
H A D | vmm.c | 1623 ftype = vme->u.paging.fault_type; in vm_handle_paging() 1630 vme->u.paging.gpa, ftype); in vm_handle_paging() 1634 vme->u.paging.gpa); in vm_handle_paging() 1640 rv = vm_fault(map, vme->u.paging.gpa, ftype, VM_FAULT_NORMAL, NULL); in vm_handle_paging() 1643 "ftype = %d", rv, vme->u.paging.gpa, ftype); in vm_handle_paging() 1657 struct vm_guest_paging *paging; in vm_handle_inst_emul() local 1673 paging = &vme->u.inst_emul.paging; in vm_handle_inst_emul() 1674 cpu_mode = paging->cpu_mode; in vm_handle_inst_emul() 1680 error = vmm_fetch_instruction(vcpu, paging, vme->rip + cs_base, in vm_handle_inst_emul() 1721 error = vmm_emulate_instruction(vcpu, gpa, vie, paging, mread, mwrite, in vm_handle_inst_emul() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/fw/ |
H A D | paging.c | 19 struct iwl_fw_paging *paging = &fwrt->fw_paging_db[i]; in iwl_free_fw_paging() local 21 if (!paging->fw_paging_block) { in iwl_free_fw_paging() 28 dma_unmap_page(fwrt->trans->dev, paging->fw_paging_phys, in iwl_free_fw_paging() 29 paging->fw_paging_size, DMA_BIDIRECTIONAL); in iwl_free_fw_paging() 31 __free_pages(paging->fw_paging_block, in iwl_free_fw_paging() 32 get_order(paging->fw_paging_size)); in iwl_free_fw_paging() 33 paging->fw_paging_block = NULL; in iwl_free_fw_paging()
|
/freebsd/sys/amd64/include/ |
H A D | vmm_instruction_emul.h | 55 struct vm_guest_paging *paging, mem_region_read_t mrr, 95 int vm_gla2gpa(struct vcpu *vcpu, struct vm_guest_paging *paging, 102 int vm_gla2gpa_nofault(struct vcpu *vcpu, struct vm_guest_paging *paging,
|
H A D | vmm.h | 479 int vm_copy_setup(struct vcpu *vcpu, struct vm_guest_paging *paging, 668 struct vm_guest_paging paging; member 691 struct vm_guest_paging paging; member 704 } paging; member 710 struct vm_guest_paging paging; member 747 struct vm_guest_paging paging; member
|
/freebsd/usr.sbin/bhyve/ |
H A D | gdb.c | 287 guest_paging_info(struct vcpu *vcpu, struct vm_guest_paging *paging) in guest_paging_info() argument 306 paging->cr3 = regs[1]; in guest_paging_info() 307 paging->cpl = 0; in guest_paging_info() 309 paging->cpu_mode = CPU_MODE_64BIT; in guest_paging_info() 311 paging->cpu_mode = CPU_MODE_PROTECTED; in guest_paging_info() 313 paging->cpu_mode = CPU_MODE_REAL; in guest_paging_info() 315 paging->paging_mode = PAGING_MODE_FLAT; in guest_paging_info() 317 paging->paging_mode = PAGING_MODE_32; in guest_paging_info() 319 paging->paging_mode = (regs[2] & CR4_LA57) ? in guest_paging_info() 322 paging->paging_mode = PAGING_MODE_PAE; in guest_paging_info() [all …]
|
H A D | mem.c | 226 struct vm_guest_paging *paging; member 236 return (vmm_emulate_instruction(vcpu, paddr, ema->vie, ema->paging, in emulate_mem_cb() 242 struct vm_guest_paging *paging) in emulate_mem() argument 247 ema.paging = paging; in emulate_mem()
|
H A D | mem.h | 55 struct vm_guest_paging *paging);
|
/freebsd/sys/riscv/include/ |
H A D | vmm.h | 163 int vm_gla2gpa_nofault(struct vcpu *vcpu, struct vm_guest_paging *paging, 305 } paging; member 309 struct vm_guest_paging paging; member
|
H A D | vmm_instruction_emul.h | 58 struct vm_guest_paging *paging, mem_region_read_t mrr,
|
/freebsd/sys/arm64/include/ |
H A D | vmm.h | 182 int vm_gla2gpa_nofault(struct vcpu *vcpu, struct vm_guest_paging *paging, 353 } paging; member 356 struct vm_guest_paging paging; member
|
/freebsd/lib/libvmmapi/ |
H A D | vmmapi.c | 875 vm_gla2gpa(struct vcpu *vcpu, struct vm_guest_paging *paging, in vm_gla2gpa() argument 884 gg.paging = *paging; in vm_gla2gpa() 896 vm_gla2gpa_nofault(struct vcpu *vcpu, struct vm_guest_paging *paging, in vm_gla2gpa_nofault() argument 905 gg.paging = *paging; in vm_gla2gpa_nofault() 921 vm_copy_setup(struct vcpu *vcpu, struct vm_guest_paging *paging, in vm_copy_setup() argument 936 error = vm_gla2gpa(vcpu, paging, gla, prot, &gpa, fault); in vm_copy_setup()
|
H A D | vmmapi.h | 136 int vm_gla2gpa(struct vcpu *vcpu, struct vm_guest_paging *paging, 140 struct vm_guest_paging *paging, uint64_t gla, int prot,
|
/freebsd/sys/amd64/vmm/amd/ |
H A D | svm.c | 760 svm_paging_info(struct vmcb *vmcb, struct vm_guest_paging *paging) in svm_paging_info() argument 765 paging->cr3 = state->cr3; in svm_paging_info() 766 paging->cpl = svm_cpl(state); in svm_paging_info() 767 paging->cpu_mode = svm_vcpu_mode(vmcb); in svm_paging_info() 768 paging->paging_mode = svm_paging_mode(state->cr0, state->cr4, in svm_paging_info() 815 svm_paging_info(svm_get_vmcb(vcpu), &vis->paging); in svm_handle_io() 861 struct vm_guest_paging *paging; in svm_handle_inst_emul() local 868 paging = &vmexit->u.inst_emul.paging; in svm_handle_inst_emul() 873 svm_paging_info(vmcb, paging); in svm_handle_inst_emul() 878 switch(paging->cpu_mode) { in svm_handle_inst_emul() [all …]
|
/freebsd/sys/riscv/vmm/ |
H A D | vmm_instruction_emul.c | 61 struct vm_guest_paging *paging __unused, mem_region_read_t memread, in vmm_emulate_instruction()
|
H A D | vmm.c | 809 vm_gla2gpa_nofault(struct vcpu *vcpu, struct vm_guest_paging *paging, in vm_gla2gpa_nofault() argument 814 error = vmmops_gla2gpa(vcpu->cookie, paging, gla, prot, gpa, is_fault); in vm_gla2gpa_nofault() 865 struct vm_guest_paging *paging; in vm_handle_inst_emul() local 876 paging = &vme->u.inst_emul.paging; in vm_handle_inst_emul() 891 error = vmm_emulate_instruction(vcpu, fault_ipa, vie, paging, in vm_handle_inst_emul()
|
H A D | vmm_dev_machdep.c | 98 error = vm_gla2gpa_nofault(vcpu, &gg->paging, gg->gla, in vmmdev_machdep_ioctl()
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | att3b | 25 >18 beshort ^00010000 N/A on 3b2/300 w/paging
|
/freebsd/sys/amd64/vmm/intel/ |
H A D | vmx.c | 2065 vmx_paging_info(struct vm_guest_paging *paging) in vmx_paging_info() argument 2067 paging->cr3 = vmcs_guest_cr3(); in vmx_paging_info() 2068 paging->cpl = vmx_cpl(); in vmx_paging_info() 2069 paging->cpu_mode = vmx_cpu_mode(); in vmx_paging_info() 2070 paging->paging_mode = vmx_paging_mode(); in vmx_paging_info() 2076 struct vm_guest_paging *paging; in vmexit_inst_emul() local 2079 paging = &vmexit->u.inst_emul.paging; in vmexit_inst_emul() 2085 vmx_paging_info(paging); in vmexit_inst_emul() 2086 switch (paging->cpu_mode) { in vmexit_inst_emul() 2472 vmx_paging_info(&ts->paging); in vmx_exit_process() [all …]
|