linux-stable/arch/riscv/kvm
Atish Patra 3d34be2a70 RISC-V: KVM: Restrict the extensions that can be disabled
[ Upstream commit 38d9a4ac65 ]

Currently, the config isa register allows us to disable all allowed
single letter ISA extensions. It shouldn't be the case as vmm shouldn't
be able to disable base extensions (imac).

These extensions should always be enabled as long as they are enabled
in the host ISA.

Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Fixes: 92ad82002c ("RISC-V: KVM: Implement
KVM_GET_ONE_REG/KVM_SET_ONE_REG ioctls")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-27 14:41:03 +02:00
..
Kconfig riscv: do not select non-existing config ANON_INODES 2021-10-22 05:53:37 -04:00
main.c KVM: RISC-V: Avoid spurious virtual interrupts after clearing hideleg CSR 2022-01-06 15:18:18 +05:30
Makefile RISC-V: KVM: Add SBI HSM extension in KVM 2022-01-06 15:12:47 +05:30
mmu.c RISC-V: Do not use cpumask data structure for hartid bitmap 2022-01-20 09:27:22 -08:00
tlb.S RISC-V: KVM: Fix GPA passed to __kvm_riscv_hfence_gvma_xyz() functions 2021-10-31 02:45:43 -04:00
vcpu.c RISC-V: KVM: Restrict the extensions that can be disabled 2022-04-27 14:41:03 +02:00
vcpu_exit.c KVM: Rename kvm_vcpu_block() => kvm_vcpu_halt() 2021-12-08 04:24:51 -05:00
vcpu_fp.c RISC-V: KVM: include missing hwcap.h into vcpu_fp 2022-04-20 09:36:14 +02:00
vcpu_sbi.c RISC-V: KVM: Forward SBI experimental and vendor extensions 2022-01-06 15:14:33 +05:30
vcpu_sbi_base.c RISC-V: KVM: Fix SBI implementation version 2022-02-02 18:58:06 +05:30
vcpu_sbi_hsm.c RISC-V: KVM: Add SBI HSM extension in KVM 2022-01-06 15:12:47 +05:30
vcpu_sbi_replace.c RISC-V: Do not use cpumask data structure for hartid bitmap 2022-01-20 09:27:22 -08:00
vcpu_sbi_v01.c RISC-V: Do not use cpumask data structure for hartid bitmap 2022-01-20 09:27:22 -08:00
vcpu_switch.S RISC-V: KVM: FP lazy save/restore 2021-10-04 16:08:23 +05:30
vcpu_timer.c RISC-V: KVM: remove unneeded semicolon 2021-11-01 17:35:13 +05:30
vm.c RISC-V: KVM: Add VM capability to allow userspace get GPA bits 2022-01-06 15:16:58 +05:30
vmid.c RISC-V: Do not use cpumask data structure for hartid bitmap 2022-01-20 09:27:22 -08:00