NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-xen/40739: no entropy device sourcese on 5.0_RC2 XEN3PAE_DOMU
Manuel Bouyer wrote:
> On Wed, Feb 25, 2009 at 01:37:25PM -0600, Tracy J. Di Marco White wrote:
> > 'rndctl -l' doesn't list any devices, as shown above.
>
> I see, if_xennet_xenbus.c is missing a call to rnd_attach_source().
> It can probably be cut-n-pasted from if_xennet.c.
> I'll have a look next week, unless someone beats me
Tracy: If this patch is ok, I'll commit it.
Christoph
Index: sys/arch/xen/xen/if_xennet_xenbus.c
===================================================================
RCS file: /cvsroot/src/sys/arch/xen/xen/if_xennet_xenbus.c,v
retrieving revision 1.33
diff -u -p -r1.33 if_xennet_xenbus.c
--- sys/arch/xen/xen/if_xennet_xenbus.c 8 Feb 2009 19:05:50 -0000 1.33
+++ sys/arch/xen/xen/if_xennet_xenbus.c 25 Feb 2009 23:11:47 -0000
@@ -378,6 +378,11 @@ xennet_xenbus_attach(device_t parent, de
panic("%s: can't establish soft interrupt",
device_xname(self));
+#if NRND > 0
+ rnd_attach_source(&sc->sc_rnd_source, device_xname(sc->sc_dev),
+ RND_TYPE_NET, 0);
+#endif
+
/* initialise shared structures and tell backend that we are ready */
xennet_xenbus_resume(sc);
}
Home |
Main Index |
Thread Index |
Old Index