Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7633323rdb; Thu, 4 Jan 2024 02:52:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1JFsZI4mgdF1SAhHREY1LEPOcqJfy2+hlXWKUENfCkxtnrxyN1EhJIfY7dgLPGBNUSLTZ X-Received: by 2002:ad4:5de4:0:b0:67f:4d05:bd5 with SMTP id jn4-20020ad45de4000000b0067f4d050bd5mr418672qvb.58.1704365542847; Thu, 04 Jan 2024 02:52:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704365542; cv=none; d=google.com; s=arc-20160816; b=aje7pYrzCXdY+rYc1ioiFc8wd5EJZwDXCve6X7HtakAzILSnzinpYPM0BdOfD88oej CvUfn5aD+Gcg6rNXPpgerswVBj3nrTeJhLZ46H32Kl7BsuBItqKei2vk2MKeWcZBjsZA Ou+UMcZ68ZJdCU/f4ReVNFm2QJGNgdYDJkfNWFBCPR9l5go8Ul7Hc/csS1xu9lq6mRAW RUpqEkPJGNO+Sawc6hnRTfYaJruZVBCs7V+xLJ3I3XIDzkIAlhhYuKRQ6Qwxc2H37hVO PhLjAxY4XFU76IqdUySg2oo4p7wEgQCiuKoW0Oy0FIUFeBJTgQVP0UFt+4MR+BmQu2Jl KjGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=I5fZa5BBUNgRC/MuXKPlVg1/H35HoZwMYqORDEqtrMo=; fh=j07KlRU7rohlJkbRpPfpLGhl9klCJLsCQtKrsZSFCI4=; b=Z/HTZDV5nirqkURmMxKuDWhx/+3wUU69v3/8c4QRskgtA2ZR6zQt0Q6zkC8fWCcyuF ZjQ9iIAaLV6xqQjRXrChCiMkwQRWeIqeSoOqNljIhuATf7/H+gPFoos/3gV21GRTEONM QjcMfUFmT0nr4VloJ9iT+sYYgHYHmYtKB5HeSud9tYJUB/dTK23zl6piM/OPfqh9/KcZ hIa6eDq+21+L/GUYJtPlIt6kryIBc/VBVxGZD91Z31eK3dDC7E7yD7lneN+syBJ6+BF2 9Ws1AVo2MafRcO5mWu0zzJDtYHbKFjDEQc43WBne8UFeoQ1QcWCjO+IXyCcOOH1VS4Ua qk9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=iYyjWaP6; spf=pass (google.com: domain of linux-kernel+bounces-16541-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16541-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h22-20020ae9ec16000000b0077f10ed7a98si28743092qkg.489.2024.01.04.02.52.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 02:52:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16541-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=iYyjWaP6; spf=pass (google.com: domain of linux-kernel+bounces-16541-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16541-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9A83A1C2099F for ; Thu, 4 Jan 2024 10:52:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4561D20DFE; Thu, 4 Jan 2024 10:52:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="iYyjWaP6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AB8E20DE8 for ; Thu, 4 Jan 2024 10:52:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a28ec136715so29148366b.1 for ; Thu, 04 Jan 2024 02:52:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1704365529; x=1704970329; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I5fZa5BBUNgRC/MuXKPlVg1/H35HoZwMYqORDEqtrMo=; b=iYyjWaP6ZDYkFjkx+R35sNVUvrUOrmoDd691I5eM20pFp7Mt2AGSYsQ/Kla8eFRpFt KqngfhQODGrOdnFvKcYg0Yhk5LLHcZJl0jFfu8IXJ244r003EWS+M8uWQp4YiGEwKM5D aLFT4ZFRek4CVbLaPucYgLn4IDu4ntHonff2apgUc1ITYIjARZxjY32c45WcJygy4VZL /ySOQw3OIcqnRWN4KQ4XXYinpuVq4DUxT7/IyQ/abEr0uY78/lrH/liK+28wsSkHu30F gMZa7+VV8XF8ByPUTO++82QzRSrZ8uDkqMz4dnoxIq0oIdOKSXJc5It9xjM2YeYyCkOk 4v2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704365529; x=1704970329; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I5fZa5BBUNgRC/MuXKPlVg1/H35HoZwMYqORDEqtrMo=; b=gFwyyP8sRzb0f3DUnu/JgP6N0SRAMftOQj++lEo+IvyebtyZjShZ7TYSts245c3Q9y 6G6PGM8gOB4dw48mvyyxc12VYfT3gIMowrattatbayKI0kJjagPQaTauhTDb4XeQez2H txxRjvf1xVzMTpRsOxJrgrT33/28QAKgQ2eZOJzgDnRjKqeLq2J7v00O9cQODrTXRvhT JKxyncM9PKigBUTuOqkbKC1fJt67myC3ob4AmibDXoNNQd0/jSmaOenUAEjRkQrarhYL f/DyYSB8yh6aEFCsXXOJrCwyQCowr0seUb/xZvp6teaPTpWtY8m347jAJIVu6b4HU/gG +3kA== X-Gm-Message-State: AOJu0Yz0MvDSE/+ZvankxkA0CePVBruNf3bBQJxveR5b+QN5KSCOysFV Z/qn6YZ6X4KpFLWf+dydjEvAYnKFVuGdOA== X-Received: by 2002:a17:906:d9c9:b0:a27:fdc1:593f with SMTP id qk9-20020a170906d9c900b00a27fdc1593fmr240521ejb.67.1704365529270; Thu, 04 Jan 2024 02:52:09 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id y2-20020a1709063da200b00a26e4986df8sm10496620ejh.58.2024.01.04.02.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 02:52:08 -0800 (PST) Date: Thu, 4 Jan 2024 11:52:07 +0100 From: Andrew Jones To: 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 Subject: Re: [PATCH] RISC-V: KVM: Require HAVE_KVM Message-ID: <20240104-d5ebb072b91a6f7abbb2ac76@orel> References: <20240104104307.16019-2-ajones@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240104104307.16019-2-ajones@ventanamicro.com> This applies to linux-next, but I forgot to append -next to the PATCH prefix. 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 >