From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=66.187.233.73; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) (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 06CCC2096182B for ; Thu, 17 May 2018 23:20:31 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EC126857B0; Fri, 18 May 2018 06:20:29 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-74.rdu2.redhat.com [10.10.120.74]) by smtp.corp.redhat.com (Postfix) with ESMTP id F1C65111AF25; Fri, 18 May 2018 06:20:28 +0000 (UTC) From: Laszlo Ersek To: edk2-devel-01 Cc: Ard Biesheuvel , Jordan Justen Date: Fri, 18 May 2018 08:20:24 +0200 Message-Id: <20180518062026.2781-1-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 18 May 2018 06:20:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 18 May 2018 06:20:30 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lersek@redhat.com' RCPT:'' Subject: [PATCH 0/2] ArmVirtPkg, OvmfPkg: connect Virtio RNG devices again X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 06:20:32 -0000 Repo: https://github.com/lersek/edk2.git Branch: connect_vrng_bz1579518 This is a fix for another regression from the March 2018 series [edk2] [PATCH 0/6] OvmfPkg, ArmVirtQemu: leaner platform BDS policy for connecting devices Turns out EfiBootManagerConnectAll() used to connect devices one doesn't really think about every day. I stumbled upon this when an aarch64 guest kernel printed > EFI stub: EFI_RNG_PROTOCOL unavailable, no randomness supplied whereas I had just looked at the domain XML and seen the virtio-rng device model in it. Tested extensively as described in and . Cc: Ard Biesheuvel Cc: Jordan Justen Thanks, Laszlo Laszlo Ersek (2): ArmVirtPkg/PlatformBootManagerLib: connect Virtio RNG devices again OvmfPkg/PlatformBootManagerLib: connect Virtio RNG devices again ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 129 ++++++++++++++++++++ ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 + OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 105 ++++++++++++++++ OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.h | 1 + 4 files changed, 236 insertions(+) -- 2.14.1.3.gb7cf6e02401b