]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: KVM: Update firmware counters for various events
authorAtish Patra <atishp@rivosinc.com>
Tue, 24 Dec 2024 21:04:54 +0000 (13:04 -0800)
committerAnup Patel <anup@brainfault.org>
Mon, 30 Dec 2024 08:31:02 +0000 (14:01 +0530)
commit2f15b5eaff79b70b004b0aae79dee62d3b3abda0
tree4666915497299294dc2913c06384e4758df1a91a
parent51c58956732bb20c5782dea1b2966270827e3aa2
RISC-V: KVM: Update firmware counters for various events

SBI PMU specification defines few firmware counters which can be
used by the guests to collect the statstics about various traps
occurred in the host.

Update these counters whenever a corresponding trap is taken

Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20241224-kvm_guest_stat-v2-2-08a77ac36b02@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu_exit.c