Skip to content

RISC-V: KVM: Fix PMU counter handling issues

SeungJu Cheon kvm kvm-riscv linux-kernel-mentees linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3RISC-V: KVM: Preserve firmware counter value across stop/startarch/riscv/kvm/vcpu_pmu.c+6 -60 replies
2/3RISC-V: KVM: Report snapshot write failure to the guestarch/riscv/kvm/vcpu_pmu.c+4 -30 replies
3/3RISC-V: KVM: Fix perf-backed counter accounting across stop and readarch/riscv/kvm/vcpu_pmu.c+8 -80 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAnup Patel
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] RISC-V: KVM: Fix PMU counter handling issues

This series fixes three issues in the KVM RISC-V PMU implementation:

- preserve firmware counter values across stop/start;
- report failures when writing snapshot data to guest memory; and
- fix perf-backed counter accounting across read and stop.

The changes were tested with the existing KVM RISC-V SBI PMU selftests and additional tests covering the affected stop/start, snapshot failure, and repeated read paths.

SeungJu Cheon (3):
RISC-V: KVM: Preserve firmware counter value across stop/start
RISC-V: KVM: Report snapshot write failure to the guest
RISC-V: KVM: Fix perf-backed counter accounting across stop and read

 arch/riscv/kvm/vcpu_pmu.c | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

base-commit: 0a0d1d55dad570724bf8c7ea83409639cfb4be9b

Signature · 1 line
2.52.0