On Monday 04 April 2005 03:22, Sebastian Böhm wrote: > Am 01.04.2005 um 21:03 schrieb Blaisorblade: > > On Thursday 31 March 2005 00:37, Sebastian Böhm wrote: > >> Hi, > >> > >> how to build cryptoloop support in 2.6.9-bs7 ? > > > > Well, cryptoloop should work without problem, the right question is > > for > > aes-i586, right? > > not completely, because: in menuconfig the cryptoloop option should > be right next to the loop option, but is not (is there some depedency > I have to activate first ?) Obviously there is the dependency on Loop support itself, as you already know. I forgot that I had to fix this bug.
Upgrade to 2.6.11 will help for cryptoloop itself, I've fixed this recently. > >> if I build uml I see things like "-U__i386__ -Ui386 -D__arch_um__ > >> -DSUBARCH="i386"" > >> > >> is the uml binary not optimized for i686 ? How to do that ? > > > > Good question... I'll look into this soon. > > Sounds great. (would that make uml substancially faster ? probably > not, cause most of the code that gets executed is outside the uml > binary, not ? ) More or less it will make the same difference between a kernel compiled for a 386 processor and one compiled for Pentium II, or whatever processor you take, because even for Linux the majority of the executed code is made up by userspace binaries. However, the UML code is written in different ways, so I don't know if optimizations will give more or less than on the host, and how much. > >> is it possible to use the aes-i586 (asm) implementation under uml ? > > > > Well, it should be possible to enable this - I'll do a patch ASAP > > (remind me > > if I forget this). > That would be very nice, as the asm implementation should be alot > faster. Ok, I'm writing the patch. Use the attached one on 2.6.11 (and/or -bs1), nor on 2.6.9! I'm writing a better one for merge, which works well also for AMD64 users (which can't use aes-i586). Also, a question: from what I see, it seems that aes-i586 can be enabled also for older chipset. Do you know if that's reasonable (i.e. it works on the older ones but is optimised for i586 and above) or it's a bug? -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade
Support AES-i586 for UML. Dirty version, which works well (but won't work for AMD64 users building 64-bit UMLs). Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.11-paolo/arch/um/Makefile-i386 | 2 +- linux-2.6.11-paolo/crypto/Kconfig | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff -puN crypto/Kconfig~uml-crypto-i586-easy crypto/Kconfig --- linux-2.6.11/crypto/Kconfig~uml-crypto-i586-easy 2005-04-04 20:20:07.000000000 +0200 +++ linux-2.6.11-paolo/crypto/Kconfig 2005-04-04 20:21:33.000000000 +0200 @@ -146,7 +146,7 @@ config CRYPTO_SERPENT config CRYPTO_AES tristate "AES cipher algorithms" - depends on CRYPTO && !(X86 && !X86_64) + depends on CRYPTO && !( (X86 || UML) && !X86_64) help AES cipher algorithms (FIPS-197). AES uses the Rijndael algorithm. @@ -167,6 +167,7 @@ config CRYPTO_AES config CRYPTO_AES_586 tristate "AES cipher algorithms (i586)" depends on CRYPTO && (X86 && !X86_64) + depends on CRYPTO && ( (X86 || UML) && !X86_64) help AES cipher algorithms (FIPS-197). AES uses the Rijndael algorithm. diff -puN arch/um/Makefile-i386~uml-crypto-i586-easy arch/um/Makefile-i386 --- linux-2.6.11/arch/um/Makefile-i386~uml-crypto-i586-easy 2005-04-04 20:22:18.000000000 +0200 +++ linux-2.6.11-paolo/arch/um/Makefile-i386 2005-04-04 20:22:44.000000000 +0200 @@ -1,4 +1,4 @@ -SUBARCH_CORE := arch/um/sys-i386/ +SUBARCH_CORE := arch/um/sys-i386/ arch/i386/crypto/ TOP_ADDR := $(CONFIG_TOP_ADDR) _