lkml.org 
[lkml]   [2023]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v5 13/14] RISC-V: KVM: Support firmware events
    On Sat, Feb 04, 2023 at 05:15:14PM -0800, Atish Patra wrote:
    > SBI PMU extension defines a set of firmware events which can provide
    > useful information to guests about the number of SBI calls. As
    > hypervisor implements the SBI PMU extension, these firmware events
    > correspond to ecall invocations between VS->HS mode. All other firmware
    > events will always report zero if monitored as KVM doesn't implement them.
    >
    > This patch adds all the infrastructure required to support firmware
    > events.
    >
    > Reviewed-by: Anup Patel <anup@brainfault.org>
    > Signed-off-by: Atish Patra <atishp@rivosinc.com>
    > ---
    > arch/riscv/include/asm/kvm_vcpu_pmu.h | 17 ++++
    > arch/riscv/kvm/vcpu_pmu.c | 141 ++++++++++++++++++++------
    > 2 files changed, 125 insertions(+), 33 deletions(-)
    >

    Reviewed-by: Andrew Jones <ajones@ventanamicro.com>

    Thanks,
    drew

    \
     
     \ /
      Last update: 2023-03-27 00:10    [W:4.673 / U:0.612 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site