diff options
author | Atish Patra <atishp@rivosinc.com> | 2023-02-07 10:55:26 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2023-02-07 16:06:01 +0100 |
commit | a9ac6c37521ff3f81eba7fada8773c362652d75f (patch) | |
tree | 1f086938288606f2eadbfbda47053861193ab053 /lib | |
parent | RISC-V: KVM: Disable all hpmcounter access for VS/VU mode (diff) | |
download | linux-a9ac6c37521ff3f81eba7fada8773c362652d75f.tar.xz 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 'lib')
0 files changed, 0 insertions, 0 deletions