[PATCH v3 2/2] riscv: KVM: add basic support for host vs guest profiling
Andrew Jones
ajones at ventanamicro.com
Mon Sep 16 05:41:27 PDT 2024
On Thu, Sep 12, 2024 at 04:00:38PM GMT, zhouquan at iscas.ac.cn wrote:
> From: Quan Zhou <zhouquan at iscas.ac.cn>
>
> 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 at iscas.ac.cn>
> ---
> arch/riscv/include/asm/kvm_host.h | 10 ++++++++++
> arch/riscv/kvm/Kconfig | 1 +
> arch/riscv/kvm/main.c | 12 ++++++++++--
> arch/riscv/kvm/vcpu.c | 7 +++++++
> 4 files changed, 28 insertions(+), 2 deletions(-)
>
Reviewed-by: Andrew Jones <ajones at ventanamicro.com>
More information about the linux-riscv
mailing list