From: Amos Kong Date: Wed, 14 May 2014 01:03:46 +0000 (+0930) Subject: virtio-rng: support multiple virtio-rng devices X-Git-Tag: omap-for-v3.16/fixes-against-rc1~46^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce;p=pandora-kernel.git virtio-rng: support multiple virtio-rng devices Current hwrng core supports to register multiple hwrng devices, and there is only one device really works in the same time. QEMU alsu supports to have multiple virtio-rng backends. This patch changes virtio-rng driver to support multiple virtio-rng devices. ]# cat /sys/class/misc/hw_random/rng_available virtio_rng.0 virtio_rng.1 ]# cat /sys/class/misc/hw_random/rng_current virtio_rng.0 ]# echo -n virtio_rng.1 > /sys/class/misc/hw_random/rng_current ]# dd if=/dev/hwrng of=/dev/null Signed-off-by: Amos Kong Signed-off-by: Rusty Russell --- Reading git-diff-tree failed