Home
last modified time | relevance | path

Searched refs:scause (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/arch/riscv/kvm/
Dvcpu_exit.c28 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT && !writable)) { in gstage_page_fault()
29 switch (trap->scause) { in gstage_page_fault()
44 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT) ? true : false); in gstage_page_fault()
96 if (trap->scause == EXC_LOAD_PAGE_FAULT) in kvm_riscv_vcpu_unpriv_read()
97 trap->scause = EXC_INST_PAGE_FAULT; in kvm_riscv_vcpu_unpriv_read()
157 csr_write(CSR_VSCAUSE, trap->scause); in kvm_riscv_vcpu_trap_redirect()
178 if (trap->scause & CAUSE_IRQ_FLAG) in kvm_riscv_vcpu_exit()
184 switch (trap->scause) { in kvm_riscv_vcpu_exit()
225 trap->scause, trap->stval, trap->htval, trap->htinst); in kvm_riscv_vcpu_exit()
Dtrace.h37 __field(unsigned long, scause)
45 __entry->scause = trap->scause;
53 __entry->scause,
Dvcpu_sbi_v01.c53 if (utrap->scause) in kvm_sbi_ext_v01_handler()
75 if (utrap->scause) in kvm_sbi_ext_v01_handler()
Dvcpu_insn.c163 utrap.scause = EXC_INST_ILLEGAL; in truly_illegal_insn()
179 utrap.scause = EXC_VIRTUAL_INST_FAULT; in truly_virtual_insn()
451 if (utrap.scause) { in kvm_riscv_vcpu_virtual_insn()
506 if (utrap.scause) { in kvm_riscv_vcpu_mmio_load()
632 if (utrap.scause) { in kvm_riscv_vcpu_mmio_store()
Dvcpu_sbi.c457 if (sbi_ret.utrap->scause) { in kvm_riscv_vcpu_sbi_ecall()
Dvcpu.c853 trap.scause = csr_read(CSR_SCAUSE); in kvm_arch_vcpu_ioctl_run()
/linux-6.12.1/arch/riscv/include/uapi/asm/
Dkvm.h77 unsigned long scause; member
/linux-6.12.1/arch/riscv/include/asm/
Dkvm_host.h121 unsigned long scause; member
/linux-6.12.1/tools/testing/selftests/kvm/riscv/
Dget-reg-list.c273 case KVM_REG_RISCV_CSR_REG(scause): in general_csr_id_to_str()
274 return RISCV_CSR_GENERAL(scause); in general_csr_id_to_str()
720 …KVM_REG_SIZE_ULONG | KVM_REG_RISCV_CSR | KVM_REG_RISCV_CSR_GENERAL | KVM_REG_RISCV_CSR_REG(scause),
/linux-6.12.1/arch/riscv/kernel/
Dasm-offsets.c212 OFFSET(KVM_ARCH_TRAP_SCAUSE, kvm_cpu_trap, scause); in asm_offsets()
/linux-6.12.1/Documentation/virt/kvm/
Dapi.rst2844 0x80x0 0000 0300 0005 scause Supervisor trap cause