RISC-V: KVM: Add SBI PMU extension support
authorAtish Patra <atishp@rivosinc.com>
Tue, 7 Feb 2023 09:55:23 +0000 (01:55 -0800)
committerAnup Patel <anup@brainfault.org>
Tue, 7 Feb 2023 15:05:53 +0000 (20:35 +0530)
commitcbddc4c4cb9e30933777dbf3bc8645399af10140
tree7ba87069328e0f79c31a320d5581a96f2ced69aa
parent8f0153ecd3bf184bc06afca25b737c707fa4d765
RISC-V: KVM: Add SBI PMU extension support

SBI PMU extension allows KVM guests to configure/start/stop/query
about the PMU counters in virtualized enviornment as well.

In order to allow that, KVM implements the entire SBI PMU extension.

Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/Makefile
arch/riscv/kvm/vcpu_sbi.c
arch/riscv/kvm/vcpu_sbi_pmu.c [new file with mode: 0644]