CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/04/18 15:15:18
Modified files:
sys/arch/amd64/amd64: aesni.c
Log message:
Make the aesni crypto implementation mpsafe. In order to do so this moves
the working buffer from the softc into session struct. The list of sessions
is protected by a mutex.
There has been some discussion about what IPL should be used for the mutex.
Initially my code used IPL_HIGH since that is the default to be used for
subsystems that can be called from any other subsystem. But since the crypto
code may call malloc/free, I settled on IPL_VM. Calling it from an interrupt
handler that runs at a higher level is unsafe. Sorry, can't encrypt audio!
ok mikeb@