From owner-freebsd-current@FreeBSD.ORG Tue Mar 9 00:10:58 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A739A1065672 for ; Tue, 9 Mar 2010 00:10:58 +0000 (UTC) (envelope-from james-freebsd-current@jrv.org) Received: from mail.jrv.org (rrcs-24-73-246-106.sw.biz.rr.com [24.73.246.106]) by mx1.freebsd.org (Postfix) with ESMTP id 6AAFE8FC1C for ; Tue, 9 Mar 2010 00:10:58 +0000 (UTC) Received: from kremvax.housenet.jrv (kremvax.housenet.jrv [192.168.3.124]) by mail.jrv.org (8.14.3/8.14.3) with ESMTP id o290AqVa020456; Mon, 8 Mar 2010 18:10:52 -0600 (CST) (envelope-from james-freebsd-current@jrv.org) Authentication-Results: mail.jrv.org; domainkeys=pass (testing) header.from=james-freebsd-current@jrv.org DomainKey-Signature: a=rsa-sha1; s=enigma; d=jrv.org; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:content-type:content-transfer-encoding; b=KY3x1QoK0uchUMIB6ZleK5n9SecI0nhYMwdpx8JE/Y67SNK/Z+D4y0LNtQ2q5L7Hq mbhNb+NJOySUksmYAicJHb/CJo7V8gKttg3QEl9H5yM/9dzm7e7ITJwVhe5osJy1rM2 SeWgOU6ciIrz6HJlQ6wRP9owHuUdvfEFVT34rfs= Message-ID: <4B95920C.5000909@jrv.org> Date: Mon, 08 Mar 2010 18:10:52 -0600 From: "James R. Van Artsdalen" User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Norikatsu Shigemura References: <4B934015.8000908@gmail.com> <4B934354.4030002@elischer.org> <20100307184422.7007747d.nork@FreeBSD.org> <4B93E96B.8090002@gmail.com> <20100309080951.b1a37510.nork@FreeBSD.org> In-Reply-To: <20100309080951.b1a37510.nork@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, David Ehrmann , Julian Elischer Subject: Re: Core i5 AES acceleration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2010 00:10:58 -0000 Norikatsu Shigemura wrote: > According to http://en.wikipedia.org/wiki/AES-NI , we can get > specification document: http://software.intel.com/file/20457 . > > I saw it, and consider that we can release under BSDL. Because > of 'from specification'. That document is short on details, such as the opcodes and machine implementation details (flags, etc). The XMM registers are used. That may be a problem for kernel code. When last I looked openssl did not use /dev/crypt - it's not clear how big the benefit would be from doing this if nothing that uses openssl wins. It might be more beneficial to FreeBSD to patch openssl to use /dev/crypt. If it turns out to not be a significant win then that might hint that the AES opcodes won't be significant win in general either.