RISC-V: KVM: Add skeleton support for perf
authorAtish Patra <atishp@rivosinc.com>
Tue, 7 Feb 2023 09:55:22 +0000 (01:55 -0800)
committerAnup Patel <anup@brainfault.org>
Tue, 7 Feb 2023 15:05:51 +0000 (20:35 +0530)
commit8f0153ecd3bf184bc06afca25b737c707fa4d765
tree05d97577625e023d709eca63fb8d8de5184e5256
parentbae0dfd74e0147cbde332e31b7a71bf6db0eab45
RISC-V: KVM: Add skeleton support for perf

This patch only adds barebone structure of perf implementation. Most
of the function returns zero at this point and will be implemented
fully in the future.

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/include/asm/kvm_host.h
arch/riscv/include/asm/kvm_vcpu_pmu.h [new file with mode: 0644]
arch/riscv/kvm/Makefile
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vcpu_pmu.c [new file with mode: 0644]