Skip to content

Commit 3ab75a7

Browse files
atishp04avpatel
authored andcommitted
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: a33c72f ("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>
1 parent b2d229d commit 3ab75a7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

arch/riscv/kvm/vcpu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ const struct kvm_stats_header kvm_vcpu_stats_header = {
4343
riscv_isa_extension_mask(d) | \
4444
riscv_isa_extension_mask(f) | \
4545
riscv_isa_extension_mask(i) | \
46-
riscv_isa_extension_mask(m) | \
47-
riscv_isa_extension_mask(s) | \
48-
riscv_isa_extension_mask(u))
46+
riscv_isa_extension_mask(m))
4947

5048
static void kvm_riscv_reset_vcpu(struct kvm_vcpu *vcpu)
5149
{

0 commit comments

Comments
 (0)