[PATCH v1 0/3] RISC-V: KVM: Fix PMU counter handling issues
SeungJu Cheon <[email protected]>
| Newsgroups | org.kernel.vger.kvm,dev.linux.lists.linux-kernel-mentees,org.infradead.lists.kvm-riscv,org.infradead.lists.linux-riscv,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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 -- 2.52.0