KVM: compat: riscv: Prevent KVM_COMPAT from being selected
authorGuo Ren <guoren@linux.alibaba.com>
Tue, 1 Feb 2022 15:05:45 +0000 (23:05 +0800)
committerAnup Patel <anup@brainfault.org>
Fri, 11 Mar 2022 13:32:15 +0000 (19:02 +0530)
Current riscv doesn't support the 32bit KVM API. Let's make it
clear by not selecting KVM_COMPAT.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Anup Patel <anup@brainfault.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Anup Patel <anup@brainfault.org>
virt/kvm/Kconfig

index f4834c2..a8c5c9f 100644 (file)
@@ -53,7 +53,7 @@ config KVM_GENERIC_DIRTYLOG_READ_PROTECT
 
 config KVM_COMPAT
        def_bool y
-       depends on KVM && COMPAT && !(S390 || ARM64)
+       depends on KVM && COMPAT && !(S390 || ARM64 || RISCV)
 
 config HAVE_KVM_IRQ_BYPASS
        bool