From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web10.19760.1669126888056109546 for ; Tue, 22 Nov 2022 06:21:28 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=VJazPncq; spf=pass (domain: kernel.org, ip: 139.178.84.217, mailfrom: srs0=2rl2=3w=zx2c4.com=jason@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 84CDC61728 for ; Tue, 22 Nov 2022 14:21:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAAEBC433C1 for ; Tue, 22 Nov 2022 14:21:26 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="VJazPncq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1669126882; 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=QYJbwzNCj4nYtlscTvtWc96cq1+cp78kNksO+u3BsKM=; b=VJazPncq54uKUzLEdGz8KrHFkuSqLROqTEVmthIN27/ZQbxkLGWjKNCpgxX3sIxMcwoD/C 6KRv0k+QE+w6mBkCBIgl9YDl30pB8pYkrCYYZuCpPfrwPZtZMUcZ+cc4xwzjjRUjSWibZS z26mQKc/L4okH0aX/LxA/PFWUQkaa9Q= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id df1eb212 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 22 Nov 2022 14:21:22 +0000 (UTC) Received: by mail-vs1-f48.google.com with SMTP id p4so14553118vsa.11 for ; Tue, 22 Nov 2022 06:21:22 -0800 (PST) X-Gm-Message-State: ANoB5pkgijBrY+FULHPkGjWsgDhKlNrkqhJ8fCzcOYVZvyulehcBN5gJ 8G/8fjVVQpqIbwtPUVTNH8mtWp/zwzCunnf3Pdc= X-Google-Smtp-Source: AA0mqf4zjTjzLdlh/w9JtucNqrOKtn4Umma1BUq2Kv+r/LxRXDnOY1NLX8hPWpPsP/dk33DUUZcKxXXeZFlA4C2edIM= X-Received: by 2002:a05:6102:3003:b0:3aa:1c26:c95 with SMTP id s3-20020a056102300300b003aa1c260c95mr5180296vsa.76.1669126881377; Tue, 22 Nov 2022 06:21:21 -0800 (PST) MIME-Version: 1.0 References: <20221110134738.3798618-1-ardb@kernel.org> <20221110134738.3798618-4-ardb@kernel.org> In-Reply-To: From: "Jason A. Donenfeld" Date: Tue, 22 Nov 2022 15:21:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [edk2-devel] [PATCH 3/3] OvmfPkg/OvmfX86: Enable RDRAND based EFI_RNG_PROTOCOL implementation To: Pedro Falcato Cc: devel@edk2.groups.io, ardb@kernel.org, Liming Gao , Rebecca Cran , Pierre Gondois , Leif Lindholm , Sami Mujawar , Gerd Hoffmann Content-Type: text/plain; charset="UTF-8" Hi, On Tue, Nov 22, 2022 at 3:17 PM Pedro Falcato wrote: > I have sent out a patch (https://edk2.groups.io/g/devel/message/96552) fixing the CPUID checks with a naive attempt to sniff out RDRAND issues. > Your Linux snippet is probably better but I couldn't look at it due to licensing concerns. I (re)wrote that function in Linux. I hereby relicense it as MIT, and also place it into public domain. Do with it what you will now. Jason