From owner-freebsd-arch@FreeBSD.ORG Fri Aug 16 00:26:29 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8B4F8761; Fri, 16 Aug 2013 00:26:29 +0000 (UTC) (envelope-from arthurmesh@gmail.com) Received: from mail-pd0-x22a.google.com (mail-pd0-x22a.google.com [IPv6:2607:f8b0:400e:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 50E272269; Fri, 16 Aug 2013 00:26:29 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id x10so1465396pdj.15 for ; Thu, 15 Aug 2013 17:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=cy+PsL/Tx//2TewwvcuS9XEmgrAXvxbajnoSEWEfCMI=; b=WDoU0Yu1cwxqLW11SGNcMPbA8oe7ZupHZGOJsBXukMdLgtuHSdrGRJTfDC9IxQ8Axf mT5TqqBfBkKJ4iDgcvoSKvNADQMBeQdLDhEK4airquuTc0mqjPE1m0CKg1nudKlddE6b lfia5IDJe+qroEDuOU8O3k/9fUmEnbueAA7+xYo4Pv+4BSbuDKDVzKm03DrtgLcgKc1j y3aoLwyd+WBAtYjWAHP5hLoN+EetzHji/MpThg6f8G4NM90bqYvmg1GXaa16yPxkNWxV rC8/lFhA8EUElUMGa5TPm6I1odEjx66pD8TuYOOfuJSph/hspBbRNnp1AUtTXIibVGAG E/Tg== X-Received: by 10.66.241.34 with SMTP id wf2mr177595pac.111.1376612788943; Thu, 15 Aug 2013 17:26:28 -0700 (PDT) Received: from x96.org (x96.org. [64.85.165.177]) by mx.google.com with ESMTPSA id vu5sm2298274pab.10.2013.08.15.17.26.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 15 Aug 2013 17:26:28 -0700 (PDT) Date: Thu, 15 Aug 2013 17:26:25 -0700 From: Arthur Mesh To: Dag-Erling Sm??rgrav Subject: Re: random(4) plugin infrastructure for mulitple RNG in a modular fashion Message-ID: <20130816002625.GE76666@x96.org> References: <20130807183112.GA79319@dragon.NUXI.org> <86pptfnu33.fsf@nine.des.no> <20130815231713.GD76666@x96.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130815231713.GD76666@x96.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arch@freebsd.org, secteam@freebsd.org, Philip Paeps X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Aug 2013 00:26:29 -0000 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.