(CC'ing lkml and hpa for thoughts on multiple active hwrng devices) On (Thu) 07 Mar 2013 [12:06:31], Rusty Russell wrote: > Amit Shah <amit.shah@xxxxxxxxxx> writes: > > The code currently only supports one virtio-rng device at a time. > > Invoking guests with multiple devices causes the guest to blow up. > > > > Check if we've already registered and initialised the driver. Also > > cleanup in case of registration errors or hot-unplug so that a new > > device can be used. > > > > Reported-by: Peter Krempa <pkrempa@xxxxxxxxxx> > > Reported-by: <yunzheng@xxxxxxxxxx> > > Signed-off-by: Amit Shah <amit.shah@xxxxxxxxxx> > > --- > > > > Also valid for stable? > > Yes. We could fix virtio-rng to allow multiple rngs, but of course it > will fail anyway since hwrng wants unique names. And changing the name > to be virtio-%u will probably break things, for no real upside. The hwrng interface also sources its input from one active device at a time, and that's selectable via a sysfs interface. If we extend the hwrng interface to source from multiple devices at the same time, and taking in whatever it gets from whichever device has data to give, wlil having multiple virtio devices make sense. But, several active hwrng devices has its own set of problems: on need for entropy, which device do you ask from? Just asking all devices for precious entropy, when only one could give out all of it is not productive (or secure?). > Applied, and Cc:stable added. Thanks! Amit _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization