summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTan Chi <tanchi25@mails.ucas.ac.cn>2026-09-14 11:11:46 +0800
committerAnup Patel <anup@brainfault.org>2026-09-15 18:55:51 +0530
commit41e81f7e3ef96594fb840445343c0ee7723aa550 (patch)
treec87614b10737a706f0f88244194da0cd9ba14ff5 /tools/perf/scripts/python
parentc7e2cc38c56142cdab25e6f73602a8222bf9479b (diff)
downloadlinux-next-41e81f7e3ef96594fb840445343c0ee7723aa550.tar.gz
linux-next-41e81f7e3ef96594fb840445343c0ee7723aa550.zip
RISC-V: KVM: Fix HSM hart status error propagation
kvm_sbi_hsm_vcpu_get_status() returns SBI_ERR_INVALID_PARAM when the requested hart does not exist. However, the HART_STATUS case returns from the SBI handler without storing this error in retdata->err_val. As a result, a guest querying the status of a non-existent hart observes SBI_SUCCESS instead of SBI_ERR_INVALID_PARAM. Use the common SBI error handling path for HART_STATUS after saving a valid hart state in retdata->out_val. This preserves the returned error when kvm_sbi_hsm_vcpu_get_status() fails. Fixes: bae0dfd74e01 ("RISC-V: KVM: Modify SBI extension handler to return SBI error code") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Tan Chi <tanchi25@mails.ucas.ac.cn> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260914031146.446157-1-tanchi25@mails.ucas.ac.cn Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions