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=-5.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 EAAF7C388F7 for ; Fri, 13 Nov 2020 14:51:32 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 9B92B2065E for ; Fri, 13 Nov 2020 14:51:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="qUrm5ipx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B92B2065E Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.26589.55061 (Exim 4.92) (envelope-from ) id 1kdaPy-0004Q0-0Q; Fri, 13 Nov 2020 14:51:14 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 26589.55061; Fri, 13 Nov 2020 14:51:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdaPx-0004Pt-TR; Fri, 13 Nov 2020 14:51:13 +0000 Received: by outflank-mailman (input) for mailman id 26589; Fri, 13 Nov 2020 14:51:13 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdaPx-0004PN-0B for xen-devel@lists.xenproject.org; Fri, 13 Nov 2020 14:51:13 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9dbc3d37-bdda-4882-9965-7dd599e94b12; Fri, 13 Nov 2020 14:51:12 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 94D84ABD9; Fri, 13 Nov 2020 14:51:10 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kdaPx-0004PN-0B for xen-devel@lists.xenproject.org; Fri, 13 Nov 2020 14:51:13 +0000 X-Inumbo-ID: 9dbc3d37-bdda-4882-9965-7dd599e94b12 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 9dbc3d37-bdda-4882-9965-7dd599e94b12; Fri, 13 Nov 2020 14:51:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1605279070; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HDb9in0YbXVzlZP+6Vozv8QOtD+q7q4rKAhEl1KpMRs=; b=qUrm5ipxjA/JOIdLZy5XRhcwAenPQs7IZUCuwm5kJY5AyONc557/3TcI7eHRw4zI/GNE4M Ouc41yC66ypha43AntP5qfHd57mtvffxtIJSw4BqZI3VGGa5ROQv8pHL6V+swSwK5H5dzB gShDOzd501YuoazVOH5UAppIVZCAfrg= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 94D84ABD9; Fri, 13 Nov 2020 14:51:10 +0000 (UTC) Subject: Re: [PATCH 06/10] vpci: Make every domain handle its own BARs To: Oleksandr Andrushchenko Cc: Oleksandr Andrushchenko , "Rahul.Singh@arm.com" , "Bertrand.Marquis@arm.com" , "julien.grall@arm.com" , "sstabellini@kernel.org" , "xen-devel@lists.xenproject.org" , "iwj@xenproject.org" , "wl@xen.org" , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= References: <20201109125031.26409-1-andr2000@gmail.com> <20201109125031.26409-7-andr2000@gmail.com> <20201112094002.bzk6gvp4iy4dgj4s@Air-de-Roger> <1b3f11c2-a5a2-da5c-25b3-851ef9465ab9@epam.com> <20201112144643.iyy5b34qyz5zi7mc@Air-de-Roger> <1fe15b9a-6f5d-1209-8ff5-af7c4fc0d637@epam.com> <3d6e5aab-ff89-7859-09c6-5ecb0c052511@epam.com> <1c88fef1-8558-fde1-02c7-8a68f6ecf312@suse.com> <67fd5df7-2ad2-08e5-294e-b769429164f0@epam.com> <03e23a66-619f-e846-cf61-a33ca5d9f0b4@suse.com> <8fc22774-7380-2de1-9c30-6649a79fdfe1@epam.com> <46c75ee1-758c-8a42-d8d3-8d42cce3240a@suse.com> <66cb04c5-5e98-6a4d-da88-230b2dbc3d98@epam.com> From: Jan Beulich Message-ID: <04059ce3-7009-9e1e-8ba2-398cc993d81b@suse.com> Date: Fri, 13 Nov 2020 15:51:09 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <66cb04c5-5e98-6a4d-da88-230b2dbc3d98@epam.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 13.11.2020 15:44, Oleksandr Andrushchenko wrote: > > On 11/13/20 4:38 PM, Jan Beulich wrote: >> On 13.11.2020 15:32, Oleksandr Andrushchenko wrote: >>> On 11/13/20 4:23 PM, Jan Beulich wrote: >>>> Earlier on I didn't say you should get this to work, only >>>> that I think the general logic around what you add shouldn't make >>>> things more arch specific than they really should be. That said, >>>> something similar to the above should still be doable on x86, >>>> utilizing struct pci_seg's bus2bridge[]. There ought to be >>>> DEV_TYPE_PCI_HOST_BRIDGE entries there, albeit a number of them >>>> (provided by the CPUs themselves rather than the chipset) aren't >>>> really host bridges for the purposes you're after. >>> You mean I can still use DEV_TYPE_PCI_HOST_BRIDGE as a marker >>> >>> while trying to detect what I need? >> I'm afraid I don't understand what marker you're thinking about >> here. > > I mean that when I go over bus2bridge entries, should I only work with > > those who have DEV_TYPE_PCI_HOST_BRIDGE? Well, if you're after host bridges - yes. Jan