Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp35222pxb; Fri, 17 Sep 2021 17:58:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnRxCh2moVQy7cEQj97wLdwSCpIKM0pGsCGO5KTxvpthkn08MiZOZSrvW5m09nD6wm/138 X-Received: by 2002:a17:906:2bc3:: with SMTP id n3mr15033496ejg.548.1631926737536; Fri, 17 Sep 2021 17:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631926737; cv=none; d=google.com; s=arc-20160816; b=TRxWGsWJaoUs/pFw5+oj0NoWBS2MJv2YuCzWJ1vnaDdW/uYPpJ/nh1SqlsnwiJeBfv kOq3Ul/wTEUHflLvYBgAQS5jAcTt5HxqYNitwyPi4PUKPLZBRGDbIswkSNXjgZ8LqgWn 7877zxtkm1QHknHvmB4YQhOrFXepjnH9BOUlovd6XJh0StdE4rH8spxWgj2VAKpItD1H tpJiNDMr9rv2xZThjVreCyydUMwhWIWITyWHOhU/+nnDSHOLGMn7wEe8Tj6MHhzxHk4a YSCOq9fs/FXYx1A8q0uhuoYyvlG6TA5rwXjovxBFD4cz83bFMlyBJ4dbFH+2mHshr42M /Kkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=J71dj9feZeRksf5u/XCT0Uv7kIbBp3dQkDmhEba79o4=; b=zUdfumsdrw4ChyURDFG5w83HP6Se10pX771xbIx2OEm2tEw68sZVE9G3FZsAxE2KZq NCRFe0CaSEGoHCLi5PwSOg5Lb42lDOSjslGfJCNq4VRobEfNHMQymgwq5zfR/5RJqDRl G3l2oIpP5IR5+YLQovgyMEb+trSUYL8BZVv20QsjJUwPgjxEG4EVG/59sQ/8tMs2uZmt +PE76cIZW/OE8K9tNI2Bxht5nyfqQ089RTaTFCPj7XJy73HESCnC8NH3X2+wCNvksDBq mt/dw8yGFOFb2KnNwWDFuhljbWuHOS2ttWwfR2lSUc45PVdasg8xTdYy75P50GGVU0O4 i2Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IBbNMhqu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si10583374edf.375.2021.09.17.17.58.34; Fri, 17 Sep 2021 17:58:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IBbNMhqu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243678AbhIQQaK (ORCPT + 99 others); Fri, 17 Sep 2021 12:30:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:56652 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbhIQQaI (ORCPT ); Fri, 17 Sep 2021 12:30:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D155160555; Fri, 17 Sep 2021 16:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631896126; bh=RRE6NMda31/dIqqeP4g2Zg1MqUaKnLsM3Ro/I9LVt3w=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=IBbNMhquNK9liwy6lIWmdPIXzOZVsmIh3XmUdeu0OCTs9jMQRFZj4wNKUIerdiVKo mBMDO993ITGHINd9RLo1DY66iD3VOGkNh0ua2l7uUucIPa9VgX2bJ3+P0Wr0K7/+HG og0S6Mz5MOJn7XReD5EeUMdc7TA2gihk25XztwGh86GImWJqlCB0TDSX67KV04NaMv p0osTnLc/lTsOfpedLQ+EjMmJ/gAqIX/e1CLxFaP52jp3kxgAwF0cddgUxqB22Gld3 JCAGcSeUs7Bd1NpgzoHU2PijOf49moRGDvKEylzevEZ2zsFtcDoaQ8cwiS5GKTUyN4 Jjblai00CbORg== Date: Fri, 17 Sep 2021 11:28:44 -0500 From: Bjorn Helgaas To: Jan Beulich Cc: "bhelgaas@google.com" , Stefano Stabellini , lkml , "xen-devel@lists.xenproject.org" , "hch@lst.de" , Konrad Wilk , "iommu@lists.linux-foundation.org" , Boris Ostrovsky , Juergen Gross , "linux-pci@vger.kernel.org" Subject: Re: [PATCH v2 2/4] PCI: only build xen-pcifront in PV-enabled environments Message-ID: <20210917162844.GA1722208@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a7f6c9b-215d-b593-8056-b5fe605dafd7@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org s/only/Only/ in subject On Fri, Sep 17, 2021 at 12:48:03PM +0200, Jan Beulich wrote: > The driver's module init function, pcifront_init(), invokes > xen_pv_domain() first thing. That construct produces constant "false" > when !CONFIG_XEN_PV. Hence there's no point building the driver in > non-PV configurations. Thanks for these bread crumbs. xen_domain_type is set to XEN_PV_DOMAIN only by xen_start_kernel() in enlighten_pv.c, which is only built when CONFIG_XEN_PV=y, so even I can verify this :) > Drop the (now implicit and generally wrong) X86 dependency: At present, > XEN_PV con only be set when X86 is also enabled. In general an > architecture supporting Xen PV (and PCI) would want to have this driver > built. s/con only/can only/ > Signed-off-by: Jan Beulich > Reviewed-by: Stefano Stabellini Acked-by: Bjorn Helgaas > --- > v2: Title and description redone. > > --- 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 >