Re: [PATCH v5 4/4] KVM: PPC: e500: Save/restore SPE state

2011-04-01 Thread Scott Wood
On Thu, Mar 31, 2011 at 12:11:48PM +0200, Alexander Graf wrote: > Scott, to verify that I don't completely screw up the lazy FPU work > back when I did it, I wrote some small test program that would just > initialize an fpu register with a value and then constantly loop to > verify if it's still th

[PATCH v5 4/4] KVM: PPC: e500: Save/restore SPE state

2011-04-01 Thread Scott Wood
This is done lazily. The SPE save will be done only if the guest has used SPE since the last preemption or heavyweight exit. Restore will be done only on demand, when enabling MSR_SPE in the shadow MSR, in response to an SPE fault or mtmsr emulation. For SPEFSCR, Linux already switches it on con

Re: [linuxppc-release] [PATCH v4 2/4] powerpc/e500: SPE register saving: take arbitrary struct offset

2011-04-01 Thread Scott Wood
On Thu, 31 Mar 2011 01:21:18 -0500 Kumar Gala wrote: > > On Mar 30, 2011, at 5:00 PM, Scott Wood wrote: > > > This allows reuse for saving/restoring KVM SPE state. > > Can you update commit comment to include a little about how we accomplish > that. (something about the macro change is all I