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 X-Spam-Level: X-Spam-Status: No, score=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D079C433EF for ; Tue, 7 Sep 2021 15:30:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D55961107 for ; Tue, 7 Sep 2021 15:30:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233172AbhIGPbZ (ORCPT ); Tue, 7 Sep 2021 11:31:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:50748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345158AbhIGPbZ (ORCPT ); Tue, 7 Sep 2021 11:31:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A9E9B610D0; Tue, 7 Sep 2021 15:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631028619; bh=kp8Q8kJRz0WoYnZlxjaDlmj4GyxqVupLYpX0r3kh5eI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=FE6OgWm/fxpyj4FLQwu9LoQuMjKnA94XCfxVDByukq4rictBgJBARDgnsuKZZf51p WXTFndXhgPK25xj8rW4dWKHHBd93KkRJMISbXYQeHJ0AMHoyWkddZYiARPkgRcGwBJ AT6niJGOnCXNPNvY3lbnqpZz36S29V/LYwGZE4/xaCHHf6512nYdVpZOaJSLMuZUoR sM+3SiKS+cOzVNn/u7KymTC8iwDRxTh24dDklEeX8z7qtgA+ZJj3kLfOVv0bv4A6b7 7vbe+oIWcT0eDqgNzqf+WJuR4rDw+5kM7nUIpdutwsL0sFBHvcbEN7fiD4Vb+EWH86 LY7D7/lwqLanA== Date: Tue, 7 Sep 2021 10:30:17 -0500 From: Bjorn Helgaas To: Jan Beulich Cc: Bjorn Helgaas , Stefano Stabellini , "xen-devel@lists.xenproject.org" , Juergen Gross , Boris Ostrovsky , "linux-pci@vger.kernel.org" Subject: Re: [PATCH 10/12] xen-pcifront: this module is PV-only Message-ID: <20210907153017.GA741607@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Update subject to follow conventions (use "git log --oneline drivers/pci/Kconfig"). Should say what this patch does. Commit log below should also say what this patch does. Currently it's part of the rationale for the change, but doesn't say what the patch does. On Tue, Sep 07, 2021 at 02:10:41PM +0200, Jan Beulich wrote: > It's module init function does a xen_pv_domain() check first thing. > Hence there's no point building it in non-PV configurations. s/It's// # xen-pcifront.o? I see that CONFIG_XEN_PV is only mentioned in arch/x86, so CONFIG_XEN_PV=y cannot be set on other arches. Is the current "depends on X86" just a reflection of that, or is it because of some other x86 dependency in the code? The connection between xen_pv_domain() and CONFIG_XEN_PV is not completely obvious. If you only build xen-pcifront.o when CONFIG_XEN_PV=y, and xen_pv_domain() is true if and only if CONFIG_XEN_PV=y, why bother calling xen_pv_domain() at all? > Signed-off-by: Jan Beulich > > --- a/drivers/pci/Kconfig > +++ b/drivers/pci/Kconfig > @@ -110,7 +110,7 @@ config PCI_PF_STUB > > config XEN_PCIDEV_FRONTEND > tristate "Xen PCI Frontend" > - depends on X86 && XEN > + depends on XEN_PV > select PCI_XEN > select XEN_XENBUS_FRONTEND > default y >