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 C78E0C433F5 for ; Wed, 29 Sep 2021 15:56:22 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 373DA60FA0 for ; Wed, 29 Sep 2021 15:56:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 373DA60FA0 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id B73A24B135; Wed, 29 Sep 2021 11:56:21 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@google.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QybR9tu-uz-t; Wed, 29 Sep 2021 11:56:20 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id BAFE34B12C; Wed, 29 Sep 2021 11:56:20 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 94A854B0EC for ; Wed, 29 Sep 2021 11:56:19 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jZ7s8nythmh7 for ; Wed, 29 Sep 2021 11:56:18 -0400 (EDT) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id 636BF4B0DF for ; Wed, 29 Sep 2021 11:56:18 -0400 (EDT) Received: by mail-pl1-f175.google.com with SMTP id j4so364514plx.4 for ; Wed, 29 Sep 2021 08:56:18 -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=qSynkPJb2lGp0iLOpCna6R/Qzd+TmyqMPNCC6yJpDyLBuq/4ZUq5QFaAbie7ax1CqX TJNRbRNWO3HPXEphzKS2ya+bZYbaYZKm3OFBIRqeckvDUYUUqkSkHWLSH5sAGcTP+HXt VN+h8G5XD8/pgiVlf7cvPMklF3tf/K9TwxunYCZgf1j9uo/aAj7CGsWtPo88JSPVRnXg 4PG0GmzlyLiYoSxcmUjAgYIjHMckCDylrwqD+VteQ7TJ9axueEN47Gb+prus6TpUJVrW E8iL2YrVZG9sXPt4FWJypEFN0Jd1l1rZy6IwobjLJjDmouvGPN+S7Xq34Gq5qtJR6mmJ t+Ww== X-Gm-Message-State: AOAM530cAUQRykzLZPBvd+VAAi0Sy3TFYGaizGlVkHdQq1ZAMwZyEgaJ mfE+vebuVB6+99Ls3i8bFS9skw== 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 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> Cc: Catalin Marinas , linux-kernel@vger.kernel.org, Marc Zyngier , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu 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! _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm 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 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 ABBE0C433EF for ; Wed, 29 Sep 2021 15:56:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D1B5613A5 for ; Wed, 29 Sep 2021 15:56:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245687AbhI2P6D (ORCPT ); Wed, 29 Sep 2021 11:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244682AbhI2P56 (ORCPT ); Wed, 29 Sep 2021 11:57:58 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D465FC06161C for ; Wed, 29 Sep 2021 08:56:17 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id c4so1841820pls.6 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=tsP1bzaQrBDXArSjIhM7qvWdzdjAJIHYLqt21p7+8C72cCzLcmjr9YM7MzjlYCEZHh /5im/8seC8e2PKyw6dDee0B0Q5bm8GCY7htHMZBq8BruhgZ2+9797U65Tm5GBf83bNTL feW0veynu5rtfV5HXCkExyG8aY63+RCkmoU+O8oG41AVfZIAW+7tm7mXh8UXJwZPD1OF PQ46JIp+mx1NS+o29jUArNz14Mpq9nHipPIbrb+u6NdnGu3m7nzuugqSKmRttW9mByYY h33pdQH1pa7jKDzd7+4iyRvkoghXhYY3S10ic8dCvR1q3DKx3re5alosG8EvwThiWFbs P2dg== X-Gm-Message-State: AOAM530RhZvRl7tb++wKMm2ZFOeKo8yDaMX7dJOMujhQzAkkv+e6oy+e lHohR2Mie8/nRyzp//WLF31Fyw== 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210929155328.GD22029@willie-the-truck> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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!