random(4) plugin infrastructure for mulitple RNG in a modular fashion

Arthur Mesh arthurmesh at gmail.com
Fri Aug 16 00:26:29 UTC 2013


On Thu, Aug 15, 2013 at 04:17:13PM -0700, Arthur Mesh wrote:
> I agree that devices make more sense for yarrow/rdrand/nehemiah. We'll have a
> patch ready for review by so@ soon.

Are you okay with the following? If so, I'll ask obrien@ to commit it
and note the change in UPDATING. Also, how do we deal with i386/amd64
specific devices in LINT?

Thanks

Index: sys/amd64/conf/GENERIC
===================================================================
--- sys/amd64/conf/GENERIC	(revision 254389)
+++ sys/amd64/conf/GENERIC	(working copy)
@@ -292,8 +292,8 @@
 # Pseudo devices.
 device		loop		# Network loopback
 device		random		# Entropy device
-options 	PADLOCK_RNG	# VIA Padlock RNG
-options 	RDRAND_RNG	# Intel Bull Mountain RNG
+device		padlock_rng	# VIA Padlock RNG
+device		rdrand_rng	# Intel Bull Mountain RNG
 device		ether		# Ethernet support
 device		vlan		# 802.1Q VLAN support
 device		tun		# Packet tunnel.
Index: sys/conf/options.amd64
===================================================================
--- sys/conf/options.amd64	(revision 254389)
+++ sys/conf/options.amd64	(working copy)
@@ -68,7 +68,3 @@
 
 # options for the Intel C600 SAS driver (isci)
 ISCI_LOGGING	opt_isci.h
-
-# hw random number generators for random(4)
-PADLOCK_RNG		opt_cpu.h
-RDRAND_RNG		opt_cpu.h
Index: sys/conf/options.i386
===================================================================
--- sys/conf/options.i386	(revision 254389)
+++ sys/conf/options.i386	(working copy)
@@ -123,7 +123,3 @@
 
 # options for the Intel C600 SAS driver (isci)
 ISCI_LOGGING	opt_isci.h
-
-# hw random number generators for random(4)
-PADLOCK_RNG		opt_cpu.h
-RDRAND_RNG		opt_cpu.h
Index: sys/i386/conf/GENERIC
===================================================================
--- sys/i386/conf/GENERIC	(revision 254389)
+++ sys/i386/conf/GENERIC	(working copy)
@@ -306,8 +306,8 @@
 # Pseudo devices.
 device		loop		# Network loopback
 device		random		# Entropy device
-options 	PADLOCK_RNG	# VIA Padlock RNG
-options 	RDRAND_RNG	# Intel Bull Mountain RNG
+device		padlock_rng	# VIA Padlock RNG
+device		rdrand_rng	# Intel Bull Mountain RNG
 device		ether		# Ethernet support
 device		vlan		# 802.1Q VLAN support
 device		tun		# Packet tunnel.


More information about the freebsd-arch mailing list