Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

kconfig: build-in hardware RNG drivers #2430

@lucab

Description

@lucab

As of 1772.0.0, our kernel config enables support for hardware random number generators and builds a couple of drivers as modules (CONFIG_HW_RANDOM_VIRTIO and CONFIG_HW_RANDOM_TIMERIOMEM in commonconfig). In order to speed up entropy gathering at early boot (and hopefully sidestep #2429 and similar issues), it would be convenient to build in the most common drivers.

From a quick look around, this would be my proposed list:

CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_HW_RANDOM_CAVIUM=y
CONFIG_HW_RANDOM_VIA=y
CONFIG_HW_RANDOM_INTEL=y
CONFIG_HW_RANDOM_AMD=y

Two additional sidenotes:

  • timeriomem-rng is not available on any of the platforms we support, thus it can be safely disabled
  • in order to properly use virtio-rng the host needs to pass -device virtio-rng-pci

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions