From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.groups.io with SMTP id smtpd.web12.8281.1601630307302605730 for ; Fri, 02 Oct 2020 02:18:27 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EDrCueyU; spf=pass (domain: redhat.com, ip: 63.128.21.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601630306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3ZbqaaaRqEinRnJ7R86iWNxx/traO2KTyxdlWSXwH8c=; b=EDrCueyUOknzcmGY+JQ+rNPLiXoGw5bT0mj8J93pssJM0x22eslY0HZS/iEQLzP/gQOHGH kwga23r887GWurpk0B8Gx8vQJUPkTyGecMfjYt+Ftuu0G5Za3aEgJdDGiahRPRjmWq7eQR +QaCSgdGnTGJL3nyPEJwJS+8SCtHtcY= 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-68-9L518G5FMWuELfUDUxO8rw-1; Fri, 02 Oct 2020 05:18:25 -0400 X-MC-Unique: 9L518G5FMWuELfUDUxO8rw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A8327186DD26; Fri, 2 Oct 2020 09:18:23 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-113-188.ams2.redhat.com [10.36.113.188]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1F22E5C1D0; Fri, 2 Oct 2020 09:18:21 +0000 (UTC) Subject: Re: [edk2-devel] Cannot build due to recent change To: devel@edk2.groups.io, leif@nuviainc.com, andrew.goodbody@linaro.org Cc: Ard Biesheuvel , Thomas Abraham , Liming Gao References: <9ed015a5-f111-d661-acad-4f97dc5f5eb1@linaro.org> <20201001104332.GG5623@vanye> From: "Laszlo Ersek" Message-ID: Date: Fri, 2 Oct 2020 11:18:20 +0200 MIME-Version: 1.0 In-Reply-To: <20201001104332.GG5623@vanye> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit on a tangent: On 10/01/20 12:43, Leif Lindholm wrote: > if the platform port produces EFI_RNG_PROTOCOL > from some onboard hw, you can use the approach from edk2-platforms > commit 1e09147a01ae ("Platforms/RaspberryPi: Fix RPi4 RngLib build error"). Emphasis on "onboard hw". I find it incredibly attractive and good system design that Silicon/Broadcom/Bcm283x/Drivers/Bcm2838RngDxe can *exist*, because the underlying *platform hardware* also exists. I wish we had something similar for virt, i.e. randomness available from just a handful of fixed location MMIO registers. Randomness is needed way earlier than when various bus enumerations occur, such as PCI, or even virtio-mmio. See also: why virtio-serial is unusable as a real debug output device. Yes, I know, on Intel there's RDRAND and friends; they didn't have good press, and it's still unclear to me how much one can count on RDRAND's presence on the various QEMU/KVM CPU models. /end tangent Laszlo