Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7640860rdb; Thu, 4 Jan 2024 03:08:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFayKyvySNNQ1v+lYVru8REWDu02Z4OkmUI1EEERotDKlpkkHTKHnTKLpfUYgwiCw44F0ee X-Received: by 2002:a17:906:74cd:b0:a23:6dfa:f7ae with SMTP id z13-20020a17090674cd00b00a236dfaf7aemr200303ejl.104.1704366506726; Thu, 04 Jan 2024 03:08:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704366506; cv=none; d=google.com; s=arc-20160816; b=dcbdevEzy6s6zpL9Uq3zx8ebq+Iy+qvEj/yL88rMaimEM5HxNVfh5Xj2m2hWj5XC2h mINfOIExNdB38yKuFkb3JWzCx/WJNIDu59yG9j7KEBuub49TC8dGgr0H1n2aG8M4SM9z nfXJgdLgTa6Rs4STrmcVkeojpYZgdVTStpc7r6BN1uzlBauoRmp9pQ+cP16ytVmKp7ao Ae/eMVt1eJr9aN3Z18QbRbuZ9Wwhaf5ACMcP3Ad7fMqx62+xXLLc52ybooxlt7gKpHng 1ZiIIy9sYkTuAEmnukm3Me5ccs++ZBsB8q9fh2d823O8LN/LL24d8UCLX7MIe31ReyCf oORg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=mf73ALvXSF0lYx8O0LF6At/XYpgJAOFPDYJwuJTLX+4=; fh=M3jEtfHWhX8wotOBx71b/HhHMmSP5ouGgB0PHveB9EA=; b=Xk0NmknDNvju/Mj+GbwRfnxINVrTXU/1yjRGe5umL4nHMTE/4rsvRCebG84P9c0SHD ZGp8hYwG9ctDlkAe4Nb9VND5LYb3729HXJ4/b8+KbuW/9ewBfPKScnxMojGSt/ekopco rd8K9EzCvlx4DonFYavXkVpuQbsfi7O1+/OWe5MTKiPCyXJDC4zHrPNmRPHb/YQQ6JmG 2422/NcBjhAirTXkckyrgPVxDDZRCrbYsvzlzjWH3j2uVRUFgkLXPt6HMgJlV4Dz15g1 SJQqrsHDI0dSruCp7Ug68x8e4FH+4l3fSKyiW8WIUmWWLzk+RK+5/m5f9mh4epEnAbxQ kHmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16564-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ex1-20020a170907954100b00a26eea528f6si8590440ejc.324.2024.01.04.03.08.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 03:08:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-16564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16564-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 762A31F21A3D for ; Thu, 4 Jan 2024 11:08:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07BF0210F5; Thu, 4 Jan 2024 11:08:14 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B629720DDF; Thu, 4 Jan 2024 11:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ghiti.fr Received: from relay2-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::222]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 29B06C3F28; Thu, 4 Jan 2024 11:08:03 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id A524C40009; Thu, 4 Jan 2024 11:07:51 +0000 (UTC) Message-ID: <752c11ea-7172-40ff-a821-c78aeb6c5518@ghiti.fr> Date: Thu, 4 Jan 2024 12:07:51 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] RISC-V: KVM: Require HAVE_KVM Content-Language: en-US To: Andrew Jones , linux-riscv@lists.infradead.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org Cc: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, anup@brainfault.org, atishp@atishpatra.org, rdunlap@infradead.org, sfr@canb.auug.org.au, mpe@ellerman.id.au, npiggin@gmail.com, linuxppc-dev@lists.ozlabs.org References: <20240104104307.16019-2-ajones@ventanamicro.com> <20240104-d5ebb072b91a6f7abbb2ac76@orel> From: Alexandre Ghiti In-Reply-To: <20240104-d5ebb072b91a6f7abbb2ac76@orel> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: alex@ghiti.fr On 04/01/2024 11:52, Andrew Jones wrote: > This applies to linux-next, but I forgot to append -next to the PATCH > prefix. Shoudn't this go to -fixes instead? With a Fixes tag? > > On Thu, Jan 04, 2024 at 11:43:08AM +0100, Andrew Jones wrote: >> KVM requires EVENTFD, which is selected by HAVE_KVM. Other KVM >> supporting architectures select HAVE_KVM and then their KVM >> Kconfigs ensure its there with a depends on HAVE_KVM. Make RISCV >> consistent with that approach which fixes configs which have KVM >> but not EVENTFD, as was discovered with a randconfig test. >> >> Reported-by: Randy Dunlap >> Closes: https://lore.kernel.org/all/44907c6b-c5bd-4e4a-a921-e4d3825539d8@infradead.org/ > I think powerpc may need a patch like this as well, since I don't see > anything ensuring EVENTFD is selected for it anymore either. > > Thanks, > drew > >> Signed-off-by: Andrew Jones >> --- >> arch/riscv/Kconfig | 1 + >> arch/riscv/kvm/Kconfig | 2 +- >> 2 files changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig >> index a935a5f736b9..daba06a3b76f 100644 >> --- a/arch/riscv/Kconfig >> +++ b/arch/riscv/Kconfig >> @@ -128,6 +128,7 @@ config RISCV >> select HAVE_KPROBES if !XIP_KERNEL >> select HAVE_KPROBES_ON_FTRACE if !XIP_KERNEL >> select HAVE_KRETPROBES if !XIP_KERNEL >> + select HAVE_KVM >> # https://github.com/ClangBuiltLinux/linux/issues/1881 >> select HAVE_LD_DEAD_CODE_DATA_ELIMINATION if !LD_IS_LLD >> select HAVE_MOVE_PMD >> diff --git a/arch/riscv/kvm/Kconfig b/arch/riscv/kvm/Kconfig >> index 1fd76aee3b71..36fa8ec9e5ba 100644 >> --- a/arch/riscv/kvm/Kconfig >> +++ b/arch/riscv/kvm/Kconfig >> @@ -19,7 +19,7 @@ if VIRTUALIZATION >> >> config KVM >> tristate "Kernel-based Virtual Machine (KVM) support (EXPERIMENTAL)" >> - depends on RISCV_SBI && MMU >> + depends on HAVE_KVM && RISCV_SBI && MMU >> select HAVE_KVM_IRQCHIP >> select HAVE_KVM_IRQ_ROUTING >> select HAVE_KVM_MSI >> -- >> 2.43.0 >> > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv