From nobody Mon Feb 9 09:34:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+75700+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+75700+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1622061931; cv=none; d=zohomail.com; s=zohoarc; b=VgJarAYkPhYrW16sJ0Wf8yiITwNynWwTWlH6T/zcL2GatQHcRmecXHjwNixD4KiFg4MhOpQx0047GgPTrWMym1EKLO9SWIAEJo0iO16SMllQ6IEiIE3/v9D9qLQO9XPp7x+FsJQzwPvEFfOARsKey5JliYgb7qFKQkdwZ+mhBDY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622061931; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=6a5JEKJUp6f1HaSbHfZatEGNb0h7yDFchrhnHrUUBC4=; b=CEf0HuIB7AUgAqnkyMSnbP+f4cGMfapdYzAebZNZ2umxkvByIg6aJVhFrGUVlkQRjtabP5FfK5Ne4Z6M8F87dttOqKSQ8xpv6srGozLB4qdL7y0U6w/Dn+hhjjUfUE4PN7lWeVgkwbB5qUnwG1N6AixS5v+ayt5xGYQOQoUoC40= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+75700+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1622061931046313.2727940813321; Wed, 26 May 2021 13:45:31 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id UZfkYY1788612xirnImVgpQc; Wed, 26 May 2021 13:45:30 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web10.3168.1622061924861990098 for ; Wed, 26 May 2021 13:45:25 -0700 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-539-7WnQKGe7O3iYMn6T37RM9g-1; Wed, 26 May 2021 16:45:20 -0400 X-MC-Unique: 7WnQKGe7O3iYMn6T37RM9g-1 X-Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D30DE188E3CA; Wed, 26 May 2021 20:45:18 +0000 (UTC) X-Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-61.ams2.redhat.com [10.36.114.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0EAEF59466; Wed, 26 May 2021 20:45:16 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Anthony Perard , Ard Biesheuvel , Jordan Justen , Julien Grall , Peter Grehan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Rebecca Cran Subject: [edk2-devel] [PATCH 29/43] OvmfPkg/PciHostBridgeLibScan: create from PciHostBridgeLib Date: Wed, 26 May 2021 22:14:32 +0200 Message-Id: <20210526201446.12554-30-lersek@redhat.com> In-Reply-To: <20210526201446.12554-1-lersek@redhat.com> References: <20210526201446.12554-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com X-Gm-Message-State: lgASrhfnh32cTTTxA5nxhMdTx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1622061930; bh=6a5JEKJUp6f1HaSbHfZatEGNb0h7yDFchrhnHrUUBC4=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=XNXJMvb5YL5Px2NYDYfYJHWT5PCldmZnUCihIaNif+9TVs34XNgJiiu3APP+swqhmCM Evjvz+ERTlYUT9uSuYFgGTVlcsX+oeitK87UyQ7iRa/m9Q9ajNgv/t4IOfXUpvPFEBN35 wFFTrX5OTVwlVtdtZIAl7UeZhhaVmOFIEQI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Create an almost verbatim copy of the "OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf" library instance. The new PciHostBridgeLibScan instance will ultimately duplicate a negligible amount of code from the original, and will be used by the Bhyve and OvmfXen platforms. List the new driver in "Maintainers.txt", in the "OvmfPkg: bhyve-related modules" and "OvmfPkg: Xen-related modules" sections. This patch should be reviewed with "git show --find-copies-harder". Cc: Anthony Perard Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Julien Grall Cc: Peter Grehan Cc: Philippe Mathieu-Daud=C3=A9 Cc: Rebecca Cran Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2122 Signed-off-by: Laszlo Ersek Reviewed-by: Philippe Mathieu-Daude --- OvmfPkg/Library/{PciHostBridgeLib/PciHostBridgeLib.inf =3D> PciHostBridgeL= ibScan/PciHostBridgeLibScan.inf} | 6 +++--- Maintainers.txt = | 2 ++ OvmfPkg/Library/{PciHostBridgeLib =3D> PciHostBridgeLibScan}/PciHostBridge= .h | 1 + OvmfPkg/Library/{PciHostBridgeLib =3D> PciHostBridgeLibScan}/PciHostBridge= Lib.c | 2 +- OvmfPkg/Library/{PciHostBridgeLib =3D> PciHostBridgeLibScan}/XenSupport.c = | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf b/OvmfPk= g/Library/PciHostBridgeLibScan/PciHostBridgeLibScan.inf similarity index 84% copy from OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf copy to OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLibScan.inf index 622780888472..46859388870f 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf +++ b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLibScan.inf @@ -1,21 +1,21 @@ ## @file # OVMF's instance of the PCI Host Bridge Library. # -# Copyright (C) 2016, Red Hat, Inc. +# Copyright (C) 2016-2021, Red Hat, Inc. # Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # # ## =20 [Defines] INF_VERSION =3D 0x00010005 - BASE_NAME =3D PciHostBridgeLib - FILE_GUID =3D 9F2BC05E-51EA-4AED-9A3E-7699641734E8 + BASE_NAME =3D PciHostBridgeLibScan + FILE_GUID =3D c93f2411-9bf5-4894-b552-67fae0c3d291 MODULE_TYPE =3D DXE_DRIVER VERSION_STRING =3D 1.0 LIBRARY_CLASS =3D PciHostBridgeLib =20 # # The following information is for reference only and not required by the = build diff --git a/Maintainers.txt b/Maintainers.txt index be40a1d6f2b6..a273409a923f 100644 --- a/Maintainers.txt +++ b/Maintainers.txt @@ -432,12 +432,13 @@ OvmfPkg: bhyve-related modules F: OvmfPkg/Bhyve/ F: OvmfPkg/Include/IndustryStandard/Bhyve.h F: OvmfPkg/Include/Library/BhyveFwCtlLib.h F: OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLibBhyve.c F: OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLibBhyve.inf F: OvmfPkg/Library/BhyveFwCtlLib/ +F: OvmfPkg/Library/PciHostBridgeLibScan/ F: OvmfPkg/Library/PlatformBootManagerLibBhyve/ F: OvmfPkg/Library/ResetSystemLib/BaseResetShutdownBhyve.c F: OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibBhyve.inf R: Rebecca Cran R: Peter Grehan =20 @@ -490,12 +491,13 @@ F: OvmfPkg/Include/IndustryStandard/Xen/ F: OvmfPkg/Include/Library/XenHypercallLib.h F: OvmfPkg/Include/Library/XenIoMmioLib.h F: OvmfPkg/Include/Library/XenPlatformLib.h F: OvmfPkg/Include/Protocol/XenBus.h F: OvmfPkg/Include/Protocol/XenIo.h F: OvmfPkg/Library/PciHostBridgeLib/XenSupport.c +F: OvmfPkg/Library/PciHostBridgeLibScan/ F: OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c F: OvmfPkg/Library/XenConsoleSerialPortLib/ F: OvmfPkg/Library/XenHypercallLib/ F: OvmfPkg/Library/XenIoMmioLib/ F: OvmfPkg/Library/XenPlatformLib/ F: OvmfPkg/Library/XenRealTimeClockLib/ diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridge.h b/OvmfPkg/Lib= rary/PciHostBridgeLibScan/PciHostBridge.h similarity index 83% copy from OvmfPkg/Library/PciHostBridgeLib/PciHostBridge.h copy to OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridge.h index a2e4d8696281..582b7929aff2 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridge.h +++ b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridge.h @@ -1,9 +1,10 @@ /** @file Header file of OVMF instance of PciHostBridgeLib. =20 + Copyright (C) 2021, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ =20 diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c b/OvmfPkg/= Library/PciHostBridgeLibScan/PciHostBridgeLib.c similarity index 95% copy from OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c copy to OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c index 6db91fb7e20c..6c2acc9f99bc 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c +++ b/OvmfPkg/Library/PciHostBridgeLibScan/PciHostBridgeLib.c @@ -1,10 +1,10 @@ /** @file OVMF's instance of the PCI Host Bridge Library. =20 - Copyright (C) 2016, Red Hat, Inc. + Copyright (C) 2016-2021, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ #include // PCI_MAX_BUS diff --git a/OvmfPkg/Library/PciHostBridgeLib/XenSupport.c b/OvmfPkg/Librar= y/PciHostBridgeLibScan/XenSupport.c similarity index 96% copy from OvmfPkg/Library/PciHostBridgeLib/XenSupport.c copy to OvmfPkg/Library/PciHostBridgeLibScan/XenSupport.c index 07c498dd0ea2..a4a61e5836e0 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/XenSupport.c +++ b/OvmfPkg/Library/PciHostBridgeLibScan/XenSupport.c @@ -1,9 +1,10 @@ /** @file Scan the entire PCI bus for root bridges to support OVMF above Xen. =20 + Copyright (C) 2021, Red Hat, Inc. Copyright (c) 2016, Intel Corporation. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ =20 --=20 2.19.1.3.g30247aa5d201 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#75700): https://edk2.groups.io/g/devel/message/75700 Mute This Topic: https://groups.io/mt/83110927/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-