diff options
author | Atish Patra <atishp@rivosinc.com> | 2024-04-20 08:17:29 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-04-26 13:13:48 +0530 |
commit | c2f41ddbcdd75689d9f512638a40263e3127be93 (patch) | |
tree | de23f598da3845b185cfefaac05fb2dd5b59ad32 /arch/riscv/include/asm/csr.h | |
parent | 2196c066f13861919a83b3b3ffda08a79cf87bdd (diff) |
RISC-V: KVM: Implement SBI PMU Snapshot feature
PMU Snapshot function allows to minimize the number of traps when the
guest access configures/access the hpmcounters. If the snapshot feature
is enabled, the hypervisor updates the shared memory with counter
data and state of overflown counters. The guest can just read the
shared memory instead of trap & emulate done by the hypervisor.
This patch doesn't implement the counter overflow yet.
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240420151741.962500-14-atishp@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/include/asm/csr.h')
0 files changed, 0 insertions, 0 deletions