From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E34FC433F5 for ; Wed, 29 Sep 2021 15:56:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 15820613A5 for ; Wed, 29 Sep 2021 15:56:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 15820613A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RqScV7NCMmbnRGkIxWJEqlyLom7/NpASWlNx4ITYvmk=; b=zn++6cIhmHWxNz jUnlU2Vl23WVJ+pt9r6GxLPYEs92hQccVW3O1SbOcHeGYaI/ebRqZV6thoNLtjO2Jm5bg65LimpM3 4NBZ64duGhKCi0+PTsNY/dT9LqUf9UOY9CWvpj5TFLlAVTbfX9k+v2zreLnvoXWuKK0zQfpSmQf7P ooXqQ4YMxbA9luywcSmXdm+vy5nxHSD8CP1+eNKcYGVeSzxidDOCKfGY/ceIhb6KdKHOx88q8/EWP DscVNb8LkYxmPSqhzAvvSCPkJdXk5XFwioA2yQ1O3UhUkkiGsFHbw866bebnOWc7nQZDrCMj4L/8J 2icBRkB77h2i8eq3rHDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVbts-00BdS8-7R; Wed, 29 Sep 2021 15:53:40 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVbto-00BdRQ-EJ for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 15:53:37 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F63160FA0; Wed, 29 Sep 2021 15:53:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632930814; bh=uEB7waoBI1fsFWcFkbUd52mOvV43dk+iz1OQQ6eGAs4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FhfK1xg/+azJIJECGx2MEBGxaCxIQlJVIfzX6+ALentONlFVSuD/mDBT3jQCRjPzM zXAazTZ+QTASPy3yqTnF8Ign8olbao4VgwsShjtc3VxzZV78KkFUru8tSgGhThuZ7H p2NNnjDuXhE+ElpLLdZNsY/FT9Wn1UcUt+Zig9M1ltgzRuvK+SBC8mVyU0F5RwLmRW inV8EdFSu1fXT12TRtLow8BRMQRw9NilDRDlWuNlVhKp5puuyWDfJ9JmZd4tcMphEZ hKKkiB6Lw6maRopT+mcDqx0YUsEZ9kxnWM1jfrDPzk64UNNwN8Twcgaxd8IOZVAd4Q YWHgJmaTEh2bg== Date: Wed, 29 Sep 2021 16:53:29 +0100 From: Will Deacon To: Sean Christopherson Cc: Catalin Marinas , Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] KVM: arm64: Depend on HAVE_KVM => OF instead of directly on OF Message-ID: <20210929155328.GD22029@willie-the-truck> References: <20210921222231.518092-1-seanjc@google.com> <20210921222231.518092-3-seanjc@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210921222231.518092-3-seanjc@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_085336_525548_B4519D9A X-CRM114-Status: GOOD ( 16.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 21, 2021 at 03:22:31PM -0700, Sean Christopherson wrote: > Select HAVE_KVM if the KVM dependency is met (OF / Open Firmware), and > make KVM depend on HAVE_KVM instead of directly on OF. This fixes the > oddity where arm64 configs can end up with KVM=y and HAVE_KVM=n, and will > hopefully prevent breakage if there are future users of HAVE_KVM. > > Note, arm64 unconditionally selects OF, and has always done so (see > commit 8c2c3df31e3b ("arm64: Build infrastructure"). Keep the somewhat > pointless HAVE_KVM dependency on OF to document that KVM requires Open > Firmware support. > > No functional change intended. > > Signed-off-by: Sean Christopherson > --- > arch/arm64/Kconfig | 1 + > arch/arm64/kvm/Kconfig | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index b5b13a932561..38c0f36a5ed4 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -187,6 +187,7 @@ config ARM64 > select HAVE_GCC_PLUGINS > select HAVE_HW_BREAKPOINT if PERF_EVENTS > select HAVE_IRQ_TIME_ACCOUNTING > + select HAVE_KVM if OF Honestly, I'd just drop the 'if OF' here. We select it unconditionally a few lines below and so I think it's more confusing to have the check. With that: Acked-by: Will Deacon Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel