mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
RISC-V: KVM: Zicbo[m|z|p] block sizes should be always present in ONE_REG
All config and core registers of the KVM RISC-V ONE_REG interface are expected to be always available to the KVM user-space and the KVM get-reg-list selftest assumes these registers to be as base registers. Currently, the Zicbo[m|z|p] block size config registers are only available when corresponding ISA extension is present on the host which breaks the above expectation. In fact, KVM get-reg-list selftest fails when any of the Zicbo[m|z|p] ISA extension is not present on host. To address this issue, drop the ISA extension checks from kvm_riscv_vcpu_get/set_reg_config() and copy_config_reg_indices() functions. Fixes:031f9efafc("KVM: riscv: Add KVM_GET_REG_LIST API support") Fixes:a044ef7104("RISC-V: KVM: use ENOENT in *_one_reg() when extension is unavailable") Fixes:48e2febcda("RISC-V: KVM: Provide UAPI for Zicbop block size") Fixes:cf05b059d5("RISC-V: KVM: Introduce common kvm_riscv_isa_check_host()") Signed-off-by: Anup Patel <anup.patel@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260706181522.2003922-1-anup.patel@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
1cc935ec2d
commit
298276da73
1 changed files with 6 additions and 32 deletions
Loading…
Add table
Add a link
Reference in a new issue