linux/drivers/char/hw_random
Amos Kong 08e53fbdb8 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 <akong@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2014-05-14 10:50:34 +09:30
..
amd-rng.c
atmel-rng.c hwrng: atmel - Use devm_clk_get() 2014-03-10 20:13:35 +08:00
bcm63xx-rng.c hwrng: bcm63xx - remove unnecessary platform_set_drvdata() 2013-05-24 17:55:29 +08:00
bcm2835-rng.c hwrng: bcm2835 - fix oops when rng h/w is accessed during registration 2014-04-11 11:31:13 +08:00
core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2014-04-03 09:28:16 -07:00
exynos-rng.c drivers/char: delete non-required instances of include <linux/init.h> 2014-02-07 15:10:19 -08:00
geode-rng.c
intel-rng.c
ixp4xx-rng.c
Kconfig hwrng: msm: switch Kconfig to ARCH_QCOM depends 2014-02-21 09:27:25 -06:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2013-11-23 16:18:25 -08:00
msm-rng.c hwrng: msm - Add PRNG support for MSM SoC's 2013-10-30 12:02:56 +08:00
mxc-rnga.c hwrng: mxc-rnga - Check the return value from clk_prepare_enable() 2013-08-01 10:53:59 +10:00
n2-asm.S
n2-drv.c drivers/char: delete non-required instances of include <linux/init.h> 2014-02-07 15:10:19 -08:00
n2rng.h
nomadik-rng.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2014-04-03 09:28:16 -07:00
octeon-rng.c drivers/char: delete non-required instances of include <linux/init.h> 2014-02-07 15:10:19 -08:00
omap3-rom-rng.c hwrng: omap3-rom - Use devm_clk_get() 2014-03-10 20:13:36 +08:00
omap-rng.c hwrng: omap - reorder OMAP TRNG driver code 2013-08-21 21:28:08 +10:00
pasemi-rng.c drivers: clean-up prom.h implicit includes 2013-10-09 20:04:04 -05:00
picoxcell-rng.c hwrng: pixocell - Use devm_clk_get() 2014-03-10 20:13:37 +08:00
powernv-rng.c hwrng: Add a driver for the hwrng found in power7+ systems 2013-10-11 16:50:20 +11:00
ppc4xx-rng.c powerpc: add missing explicit OF includes for ppc 2013-11-11 09:10:50 -06:00
pseries-rng.c hwrng: Return errors to upper levels in pseries-rng.c 2013-10-11 16:50:18 +11:00
timeriomem-rng.c hwrng: timeriomem - Use devm_*() functions 2014-03-10 20:13:38 +08:00
tpm-rng.c
tx4939-rng.c hwrng: tx4939 - simplify use of devm_ioremap_resource 2013-08-14 20:42:04 +10:00
via-rng.c hwrng: via-rng - Mark device ID table as __maybe_unused 2013-09-13 21:43:53 +10:00
virtio-rng.c virtio-rng: support multiple virtio-rng devices 2014-05-14 10:50:34 +09:30