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...> <1241021810l.25454l.3l@...1207...> From: Benny Amorsen Date: Wed, 29 Apr 2009 22:37:56 +0200 In-Reply-To: <1241021810l.25454l.3l@...1207...> (Karl O. Pinc's message of "Wed\, 29 Apr 2009 11\:16\:50 -0500") Message-ID: 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; charset=us-ascii Content-Transfer-Encoding: 8bit To: "Karl O. Pinc" Cc: openvpn-devel@lists.sourceforge.net "Karl O. Pinc" writes: > Doesn't the kernel care whether userspace has direct access to > hardware? If userspace has the right privileges, then no. The X server is an example of this. > 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? Kernel mediation doesn't require DMA to go through kernel space. That's what zero copy is all about. /Benny