diff options
| author | SeungJu Cheon <suunj1331@gmail.com> | 2026-08-25 17:37:18 +0900 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-09-15 18:55:51 +0530 |
| commit | 057dd2639ceae79adced5d8fe52c32d562edcb3a (patch) | |
| tree | e75825f948f5d6f0f954517c2799002d6ab4aa9d /tools/perf/scripts/python | |
| parent | 8b3fd1a8b305321171602bfa7c41212441cf69e4 (diff) | |
| download | linux-next-057dd2639ceae79adced5d8fe52c32d562edcb3a.tar.gz linux-next-057dd2639ceae79adced5d8fe52c32d562edcb3a.zip | |
RISC-V: KVM: Report snapshot write failure to the guest
If kvm_vcpu_write_guest() fails while updating the PMU snapshot area
on counter stop, the guest may receive SBI_SUCCESS without the
snapshot being updated, leaving stale data in shared memory.
Return SBI_ERR_FAILURE when the snapshot write fails.
Fixes: c2f41ddbcdd7 ("RISC-V: KVM: Implement SBI PMU Snapshot feature")
Signed-off-by: SeungJu Cheon <suunj1331@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260825083719.643970-3-suunj1331@gmail.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
