]> www.infradead.org Git - users/jedix/linux-maple.git/commit
riscv: KVM: add basic support for host vs guest profiling
authorQuan Zhou <zhouquan@iscas.ac.cn>
Tue, 15 Oct 2024 02:58:37 +0000 (10:58 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Oct 2024 11:11:14 +0000 (16:41 +0530)
commiteded6754f398b5b4950e8f593f75fee63a8b49ad
treee092b680fbb846ce3f4823e1c02a1fb20d1cccca
parent5bb5ccb3e8d8dba29941cd78d5c1bcd27b227b4a
riscv: KVM: add basic support for host vs guest profiling

For the information collected on the host side, we need to
identify which data originates from the guest and record
these events separately, this can be achieved by having
KVM register perf callbacks.

Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/00342d535311eb0629b9ba4f1e457a48e2abee33.1728957131.git.zhouquan@iscas.ac.cn
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_host.h
arch/riscv/kvm/Kconfig
arch/riscv/kvm/main.c
arch/riscv/kvm/vcpu.c