Home
last modified time | relevance | path

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

/linux-6.6.21/arch/riscv/kvm/
Dvcpu_insn.c154 struct kvm_cpu_trap utrap = { 0 }; in truly_illegal_insn() local
157 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() local
173 utrap.sepc = vcpu->arch.guest_context.sepc; in truly_virtual_insn()
174 utrap.scause = EXC_VIRTUAL_INST_FAULT; in truly_virtual_insn()
[all …]
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()
Dvcpu_sbi.c364 struct kvm_cpu_trap utrap = {0}; in kvm_riscv_vcpu_sbi_ecall() local
368 .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()
/linux-6.6.21/arch/riscv/include/asm/
Dkvm_vcpu_sbi.h31 struct kvm_cpu_trap *utrap; member