]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Remove 's' & 'u' as valid ISA extension
authorAtish Patra <atishp@rivosinc.com>
Wed, 20 Apr 2022 01:32:57 +0000 (18:32 -0700)
committerAnup Patel <anup@brainfault.org>
Wed, 20 Apr 2022 08:12:49 +0000 (13:42 +0530)
commit788018c71ed935b206ee13778f936feef777ff94
tree3b9503f34d8dfd2a2ac3850d66e56469082103e0
parent0e63df2d0d54b39e7363398ea63d214be3dfe228
RISC-V: KVM: Remove 's' & 'u' as valid ISA extension

There are no ISA extension defined as 's' & 'u' in RISC-V specifications.
The misa register defines 's' & 'u' bit as Supervisor/User privilege mode
enabled. But it should not appear in the ISA extension in the device tree.

Remove those from the allowed ISA extension for kvm.

Fixes: ab2bb440d3a2 ("RISC-V: KVM: Implement VCPU create, init and
destroy functions")
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu.c