Searched refs:utrap (Results 1 – 4 of 4) sorted by relevance
154 struct kvm_cpu_trap utrap = { 0 }; in truly_illegal_insn() local157 utrap.sepc = vcpu->arch.guest_context.sepc; in truly_illegal_insn()158 utrap.scause = EXC_INST_ILLEGAL; in truly_illegal_insn()159 utrap.stval = insn; in truly_illegal_insn()160 utrap.htval = 0; in truly_illegal_insn()161 utrap.htinst = 0; in truly_illegal_insn()162 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in truly_illegal_insn()170 struct kvm_cpu_trap utrap = { 0 }; in truly_virtual_insn() local173 utrap.sepc = vcpu->arch.guest_context.sepc; in truly_virtual_insn()174 utrap.scause = EXC_VIRTUAL_INST_FAULT; in truly_virtual_insn()[all …]
25 struct kvm_cpu_trap *utrap = retdata->utrap; in kvm_sbi_ext_v01_handler() local50 hmask = kvm_riscv_vcpu_unpriv_read(vcpu, false, cp->a0, utrap); in kvm_sbi_ext_v01_handler()53 if (utrap->scause) in kvm_sbi_ext_v01_handler()72 hmask = kvm_riscv_vcpu_unpriv_read(vcpu, false, cp->a0, utrap); in kvm_sbi_ext_v01_handler()75 if (utrap->scause) in kvm_sbi_ext_v01_handler()
364 struct kvm_cpu_trap utrap = {0}; in kvm_riscv_vcpu_sbi_ecall() local368 .utrap = &utrap, in kvm_riscv_vcpu_sbi_ecall()396 if (sbi_ret.utrap->scause) { in kvm_riscv_vcpu_sbi_ecall()399 sbi_ret.utrap->sepc = cp->sepc; in kvm_riscv_vcpu_sbi_ecall()400 kvm_riscv_vcpu_trap_redirect(vcpu, sbi_ret.utrap); in kvm_riscv_vcpu_sbi_ecall()
31 struct kvm_cpu_trap *utrap; member