Re: [PATCH] powerpc: Per process DSCR

2010-11-17 Thread Kumar Gala
On Nov 16, 2010, at 6:31 PM, Anton Blanchard wrote: In order to add per process control of the DSCR, the following patch emulates read/write of the DSCR from userspace and saves and restores it on context switch. We add emulated stats to track how many times we do this. While writing this

Re: [PATCH] powerpc: Per process DSCR

2010-11-17 Thread Benjamin Herrenschmidt
On Wed, 2010-11-17 at 11:15 -0600, Kumar Gala wrote: We don't have no stinking DSCR ;). Would like this to be #ifdef CONFIG_PPC_BOOK3S_64. That or select it from the platform / CPUs that support it. Cheers, Ben. ___ Linuxppc-dev mailing list

[PATCH] powerpc: Per process DSCR

2010-11-16 Thread Anton Blanchard
In order to add per process control of the DSCR, the following patch emulates read/write of the DSCR from userspace and saves and restores it on context switch. We add emulated stats to track how many times we do this. While writing this patch a few things were apparent: - How will this work