Re: [PATCH 4/4] KVM: PPC: e500: SPE switch between guest and host

2011-03-29 Thread Scott Wood
On Tue, 29 Mar 2011 11:47:51 +0200 Alexander Graf wrote: > On 28.03.2011, at 21:25, Scott Wood wrote: > > > @@ -344,10 +345,19 @@ int kvmppc_handle_exit(struct kvm_run *run, struct > > kvm_vcpu *vcpu, > > r = RESUME_GUEST; > > break; > > > > - case BOOKE_INTERRUPT_SPE

Re: [PATCH 4/4] KVM: PPC: e500: SPE switch between guest and host

2011-03-29 Thread Alexander Graf
On 28.03.2011, at 21:25, Scott Wood wrote: > From: yu liu > > This patch provide a lazy way to do SPE switch. > The SPE save/restore will be done only if it's needed. > > Linux already switches SPEFSCR on context switch (non-lazily), so the > only remaining bit is to save it between qemu and t

[PATCH 4/4] KVM: PPC: e500: SPE switch between guest and host

2011-03-28 Thread Scott Wood
From: yu liu This patch provide a lazy way to do SPE switch. The SPE save/restore will be done only if it's needed. Linux already switches SPEFSCR on context switch (non-lazily), so the only remaining bit is to save it between qemu and the guest. Signed-off-by: Liu Yu Signed-off-by: Scott Wood