diff options
author | Atish Patra <atishp@rivosinc.com> | 2023-02-07 01:55:26 -0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-02-07 20:36:01 +0530 |
commit | a9ac6c37521ff3f81eba7fada8773c362652d75f (patch) | |
tree | 1f086938288606f2eadbfbda47053861193ab053 /kernel | |
parent | f04bafb52f580552dc22bfb5b7af9a5dbcc2254f (diff) | |
download | linux-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