From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web09.3202.1668154496207941133 for ; Fri, 11 Nov 2022 00:14:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F0TL+Rk6; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668154495; 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: in-reply-to:in-reply-to:references:references; bh=RxrwoFT59TXXLMJEozPSyxlSsXALTxKeBEICr8fWROE=; b=F0TL+Rk6JmP0ILYfSgF3X2bQWnxGFsgVL23mdrsS91vWVIHNNvzuC+VSl0HlOjZDjT++za xTbfkhtprSFolv9lcxNApG9Z/dT0gTp+SmKJlZlv/uV0koOIfBycFH+d977lzy+upcbAc8 DrQYxP5+5j7wGIXj1h5E/bv8Y5zMecA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-225-gruPIbejMy2K-gmtpaUAzw-1; Fri, 11 Nov 2022 03:14:52 -0500 X-MC-Unique: gruPIbejMy2K-gmtpaUAzw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 770B185A5A6; Fri, 11 Nov 2022 08:14:51 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8E4344B3FC6; Fri, 11 Nov 2022 08:14:49 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 0FF2B18003BA; Fri, 11 Nov 2022 09:14:48 +0100 (CET) Date: Fri, 11 Nov 2022 09:14:47 +0100 From: "Gerd Hoffmann" To: devel@edk2.groups.io, ardb@kernel.org Cc: Liming Gao , Rebecca Cran , Pierre Gondois , Leif Lindholm , Sami Mujawar , "Jason A . Donenfeld" Subject: Re: [edk2-devel] [PATCH 0/3] OVMF: support EFI_RNG_PROTOCOL without virtio-rng Message-ID: <20221111081447.5t2omonim2mh7wis@sirius.home.kraxel.org> References: <20221110134738.3798618-1-ardb@kernel.org> MIME-Version: 1.0 In-Reply-To: <20221110134738.3798618-1-ardb@kernel.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 10, 2022 at 02:47:35PM +0100, Ard Biesheuvel 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. > > First patch is a bugfix - Liming, mind if I merge that right away? > Thanks. > > Cc: Liming Gao > Cc: Rebecca Cran > Cc: Pierre Gondois > Cc: Leif Lindholm > Cc: Sami Mujawar > Cc: Gerd Hoffmann > Cc: Jason A. Donenfeld > > Ard Biesheuvel (3): > ArmPkg/ArmTrngLib: Fix incorrect GUID reference in DEBUG() output > ArmVirtPkg/ArmVirtQemu: Expose TRNG hypercall via RngDxe if > implemented > OvmfPkg/OvmfX86: Enable RDRAND based EFI_RNG_PROTOCOL implementation Series looks good to me (not tested though). Acked-by: Gerd Hoffmann take care, Gerd