Home
last modified time | relevance | path

Searched refs:utrap (Results 1 – 3 of 3) sorted by relevance

/linux/arch/riscv/kvm/
H A Dvcpu_insn.c159 struct kvm_cpu_trap utrap = { 0 }; in truly_illegal_insn() local
162 utrap.sepc = vcpu->arch.guest_context.sepc; in truly_illegal_insn()
163 utrap.scause = EXC_INST_ILLEGAL; in truly_illegal_insn()
164 utrap.stval = insn; in truly_illegal_insn()
165 utrap.htval = 0; in truly_illegal_insn()
166 utrap.htinst = 0; in truly_illegal_insn()
167 kvm_riscv_vcpu_trap_redirect(vcpu, &utrap); in truly_illegal_insn()
175 struct kvm_cpu_trap utrap = { 0 }; in truly_virtual_insn() local
178 utrap.sepc = vcpu->arch.guest_context.sepc; in truly_virtual_insn()
179 utrap.scause = EXC_VIRTUAL_INST_FAULT; in truly_virtual_insn()
[all …]
H A Dvcpu_sbi_v01.c25 struct kvm_cpu_trap *utrap = retdata->utrap; in kvm_sbi_ext_v01_handler() local
50 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()
/linux/arch/riscv/include/asm/
H A Dkvm_vcpu_sbi.h32 struct kvm_cpu_trap *utrap; member