summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2023-02-07 01:55:26 -0800
committerAnup Patel <anup@brainfault.org>2023-02-07 20:36:01 +0530
commita9ac6c37521ff3f81eba7fada8773c362652d75f (patch)
tree1f086938288606f2eadbfbda47053861193ab053 /kernel
parentf04bafb52f580552dc22bfb5b7af9a5dbcc2254f (diff)
downloadlinux-a9ac6c37521ff3f81eba7fada8773c362652d75f.tar.gz
linux-a9ac6c37521ff3f81eba7fada8773c362652d75f.tar.bz2
linux-a9ac6c37521ff3f81eba7fada8773c362652d75f.zip
RISC-V: KVM: Implement trap & emulate for hpmcounters
As the KVM guests only see the virtual PMU counters, all hpmcounter access should trap and KVM emulates the read access on behalf of guests. 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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions