From: Scott Wood Date: Tue, 19 Apr 2011 15:54:24 +0000 Subject: Re: [PATCH 1/2] KVM: PPC: booke: save/restore VRSAVE (a.k.a. Message-Id: <20110419105424.7efdf043@schlenkerla.am.freescale.net> List-Id: References: <20110418223108.GA20353@schlenkerla.am.freescale.net> In-Reply-To: <20110418223108.GA20353@schlenkerla.am.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Tue, 19 Apr 2011 00:43:51 +0200 Alexander Graf wrote: > On 19.04.2011, at 00:31, Scott Wood wrote: > > > diff --git a/arch/powerpc/kvm/booke_interrupts.S b/arch/powerpc/kvm/booke_interrupts.S > > index 54c19d2..cde29c4 100644 > > --- a/arch/powerpc/kvm/booke_interrupts.S > > +++ b/arch/powerpc/kvm/booke_interrupts.S > > @@ -184,6 +184,8 @@ _GLOBAL(kvmppc_resume_host) > > stw r3, VCPU_GPR(r4)(r4) > > mfspr r3, SPRN_SRR0 > > stw r3, VCPU_PC(r4) > > + mfspr r3, SPRN_VRSAVE > > + stw r3, VCPU_VRSAVE(r4) > > Do we need to swap this on every exit or is vcpu_load/put enough? vcpu_load/put is OK. -Scott