Date: Wed, 29 Apr 2009 11:16:50 -0500 From: "Karl O. Pinc" References: <49F1B322.6030705@...1032...> <1240630761l.7894l.0l@...1207...> <49F34D62.4000302@...1114...> <1240846947l.13043l.1l@...1207...> <49F6FA03.6070608@...1032...> <1240944303l.12737l.0l@...1207...> <49F75BBB.6000601@...1032...> <49F78D72.3030104@...1114...> <49F7F1B0.9080600@...1032...> In-Reply-To: (from benny+usenet@...1175... on Wed Apr 29 09:09:31 2009) Message-Id: <1241021810l.25454l.3l@...1207...> MIME-Version: 1.0 Subject: Re: [Openvpn-devel] linux openvpn development job List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; DelSp=Yes; Format=Flowed; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline To: Benny Amorsen Cc: openvpn-devel@lists.sourceforge.net On 04/29/2009 09:09:31 AM, Benny Amorsen wrote: > Siim P=F5der writes: >=20 > > Are you sure crypto accelerators allow DMA from user memory? I don't > > know for sure either, but I would suspect that they would work like > any > > other device: copy to kernel, DMA to device, DMA back to kernel, > copy to > > user. >=20 > Devices don't care if memory belongs to user or kernel. Unless the > kernel restricts the device with an IOMMU; but that is still unusual > when it comes to PC's. Doesn't the kernel care whether userspace has direct access to hardware? Seems to me that the kernel does more than abstract hardware, it also protects hardware by managing concurrency and so forth and protects the entire system by keeping users from doing things with hardware that interfere with other processes. (E.g. bypassing the VM and doing DMA direct into somebody else's address space.) Direct userspace access to hardware violates these principals. Why would HW crypto accelerators be different and not require kernel mediation? Karl Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein