Re: [PATCH] RISC-V: KVM: Add arch-specific tracepoints
"Yuhang.Chen" <[email protected]> Thu, 30 Jul 2026 14:50:48 +0800
| Newsgroups | org.infradead.lists.kvm-riscv,org.infradead.lists.linux-riscv,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi Anup, Thanks for the review. I've addressed your comments in v2. On Tue, Jul 28, 2026 at 09:05:39PM +0530, Anup Patel wrote: > Drop kvm_guest_fault, kvm_sbi_ecall, kvm_wait_riscv, and > kvm_csr_access tracepoints. Instead add common > kvm_vcpu_exit tracepoint for all vcpu exits just before the > switch case in kvm_riscv_vcpu_exit() function. Done. kvm_vcpu_exit now reports the full trap context (sepc/scause/stval/htval/htinst) and is placed just before the switch case, after the CAUSE_IRQ_FLAG early-return, so it fires only for synchronous traps. > Drop the kvm_irq_line and kvm_timer_update_irq tracepoints. > Instead add common kvm_vcpu_irq tracepoint called from > kvm_riscv_vcpu_set/unset_interrupt() function. Done. kvm_vcpu_irq is called from kvm_riscv_vcpu_set_interrupt() and kvm_riscv_vcpu_unset_interrupt(), covering all callers. > The kvm_mmio_emulate tracepoint is fine. Kept kvm_mmio_emulate unchanged. v2 follows in this thread, with example trace output captured from QEMU included in the commit message. Thanks, Yuhang -- kvm-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kvm-riscv