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 B25BEC4332F for ; Wed, 29 Sep 2021 15:58:32 +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 5F9B7619F6 for ; Wed, 29 Sep 2021 15:58:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5F9B7619F6 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com 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=o3nb8OzYiJOCsdkKgQxSnxSXgtl8s9N8MtL9Rk2kHco=; b=gIozYBkO5gq7LC ENNGtkayo/UcrI0GkvWcMWcS8x+FKKVb3wS5Pe7cmUeXx6+t04o3boyYfyitKIYjmvFIz8dq3qPLp jA5dYZVMy2FcUb9V0xh4Zw9j1cyNJZjbfscsC0/RbqNzLgeYafN32/EIp+6018k8z79nlhAgRT3Gg xvcJ59IDc/7pP6oDz48Z/PyylQE+rfN/Bmz2XNNPtlyRRS8qDrX+2bg+IvLFJ948b6HfsFiQmU804 pt4G5xsXdVYy5Q820hZQ3VW2erB0nCHmpGVAaWtDjM5AJiNMtBfBySDNLCnwxfcgZnvDWETH3XRk/ eYAR5kLXvPQuU95aPaLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVbwU-00Bdxp-Ah; Wed, 29 Sep 2021 15:56:22 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVbwQ-00BdxA-3e for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 15:56:19 +0000 Received: by mail-pl1-x630.google.com with SMTP id b22so1852250pls.1 for ; Wed, 29 Sep 2021 08:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QXqhrOe99SMkwy7xOUQxSfO26TmAo7lLUFFlJf608N0=; b=Tv8zIpJ1xnCFM6xhqdlL4/vIvDrFT70hpY7YZvbNRnBVFOG4552p58wruczMQgdZKK eeSXc9vgKvRWFa2wZKncJtuoLccB/SQD0lZb373whHXgP0hN/syk+1YESmAJ6Ckzumcc NhvyhMJ3gxZLYVgkzClSHDzRrlf9ZGze6PJb4Rjp/jG+ril8oNOXTXLsWT1pRrkPtmqL 4PUV0yFNHSQKSen8HonJ/GYpFyC1hMu/UjTjUXDwstRpbzIuCAqm2crgOGwYwr7WvZkG XmVQ1BpAVbDup/q/pmVYh+eI2ZnBlN5C050/HolusT4O+D/tiDJeb9Jde5hqcWLG1a89 ivNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QXqhrOe99SMkwy7xOUQxSfO26TmAo7lLUFFlJf608N0=; b=UALKJPN1QYlfCp99rkPM15sPu/+MutvN1XVEqu26oWXSKLstrCw6+pu4+J5jsoJBJK c72+QERYr5WzGRIIcEsQq8m1A3TEUUFO4PE9xxPfonWKrMLXv3vxJKXsptV26EB4GYmw MEzHD7RGs+lo91ux267hOX8LppDWHV1orw/Kg6OAcKZquqew0P9hFoi8lj0GDrhmAaF9 /Mq7lVi8S8DwFFGGwSZNHxP/9to6r9wltiIRnU3BevuQhG0v/zAdumA/PcArjAVAfKf/ c+hfM6Yx6UiMGAAawTsoMW68jZ48DEVc7qrjd1954gVdM1JgtgS2q1z/cTTIt1E3aAMP ryOw== X-Gm-Message-State: AOAM532JBUSxFsbqKAGCRu1ATvBWc/1C81qNu7s+GiPHdzvTJNDdTC3F lHZnE51/W8O6N8smJkH1saVNyA== X-Google-Smtp-Source: ABdhPJyyJ63l3Jgn/wkbO4utLpV1s4Zsct68SOclwmSTKlsnuKe6K74rJe7GIbs8jNqvwhk7Zjw+fQ== X-Received: by 2002:a17:90a:8b82:: with SMTP id z2mr423618pjn.216.1632930977189; Wed, 29 Sep 2021 08:56:17 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id p16sm242556pfq.95.2021.09.29.08.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 08:56:16 -0700 (PDT) Date: Wed, 29 Sep 2021 15:56:12 +0000 From: Sean Christopherson To: Will Deacon 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: References: <20210921222231.518092-1-seanjc@google.com> <20210921222231.518092-3-seanjc@google.com> <20210929155328.GD22029@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210929155328.GD22029@willie-the-truck> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_085618_176324_22045FFE X-CRM114-Status: GOOD ( 20.23 ) 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 Wed, Sep 29, 2021, Will Deacon wrote: > 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. Work for me. I all but flipped a coin when deciding whether or not to keep the OF dependency. Thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel