From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 16F2A1A1E04 for ; Fri, 19 Aug 2016 05:49:45 -0700 (PDT) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9CC99821C3; Fri, 19 Aug 2016 12:49:44 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-13.phx2.redhat.com [10.3.116.13]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7JCnaSi011583; Fri, 19 Aug 2016 08:49:43 -0400 From: Laszlo Ersek To: edk2-devel-01 Cc: Ard Biesheuvel , Jordan Justen Date: Fri, 19 Aug 2016 14:49:24 +0200 Message-Id: <20160819124932.29711-4-lersek@redhat.com> In-Reply-To: <20160819124932.29711-1-lersek@redhat.com> References: <20160819124932.29711-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 19 Aug 2016 12:49:44 +0000 (UTC) Subject: [PATCH 03/11] OvmfPkg/PlatformBootManagerLib: relax device class requirement for ConOut X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 12:49:45 -0000 Content-Transfer-Encoding: quoted-printable This will add virtio-gpu-pci devices to ConOut automatically. For further benefit, the change also allows OVMF to use the legacy-free / secondary VGA adapter (added in QEMU commit 63e3e24d, "vga: add secondary stdvga variant") as console. ArmVirtPkg's PlatformBootManagerLib already filters with IS_PCI_DISPLAY(); see IsPciDisplay(). Cc: Ard Biesheuvel Cc: Jordan Justen Ref: https://tianocore.acgmultimedia.com/show_bug.cgi?id=3D66 Originally-suggested-by: Gerd Hoffmann Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg= /Library/PlatformBootManagerLib/BdsPlatform.c index 351fbc1e86c7..87412598f51b 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -615,13 +615,13 @@ GetGopDevicePath ( }=0D =0D return EFI_SUCCESS;=0D }=0D =0D EFI_STATUS=0D -PreparePciVgaDevicePath (=0D +PreparePciDisplayDevicePath (=0D IN EFI_HANDLE DeviceHandle=0D )=0D /*++=0D =0D Routine Description:=0D =0D @@ -865,20 +865,20 @@ DetectAndPreparePlatformPciDevicePath ( PreparePciSerialDevicePath (Handle);=0D return EFI_SUCCESS;=0D }=0D }=0D =0D //=0D - // Here we decide which VGA device to enable in PCI bus=0D + // Here we decide which display device to enable in PCI bus=0D //=0D - if (IS_PCI_VGA (Pci)) {=0D + if (IS_PCI_DISPLAY (Pci)) {=0D //=0D // Add them to ConOut.=0D //=0D - DEBUG ((EFI_D_INFO, "Found PCI VGA device\n"));=0D - PreparePciVgaDevicePath (Handle);=0D + DEBUG ((EFI_D_INFO, "Found PCI display device\n"));=0D + PreparePciDisplayDevicePath (Handle);=0D return EFI_SUCCESS;=0D }=0D =0D return Status;=0D }=0D =0D --=20 2.9.2