diff options
author | Atish Patra | 2024-04-20 08:17:28 -0700 |
---|---|---|
committer | Anup Patel | 2024-04-26 13:13:46 +0530 |
commit | 2196c066f13861919a83b3b3ffda08a79cf87bdd (patch) | |
tree | 463ecb64c49689f627f682c2b4a7db2a16855dcf /mm/page-writeback.c | |
parent | 98ce906bd0a64b59da894263b1ce0d2c19c70893 (diff) |
RISC-V: KVM: No need to exit to the user space if perf event failed
Currently, we return a linux error code if creating a perf event failed
in kvm. That shouldn't be necessary as guest can continue to operate
without perf profiling or profiling with firmware counters.
Return appropriate SBI error code to indicate that PMU configuration
failed. An error message in kvm already describes the reason for failure.
Fixes: 0cb74b65d2e5 ("RISC-V: KVM: Implement perf support without sampling")
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240420151741.962500-13-atishp@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions