Re: [uml-devel] Strange behaviour of hwrng

2005-10-22 Thread Gerd Stolpmann
Am Samstag, den 22.10.2005, 02:52 +0200 schrieb Blaisorblade: Obviously, the real hardware generators block when there is not enough entropy, and rngd was written for them. I think there are two ways of fixing the problem: (1) Change rngd. If it sees -EAGAIN, it sleeps for a moment. This

Re: [uml-devel] Strange behaviour of hwrng

2005-10-21 Thread Blaisorblade
On Friday 21 October 2005 20:24, Gerd Stolpmann wrote: Hi list, I recently tested the hwrng driver. In principal, it works, but it sometimes eats up all host CPU time. In particular, I can see that the UML system does a (blocking) read on /dev/hwrng, Could you please elaborate on that? Who

Re: [uml-devel] Strange behaviour of hwrng

2005-10-21 Thread Gerd Stolpmann
Am Freitag, den 21.10.2005, 20:42 +0200 schrieb Blaisorblade: On Friday 21 October 2005 20:24, Gerd Stolpmann wrote: Hi list, I recently tested the hwrng driver. In principal, it works, but it sometimes eats up all host CPU time. In particular, I can see that the UML system does a

Re: [uml-devel] Strange behaviour of hwrng

2005-10-21 Thread Jeff Dike
On Sat, Oct 22, 2005 at 02:52:00AM +0200, Blaisorblade wrote: Proper solution: use a separate _host_ thread, which either sits blocked in a blocking read or calls poll() on the host /dev/random, and have it do the work. Yeah, unfortunately. The real right thing to do is give the host