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 1FB3CC433F5 for ; Tue, 2 Nov 2021 13:55:36 +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 CF80660EDF for ; Tue, 2 Nov 2021 13:55:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CF80660EDF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.220241.381418 (Exim 4.92) (envelope-from ) id 1mhuFc-0007BB-1I; Tue, 02 Nov 2021 13:54:56 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 220241.381418; Tue, 02 Nov 2021 13:54:56 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mhuFb-0007B4-Th; Tue, 02 Nov 2021 13:54:55 +0000 Received: by outflank-mailman (input) for mailman id 220241; Tue, 02 Nov 2021 13:54:54 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mhuFa-0007Ay-Fy for xen-devel@lists.xenproject.org; Tue, 02 Nov 2021 13:54:54 +0000 Received: from mx0a-001b2d01.pphosted.com (unknown [148.163.156.1]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 73744376-3be4-11ec-8557-12813bfff9fa; Tue, 02 Nov 2021 13:54:52 +0000 (UTC) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1A2C4gre019025; Tue, 2 Nov 2021 13:54:36 GMT Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3c2p6t45hu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Nov 2021 13:54:36 +0000 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1A2DhPHh004340; Tue, 2 Nov 2021 13:54:35 GMT Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com with ESMTP id 3c2p6t45hb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Nov 2021 13:54:35 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1A2DrChd016043; Tue, 2 Nov 2021 13:54:34 GMT Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by ppma05wdc.us.ibm.com with ESMTP id 3c0wpb3fk9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Nov 2021 13:54:34 +0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1A2DsXr141156886 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Nov 2021 13:54:33 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4BA61B206A; Tue, 2 Nov 2021 13:54:33 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C8AFDB2070; Tue, 2 Nov 2021 13:54:28 +0000 (GMT) Received: from [9.163.21.235] (unknown [9.163.21.235]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 2 Nov 2021 13:54:28 +0000 (GMT) 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" X-Inumbo-ID: 73744376-3be4-11ec-8557-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=Yw5dUWSQl31miEbMUQUr/Hp/nRioSP5MgMGrqdPz4jE=; b=D9xkk4T4Jd9bzmiOk7W9tH3x0Prd9k+LfuJ4ZNI4TjhLPrHY+y5yFiLNqlkYVZg9V6GN FgmxCwUhxmTaftb9t3SvoMjjFy7osrrG+nn1lhbEjPL5rRIRcNGwerN7UkrngALize7t cc9w5vubNiMgQIaecE6aYzFnJiCL1LY8V70Q8OGeRlh+BS6cxFn/tgZWsVSZ41y3fKt7 BmG5lBuqhc0GAm3IzbWYz1jBP9gL/qvXCKf8xKZ+kyVBpZM+i+sMHPYyFEp2kqFIfKxu m6XVHfB3cKaJirZoYxqOgYJTSkh1YSmrPugOOWykyVtrUkKWwZqljuwUV+11yYkBGvFp /g== Message-ID: <99e30a41-37e1-2229-d654-d2fb9b0b0a72@linux.ibm.com> Date: Tue, 2 Nov 2021 09:54:27 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PULL 8/9] pci: Export pci_for_each_device_under_bus*() Content-Language: en-US To: "Michael S. Tsirkin" , qemu-devel@nongnu.org Cc: Peter Maydell , Paul Durrant , Thomas Huth , Peter Xu , Ani Sinha , Stefano Stabellini , David Hildenbrand , Halil Pasic , Christian Borntraeger , Anthony Perard , xen-devel@lists.xenproject.org, Eric Farman , Eduardo Habkost , Richard Henderson , Greg Kurz , Eric Auger , qemu-s390x@nongnu.org, Igor Mammedov , David Gibson , Cornelia Huck , qemu-ppc@nongnu.org, Paolo Bonzini References: <20211101234358.582487-1-mst@redhat.com> <20211101234358.582487-9-mst@redhat.com> From: Matthew Rosato In-Reply-To: <20211101234358.582487-9-mst@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 9FzBbIhAdmazPO9km77fMbpBS7P5FRho X-Proofpoint-ORIG-GUID: _UWLZZhZObbZT9nvCl654-bwifCH103V X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-11-02_08,2021-11-02_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1011 malwarescore=0 priorityscore=1501 lowpriorityscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 impostorscore=0 phishscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111020080 On 11/1/21 7:44 PM, Michael S. Tsirkin wrote: > From: Peter Xu > > They're actually more commonly used than the helper without _under_bus, because > most callers do have the pci bus on hand. After exporting we can switch a lot > of the call sites to use these two helpers. > > Reviewed-by: David Hildenbrand > Reviewed-by: Eric Auger > Signed-off-by: Peter Xu > Message-Id: <20211028043129.38871-3-peterx@redhat.com> > Reviewed-by: Michael S. Tsirkin > Signed-off-by: Michael S. Tsirkin > Acked-by: David Gibson > --- > include/hw/pci/pci.h | 5 +++++ > hw/i386/acpi-build.c | 5 ++--- > hw/pci/pci.c | 10 +++++----- > hw/pci/pcie.c | 4 +--- > hw/ppc/spapr_pci.c | 12 +++++------- > hw/ppc/spapr_pci_nvlink2.c | 7 +++---- > hw/ppc/spapr_pci_vfio.c | 4 ++-- > hw/s390x/s390-pci-bus.c | 5 ++--- Looks like I wasn't on CC for the initial patches so I missed it (oops) but I did just verify the s390x changes now, LGTM. Thanks! If needed, for s390 changes: Acked-by: Matthew Rosato