Hi Ard, On Thu, Nov 10, 2022 at 2:48 PM Ard Biesheuvel <a...@kernel.org> wrote: > > Currently, we only expose EFI_RNG_PROTOCOL when running under QEMU if it > exposes a virtio-rng device. This means that generic EFI apps or > loaders have no access to an entropy source if this device is > unavailable, unless they implement their own arch-specific handling to > figure out whether any CPU instructions or monitor calls can be used > instead. > > So let's wire those up as EFI_RNG_PROTOCOL implementations as well, > using the existing drivers and libraries.
I tested this series on x86 and it appears to work as expected. Thanks for putting this together. So, Tested-by: Jason A. Donenfeld <ja...@zx2c4.com> On very brief inspection, this also looks good, though I'm not really an EDK2 expert and my review isn't very thorough. But in case it helps, which you can take or leave, Reviewed-by: Jason A. Donenfeld <ja...@zx2c4.com> My only question is how it chooses which RNG source to use in the event that multiple are available. I would think preferring virtio-rng if available is the right thing there. If it's based on the order of the items in the .dsc file, then it looks like this series is doing the right thing. Jason -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#96308): https://edk2.groups.io/g/devel/message/96308 Mute This Topic: https://groups.io/mt/94935839/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-