Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1871523pxb; Wed, 2 Feb 2022 14:36:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/qdf9TjndHrB7KwbuzObwOZbgqGusYmNDhhfEhVQHwok4QXBt+bqkLP6SQleNOR+TYQnU X-Received: by 2002:a05:6a00:9a9:: with SMTP id u41mr31123335pfg.75.1643841398662; Wed, 02 Feb 2022 14:36:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643841398; cv=none; d=google.com; s=arc-20160816; b=KEshIbeblHSf7SeK4tya4mHRZt7aiz/c55fvkJZ0ybrjVk2LnseZyEG7PwPa6WqPPy ajN3jNbWtirC8+JZtVXq9vL7iK0ncLxG3D03nqoFb0EV5JzoUT8nDYoa8jvKu/v7wACn zqgugGRGXV/+RlzyMXy/wVljJLQXfNTUnGJ3iWzqChicp4SipxdYezwhneQlDACIUDAP NpHLNYgoEak/AAtixdiJn51MNB9NS4FLpdfRpRWHwEyEdTiO6V0I0mAnjM2vRSxYTr0L s/Lf9ainbCR+J1kIroygHoUNbllvmnqtsfrtEzfJSNBFapeaLSJY4SBU8pmgJhP5BUQe EgSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=caUn8YRAjUCY0MFXC+RuZfstPz8t4JjSkx6UxOLBvZ8=; b=AFwN/3bNAtYr0jNYIpww+jB0LYoQgHNiKgGFDd5d40Xaw6JR0lIZYNnEyj4dXgJuD7 e6rwDzGSHc9xX4zQ9V1YfFCeWdIuzy9qs0u/dUlWPpFCYMLzYvronCdFphZ4gawhXPnl lIx9fzjznMjR2YGD3ooXrVqaES50kULWaaN7YiQtxJLgE4SBhmQLhbfdr12cJ21pQIzo 8iaCYyG+fMagXJW1EWPDwHm0OjZSOgoyqd6XSX8wzNHRxcieV9PtL1T0YtYRiCbE6uLx zndln4id/18kUdKJC9eiSsYjd70v5+x2TKk4BvGIU5jsBcD7Spngz7g8Fnra3CgLPgvF NdiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eEuBg74C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 198si20645151pgc.799.2022.02.02.14.36.24; Wed, 02 Feb 2022 14:36:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eEuBg74C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240118AbiBAPIR (ORCPT + 99 others); Tue, 1 Feb 2022 10:08:17 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:60064 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240091AbiBAPIH (ORCPT ); Tue, 1 Feb 2022 10:08:07 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AC31DB82E40; Tue, 1 Feb 2022 15:08:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 624A5C340F3; Tue, 1 Feb 2022 15:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643728084; bh=Si9E3r6pYgLyZE78Wh6CEM9V0J4HBM/qUu4KIFvH+oc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eEuBg74CDZ3f6e40uvnJ5RT+SSwK1btZFI7S/uL/U8kEQKFmaRhBsDqnLCSARwUZ3 KNytW4sxdwomRz6uGtcIYBx5R1X/EtERVDp2SRYHEuDWMlN3gt5nt1U9B+R/mAagrj lBQAywSJoO832oF0w0SFIIsC3dtJb9ybRVuwkRAbau7d3Y+4ITMf+j3Y8lPLHnzFZQ g2XQSyewZOa2P5q0uosp1gznuC1qPs/vrzHrIjA5TrHE5af3auUXxeOjawqNSFn1jp gED0x9TRgUjeg9doS6jwQ+ATkoPG6AeEbYS6+hXrOxYNVImxP3ZQYMqu+qKHmQcDop k7rgXY9AMpikQ== From: guoren@kernel.org To: guoren@kernel.org, palmer@dabbelt.com, arnd@arndb.de, anup@brainfault.org, gregkh@linuxfoundation.org, liush@allwinnertech.com, wefu@redhat.com, drew@beagleboard.org, wangjunqiang@iscas.ac.cn, hch@lst.de Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-csky@vger.kernel.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V5 21/21] KVM: compat: riscv: Prevent KVM_COMPAT from being selected Date: Tue, 1 Feb 2022 23:05:45 +0800 Message-Id: <20220201150545.1512822-22-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220201150545.1512822-1-guoren@kernel.org> References: <20220201150545.1512822-1-guoren@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren Current riscv doesn't support the 32bit KVM API. Let's make it clear by not selecting KVM_COMPAT. Signed-off-by: Guo Ren Signed-off-by: Guo Ren Cc: Arnd Bergmann Cc: Anup Patel --- virt/kvm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/Kconfig b/virt/kvm/Kconfig index f4834c20e4a6..a8c5c9f06b3c 100644 --- a/virt/kvm/Kconfig +++ b/virt/kvm/Kconfig @@ -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 -- 2.25.1