forked from Minki/linux
f7f510ec19
Note that by itself, having a "hardware" random generator does very little: you should probably run "rngd" in your guest to feed this into the kernel entropy pool. Included: virtio_rng: dont use vmalloced addresses for virtio If virtio_rng is build as a module, random_data is an address in vmalloc space. As virtio expects guest real addresses, this can cause any kind of funny behaviour, so lets allocate random_data dynamically with kmalloc. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
124 lines
3.7 KiB
Plaintext
124 lines
3.7 KiB
Plaintext
#
|
|
# Hardware Random Number Generator (RNG) configuration
|
|
#
|
|
|
|
config HW_RANDOM
|
|
tristate "Hardware Random Number Generator Core support"
|
|
default m
|
|
---help---
|
|
Hardware Random Number Generator Core infrastructure.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called rng-core. This provides a device
|
|
that's usually called /dev/hw_random, and which exposes one
|
|
of possibly several hardware random number generators.
|
|
|
|
These hardware random number generators do not feed directly
|
|
into the kernel's random number generator. That is usually
|
|
handled by the "rngd" daemon. Documentation/hw_random.txt
|
|
has more information.
|
|
|
|
If unsure, say Y.
|
|
|
|
config HW_RANDOM_INTEL
|
|
tristate "Intel HW Random Number Generator support"
|
|
depends on HW_RANDOM && (X86 || IA64) && PCI
|
|
default HW_RANDOM
|
|
---help---
|
|
This driver provides kernel-side support for the Random Number
|
|
Generator hardware found on Intel i8xx-based motherboards.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called intel-rng.
|
|
|
|
If unsure, say Y.
|
|
|
|
config HW_RANDOM_AMD
|
|
tristate "AMD HW Random Number Generator support"
|
|
depends on HW_RANDOM && X86 && PCI
|
|
default HW_RANDOM
|
|
---help---
|
|
This driver provides kernel-side support for the Random Number
|
|
Generator hardware found on AMD 76x-based motherboards.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called amd-rng.
|
|
|
|
If unsure, say Y.
|
|
|
|
config HW_RANDOM_GEODE
|
|
tristate "AMD Geode HW Random Number Generator support"
|
|
depends on HW_RANDOM && X86_32 && PCI
|
|
default HW_RANDOM
|
|
---help---
|
|
This driver provides kernel-side support for the Random Number
|
|
Generator hardware found on the AMD Geode LX.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called geode-rng.
|
|
|
|
If unsure, say Y.
|
|
|
|
config HW_RANDOM_VIA
|
|
tristate "VIA HW Random Number Generator support"
|
|
depends on HW_RANDOM && X86_32
|
|
default HW_RANDOM
|
|
---help---
|
|
This driver provides kernel-side support for the Random Number
|
|
Generator hardware found on VIA based motherboards.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called via-rng.
|
|
|
|
If unsure, say Y.
|
|
|
|
config HW_RANDOM_IXP4XX
|
|
tristate "Intel IXP4xx NPU HW Random Number Generator support"
|
|
depends on HW_RANDOM && ARCH_IXP4XX
|
|
default HW_RANDOM
|
|
---help---
|
|
This driver provides kernel-side support for the Random
|
|
Number Generator hardware found on the Intel IXP4xx NPU.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called ixp4xx-rng.
|
|
|
|
If unsure, say Y.
|
|
|
|
config HW_RANDOM_OMAP
|
|
tristate "OMAP Random Number Generator support"
|
|
depends on HW_RANDOM && (ARCH_OMAP16XX || ARCH_OMAP24XX)
|
|
default HW_RANDOM
|
|
---help---
|
|
This driver provides kernel-side support for the Random Number
|
|
Generator hardware found on OMAP16xx and OMAP24xx multimedia
|
|
processors.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called omap-rng.
|
|
|
|
If unsure, say Y.
|
|
|
|
config HW_RANDOM_PASEMI
|
|
tristate "PA Semi HW Random Number Generator support"
|
|
depends on HW_RANDOM && PPC_PASEMI
|
|
default HW_RANDOM
|
|
---help---
|
|
This driver provides kernel-side support for the Random Number
|
|
Generator hardware found on PA Semi PWRficient SoCs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called pasemi-rng.
|
|
|
|
If unsure, say Y.
|
|
|
|
config HW_RANDOM_VIRTIO
|
|
tristate "VirtIO Random Number Generator support"
|
|
depends on HW_RANDOM && VIRTIO
|
|
---help---
|
|
This driver provides kernel-side support for the virtual Random Number
|
|
Generator hardware.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called virtio-rng. If unsure, say N.
|