Re: x86 CPU RNG support, take 2

[email protected] (Christos Zoulas) Thu, 31 Dec 2015 05:04:06 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.crypto,gmane.os.netbsd.devel.security,gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
In article <[email protected]>,
Thor Lancelot Simon  <[email protected]> wrote:
>On Sun, Dec 27, 2015 at 02:26:36AM +0000, Taylor R Campbell wrote:
>> 
>> This seems to have several functional changes in it:
>> 
>> - Add cpu_rng(9) and its rndsource.
>
>This is unusable and untestable without one or the other of the below:
>
>> - Implement cpu_rng(9) on x86 using RDRAND/RDSEED for Intel CPUs.
>> - Convert VIA RNG to cpu_rng(9).
>> 
>> Please split them into separate commits, and separate patches for
>
>So I am somewhat hesitant to do what you ask.
>
>As you noticed the 32-bit code has some brainos and likely won't even
>compile.  Unfortunately, I'm travelling and using my laptop for a
>build platform, and the tools build currently seems to be broken (mandoc
>as a tool splodes on OS X) so I can't test 32-bit anything (I had a
>good 64-bit toolchain before the build breakage).

I fixed that a few days ago FYI.

christos