From patchwork Thu Dec 8 15:33:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9466537 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2023E60231 for ; Thu, 8 Dec 2016 15:37:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13C2528501 for ; Thu, 8 Dec 2016 15:37:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 088ED28536; Thu, 8 Dec 2016 15:37:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AB88C28501 for ; Thu, 8 Dec 2016 15:37:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cF0jk-0007qS-IZ; Thu, 08 Dec 2016 15:35:56 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cF0jj-0007pE-Ba for xen-devel@lists.xenproject.org; Thu, 08 Dec 2016 15:35:55 +0000 Received: from [85.158.143.35] by server-6.bemta-6.messagelabs.com id E9/D2-28843-ADD79485; Thu, 08 Dec 2016 15:35:54 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGIsWRWlGSWpSXmKPExsXitHSDve7NWs8 Ig78/zSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oybG8+xFNxmq2j694qtgfEmaxcjJ4eEgL/E kpvLwWw2AQOJFdOvMoLYIgL2ErM/9rGD2MwCehLnFi0EqxEWSJD4/3Q3E4jNIqAisffRJmYQm 1fAVmL2nO8sEDPlJRaePwJWwylgJ3F882c2EFsIqObxzd+MELaaxI2Fy1ggegUlTs58wgKxS0 Li4IsXzBMYeWchSc1CklrAyLSKUb04tagstUjXWC+pKDM9oyQ3MTNH19DATC83tbg4MT01JzG pWC85P3cTIzB0GIBgB2PHP6dDjJIcTEqivLsmuEcI8SXlp1RmJBZnxBeV5qQWH2KU4eBQkuCd VeMZISRYlJqeWpGWmQMMYpi0BAePkghvSjVQmre4IDG3ODMdInWK0ZjjwPsVT5k4FkxY+ZRJi CUvPy9VSpx3M8gkAZDSjNI8uEGw6LrEKCslzMsIdJoQT0FqUW5mCar8K0ZxDkYlYYh7eDLzSu D2vQI6hQnolHk33EFOKUlESEk1MMZ5n1jPKF3ylrV5mkGzZli6xWK7v9ffRDueZTTV2m2zmXt /1cXJYnFK99duZZJaNm3j8QULXWa32lXuWp1UtDxqjwoTa+9rlvL+ME7x708v3tS/oKGRz/E2 avmVJdMV1tStXvC30r/DNHD10kOtji3b49UunxK7yv/6Y7lga63cxMzUinPz/JRYijMSDbWYi 4oTATR1fQGpAgAA X-Env-Sender: prvs=143a4c3ea=anthony.perard@citrix.com X-Msg-Ref: server-4.tower-21.messagelabs.com!1481211350!41166045!3 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 39406 invoked from network); 8 Dec 2016 15:35:53 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-4.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 8 Dec 2016 15:35:53 -0000 X-IronPort-AV: E=Sophos;i="5.33,320,1477958400"; d="scan'208";a="402564138" From: Anthony PERARD To: , Date: Thu, 8 Dec 2016 15:33:34 +0000 Message-ID: <20161208153340.2285-9-anthony.perard@citrix.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161208153340.2285-1-anthony.perard@citrix.com> References: <20161208153340.2285-1-anthony.perard@citrix.com> MIME-Version: 1.0 Cc: Anthony PERARD Subject: [Xen-devel] [PATCH RFC 08/14] OvmfPkg/PlatformBootManagerLib: Workaround missing PCI bus on Xen PVH X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD --- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index cc35630..bd64cc3 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -1152,6 +1152,8 @@ PciAcpiInitialization ( PciWrite8 (PCI_LIB_ADDRESS (0, 0x1f, 0, 0x6a), 0x0b); // G PciWrite8 (PCI_LIB_ADDRESS (0, 0x1f, 0, 0x6b), 0x0b); // H break; + case 0xffff: + return; default: DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n", __FUNCTION__, mHostBridgeDevId));